path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
ajax/libs/radium/0.15.1/radium.js
seogi1004/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Radium"] = factory(...
ajax/libs/algoliasearch/3.24.0/algoliasearch.js
extend1994/cdnjs
/*! algoliasearch 3.24.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...
src/app/modules/FTE/components/dialogs/FirstRunDialog.js
toxzilla/app
import React from 'react'; import {connect} from 'cerebral-view-react'; import {Content, Image, ScrollBar, Slider, Slide, Text} from './../../../../common/UserInterface'; import {Dialog} from './../../../Dialog'; export default connect({ dialogName: 'dialog.name', id: 'dialog.data.id' }, class FirstRunDialog exten...
dva/wd/src/routes/User/Register.js
imuntil/React
import React from 'react' import { connect } from 'dva' import { Link } from 'dva/router' import { Toast } from 'antd-mobile' import ZInput from '../../components/Form/ZInput.js' import ZCode from '../../components/Form/ZCode.js' import { regexp } from '../../services/ct.js' import { verifyPhone, getVerifyCode } from '...
ajax/libs/falcor/0.0.15/Falcor.js
BenjaminVanRyseghem/cdnjs
/*! * Copyright 2014 Netflix, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
new-lamassu-admin/src/pages/Triggers/CustomInfoRequests/Forms/NameOfRequirement.js
naconner/lamassu-server
import { Field } from 'formik' import * as R from 'ramda' import React from 'react' import * as Yup from 'yup' import TextInputFormik from 'src/components/inputs/formik/TextInput' import { H4, P } from 'src/components/typography' const NameOfRequirement = () => { return ( <> <H4>Name of the requirement</H...
ajax/libs/yui/3.8.0pr2/event-focus/event-focus-debug.js
tresni/cdnjs
YUI.add('event-focus', function (Y, NAME) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, arrayIndex = Y.Array.indexOf, useActivate = (function() { ...
app/renderer/showDevTools.js
project-sothis/project-sothis
import React from 'react' import { render } from 'react-dom' import DevTools from './components/DevTools' export default function showDevTools (store) { const popup = window.open(null, 'Redux DevTools', 'menubar=no,location=no,resizable=yes,scrollbars=no,status=no') // Reload in case it already exists popup.loca...
main.js
lifeiscontent/OpenPoGoUI
import 'babel-polyfill'; import 'whatwg-fetch'; import React from 'react'; import ReactDOM from 'react-dom'; import FastClick from 'fastclick'; import { Provider } from 'react-redux'; import store from './core/store'; import router from './core/router'; import history from './core/history'; let routes = require('./r...
htdocs/script/jquery-1.8.2.min.js
BeWelcome/rox.prototypes
/*! jQuery v1.8.2 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==...
app/containers/HomePage.js
JoaoCnh/picto-pc
// @flow import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { routerActions } from 'react-router-redux'; import * as AppActions from '../actions/app'; import * as ChatActions from '../actions/chat'; import Home from '../components/Home';...
src/views/discover/Happiness.js
airloy/objective
/** * Created by Layman <anysome@gmail.com> (http://github.com/anysome) on 16/7/14. */ import React from 'react'; import {StyleSheet, ScrollView, View, Text, ListView, Image} from 'react-native'; import moment from 'moment'; import {airloy, styles, colors, api, toast, L} from '../../app'; export default class Happi...
public/assets/application-02b4b822f33649c1b1a890d53db6c663.js
samuels410/helpalife
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { //...
ajax/libs/yui/3.6.0/simpleyui/simpleyui.js
DDMAL/cdnjs
/** * The YUI module contains the components required for building the YUI seed * file. This includes the script loading mechanism, a simple queue, and * the core utilities for the library. * @module yui * @main yui * @submodule yui-base */ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The YUI gl...
app/main.dev.js
vankai/hitokoto-pwa
import 'react-hot-loader/patch'; import './normalize.css'; import './fonts/iconfont.css'; import './fonts/iconfont-more.css'; import './ui.css'; import 'core-js/es6/array'; import 'core-js/es6/promise'; import 'core-js/es6/map'; import 'core-js/es6/set'; import React from 'react'; import {render} from 'react-dom'; impo...
client/service-manager/src/components/service/StickyHeader.js
google-org/services-eligibility-calculator
/** * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
src/index.js
TapasFE/tapas-editor
import React from 'react'; import tinymce from './tinymce'; import './plugins/autofloat'; import './plugins/cursor'; import './plugins/image'; import './plugins/filter'; import {debounce} from './utils'; const getId = function () { function getId() { return `tapas-editor-${++ id}`; } let id = 0; return get...
ajax/libs/vis/0.5.0/vis.js
cgvarela/cdnjs
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 0.5.0 * @date 2014-02-20 * * @license * Copyright (C) 2011-2014 Almende B.V, http://almende.com * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file e...
docs/src/app/components/pages/components/Tabs/ExampleSwipeable.js
nathanmarks/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; // From https://github.com/oliviertassinari/react-swipeable-views import SwipeableViews from 'react-swipeable-views'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, slide: { ...
packages/classic/src/core/elements/pure/activityIndicator.ios.js
netceteragroup/girders-elements
'use strict' import React from 'react' import { ActivityIndicator } from 'react-native' export default () => <ActivityIndicator style={{ flex: 1 }} />
ajax/libs/backbone-react-component/0.6.2/backbone-react-component-min.js
lobbin/cdnjs
"use strict";!function(a,b){if("function"==typeof define&&define.amd)define(["react","backbone","underscore"],b);else if("undefined"!=typeof module&&module.exports){var c=require("react"),d=require("backbone"),e=require("underscore");module.exports=b(c,d,e)}else b(a.React,a.Backbone,a._)}(this,function(a,b,c){function ...
mrt/src/index.js
anilnamde/zd
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDropZone.js
frontyard/keystone
/** * THIS IS ORPHANED AND ISN'T RENDERED AT THE MOMENT * THIS WAS DONE TO FINISH THE REDUX INTEGRATION, WILL REWRITE SOON * - @mxstbr */ import React from 'react'; import DropZoneTarget from './ItemsTableDragDropZoneTarget'; import classnames from 'classnames'; var ItemsTableDragDropZone = React.createClass({ d...
frontend/app/js/components/issues/empty.js
serverboards/serverboards
import React from 'react' import i18n from 'app/utils/i18n' const img1 = require('app/../imgs/008-Button+.png') const img2 = require('app/../imgs/014-mid-nocontent-issues.png') const img3 = require('app/../imgs/015-right-nocontent-issues.png') function Column({h1, t1, h2, t2, img}){ return ( <div className="ui ...
src/modules/commands/containers/Commands.js
jeffdowdle/l-systems
import { connect } from 'react-redux'; import React from 'react'; import PropTypes from 'prop-types'; import { selectors as commandsSelectors, } from 'modules/commands'; import { commandDefinitions, selectors as rendererSelectors, } from 'modules/renderer'; import CommandList from 'components/CommandList'; const...
internals/templates/appContainer.js
nimzco/takemyidea-ui
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; class App extends React.Component { render() { return this.props.children; } } export default App;
app/javascript/mastodon/features/ui/components/actions_modal.js
ikuradon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from '../../../components/status_content'; import Avatar from '../../../components/avatar'; import Relative...
test/scripts/jquery-1.7.1.js
vivanvish/zombie
/*! * jQuery JavaScript Library v1.7.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/svg-icons/action/help.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHelp = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83...
lib/backbone/backbone.js
dnemoga/Backbone.Composite
// Backbone.js 1.1.0 // (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc. // (c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(...
examples/with-compiled-css/components/styled-button.js
zeit/next.js
import { styled } from '@compiled/react' export const Button = styled.button` color: ${(props) => props.color}; background-color: transparent; padding: 6px 8px; border-radius: 3px; width: 100%; font-family: sans-serif; border: 1px solid ${(props) => props.color}; `
src/app/main/page-content-editor/index.js
jl-/bronote
import React, { Component } from 'react'; import cx from 'classnames'; import styles from './style.scss'; import CodeMirror from 'codemirror'; import CodeMirrorGFM from 'codemirror/mode/gfm/gfm'; import CodeMirrorJavaScript from 'codemirror/mode/javascript/javascript'; import CodeMirrorMarkdown from 'codemirror/mode/ma...
src/panes/components/AddProviderDialog.js
trezy/eidetica
// Module imports import { Consumer, Step, Wizard, } from '@fuelrats/react-ratzard' import React from 'react' // Component imports // import ChooseProviderType from './Wizards/ChooseProviderType' import { addCustomProvider } from '../../modules/common' import ChooseProviderType from './Wizards/ChooseProvider...
packages/cf-component-card/test/Card.js
manatarms/cf-ui
import React from 'react'; import renderer from 'react-test-renderer'; import { Card } from 'cf-component-card'; test('should render', () => { const component = renderer.create(<Card>Card</Card>); expect(component.toJSON()).toMatchSnapshot(); });
src/config/router.js
skyborne/ios-app
import React from 'react'; import { TabNavigator } from 'react-navigation'; import Ongoing from '../screens/ongoing'; import Timeline from '../screens/timeline'; import Profile from '../screens/profile'; import { HEIGHT } from '../global'; import Icon from '../resources/icon'; export const Tabs = TabNavigator( { ...
app/scripts/components/node-details/node-details-health-item.js
hustbill/autorender-js
import React from 'react'; import Sparkline from '../sparkline'; import { formatMetric } from '../../utils/string-utils'; function NodeDetailsHealthItem(props) { return ( <div className="node-details-health-item"> <div className="node-details-health-item-value">{formatMetric(props.value, props)}</div> ...
app/addons/databases/routes.js
apache/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...
src/routes/CharacterRecruitment/components/CharacterRecruitmentView.js
warcraftlfg/warcrafthub-client
import React from 'react' import './CharacterRecruitmentView.scss' export const RecruitmentCharacterListView = () => ( <div className='container'> <div style={{color: 'red'}}> <h1>Recruitment Character list</h1> <p> - Filters (Region / Realm / Language / Faction / Role / Class / Raids per wee...
example/src/test_format.js
flywingdevelopers/rn-naive
/** * Test format function * Kevin Lee 22 Oct 2017 **/ import React from 'react' import { Screen, Text } from 'rn-naive' export default class App extends React.Component{ render() { return( <Screen title='Test format Function'> <Text>{"{0}, How are you?".format("Jason")}</Text> <Te...
packages/material-ui-icons/src/ExposurePlus1Sharp.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="M10 7H8v4H4v2h4v4h2v-4h4v-2h-4V7zm10 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z" /></g></React.Fragment> , 'ExposurePlus1Sharp');
test/components/Counter.spec.js
midivitomi/ui
import sinon from 'sinon'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import Immutable from 'immutable'; import React from 'react'; import { Text, View, TouchableHighlight } from 'react-native'; import Counter from '../../src/components/Counter'; const props = { counter: Immutable.Map({ counter...
ajax/libs/forerunnerdb/1.3.517/fdb-core.js
Piicksarn/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
ajax/libs/ionic/0.9.15-alpha/js/ionic.js
linjunpop/cdnjs
/*! * Copyright 2013 Drifty Co. * http://drifty.com/ * * Ionic, v0.9.14 * A powerful HTML5 mobile app framework. * http://ionicframework.com/ * * By @maxlynch, @helloimben, @adamdbradley <3 * * Licensed under the MIT license. Please see LICENSE for more information. * */; // Create namespaces window.ionic...
client/modules/App/components/DevTools.js
maicongil/fcc_voting_app
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> ...
tests/lib/ChatBot.spec.js
aaronkrohn/react-simple-chatbot
import React, { Component } from 'react'; import { describe, it, before, after } from 'mocha'; import { expect } from 'chai'; import { mount } from 'enzyme'; import ChatBot from '../../lib/ChatBot'; import ChatBotContainer from '../../lib/ChatBotContainer'; import FloatButton from '../../lib/FloatButton'; import Header...
src/SplitButton.js
tonylinyy/react-bootstrap
/* eslint react/prop-types: [2, {ignore: "bsSize"}] */ /* BootstrapMixin contains `bsSize` type validation */ import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import DropdownStateMixin from './DropdownStateMixin'; import Button from './Button'; import Butto...
src/js/components/TextInput/stories/Simple.js
HewlettPackard/grommet
import React from 'react'; import { Box, Grommet, TextInput } from 'grommet'; import { grommet } from 'grommet/themes'; export const Simple = () => { const [value, setValue] = React.useState(''); const onChange = event => setValue(event.target.value); return ( <Grommet full theme={grommet}> <Box fil...
app/containers/DevTools.js
leofle/electron_manifesto
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q" > <LogMonitor /> ...
ajax/libs/thorax/2.2.0/thorax-combined.js
advancedpartnerships/cdnjs
/*! * jQuery JavaScript Library v1.9.0 * 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-1-14 */ (function( window, undefined ) { "use strict";...
ajax/libs/yui/3.7.0pr2/datatable-body/datatable-body-coverage.js
tonytlwu/cdnjs
if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledLines++; } coverage.lines[line]++; }; _yuitest_coverfunc = functio...
app/components/location-permissions/index.js
Vizzuality/forest-watcher
// @flow import React, { Component } from 'react'; import { View, Text, ScrollView, Image } from 'react-native'; import { Navigation } from 'react-native-navigation'; import i18n from 'i18next'; import { trackScreenView } from 'helpers/analytics'; import styles from './styles'; import ActionButton from 'components/co...
src/store/configureStore.js
AdhiJordan/React-Redux-ES6-Front-End-
import {compose, createStore, applyMiddleware} from 'redux' import rootReducer from '../actions'; import {hashHistory} from 'react-router' import createLogger from 'redux-logger' import {routerMiddleware} from 'react-router-redux' import thunk from 'redux-thunk' import thunkMiddleware from 'redux-thunk' let middlewa...
blueprints/view/files/__test__/views/__name__View.spec.js
availabs/kauffman-atlas
import React from 'react' describe('(View) <%= pascalEntityName %>', () => { it('should exist', () => { }) })
src/containers/components/WorldNeighborhood.js
ZephyrPlace/criminal
import React, { Component } from 'react'; import './WorldNeighborhood.css' /** * * * @class WorldNeighborhood * @extends {Component} */ class WorldNeighborhood extends Component { render() { return ( <div className="row WorldNeighborhood-item" onClick={this.props.handleClick}> ...
server/sonar-web/src/main/js/apps/permission-templates/permission-template-set-defaults.js
vamsirajendra/sonarqube
import _ from 'underscore'; import React from 'react'; import { setDefaultPermissionTemplate } from '../../api/permissions'; import QualifierIcon from '../../components/shared/qualifier-icon'; export default React.createClass({ propTypes: { permissionTemplate: React.PropTypes.object.isRequired, topQualifiers...
src/index.js
kristifidani/react-tut
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker(); if (module.hot) { module.hot.accept(); }
src/main/frontend/src/js/error/components/PageNotFoundError.js
choonchernlim/choonchernlim-archetype-webapp
// @flow import React from 'react'; import Typography from 'material-ui/Typography'; const PageNotFoundError = () => ( <Typography type="display2" gutterBottom> The page you are looking for does not exist. </Typography> ); export default PageNotFoundError;
index.ios.js
marchi-martius/FreemarketRn
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class FreemarketRn extends Component { render() { return ( <View style={styles.contai...
src/__tests__/components/NotFound/NotFound.js
RMCoder198/chat.susi.ai
import React from 'react'; import NotFound from '../../../components/NotFound/NotFound.react'; import { shallow } from 'enzyme'; describe('<NotFound />', () => { it('renders NotFound without crashing', () => { shallow(<NotFound location={{ pathname: '' }} />); }); });
website/src/PageWithSidebar.js
half-shell/react-navigation
import React, { Component } from 'react'; import Link from "./Link"; import { NavigationActions, addNavigationHelpers } from 'react-navigation'; const LinkableLi = Link.Linkable(props => <li {...props} />); function getConfig(router, state, action, configName) { if (action) { state = router.getStateForAction(...
src/containers/ProfileViewPage.js
mak4alex/unicorn-shop
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; class ProfileViewPage extends Component { render() { const user = this.props.auth.getIn(['user', 'attributes']); return ( <div className="lead"> <h2>Customer info:</h...
src/components/LeaderBoard.js
quintel/etmobile
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, FormattedRelative } from 'react-intl'; import injectIntl from '../utils/injectIntl'; import trophyGold from '../images/leaderboard/gold.svg'; import trophySilver from '../images/leaderboard/silver.svg'; import trophyBronze from '...
tests/framework.spec.js
levsero/planning-app-ui
import assert from 'assert' import React from 'react' import {mount, render, shallow} from 'enzyme' class Fixture extends React.Component { render () { return ( <div> <input id='checked' defaultChecked /> <input id='not' defaultChecked={false} /> </div> ) } } describe('(Framewo...
docs/app/Examples/modules/Dropdown/Types/DropdownExampleInlineTwo.js
ben174/Semantic-UI-React
import React from 'react' import { Dropdown, Header, Icon } from 'semantic-ui-react' /** * Heads up! * * SUI core has these 4 fields on the Dropdown.Item: * * "name" : "Choice 1", // name displayed in dropdown * "value" : "value1", // selected value * "text" : "Choice 1" // name displayed after selection (opt...
src/routes/logout/index.js
momomods/momomods
/** * 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 from 'react'; import Logout from './Logout'; ...
examples/with-custom-babel-config/src/Home.js
jaredpalmer/react-production-starter
import React from 'react'; export default class MyLuckNo extends React.Component { constructor(...args) { super(...args); this.state = { randomNo: null }; } componentDidMount() { this.recalculate(); } recalculate() { this.setState({ randomNo: Math.ceil(Math.random() * 100), }); ...
local-cli/generate-android.js
WilliamRen/react-native
'use strict'; var fs = require('fs'); var path = require('path'); var yeoman = require('yeoman-environment'); /** * Simple utility for running the android yeoman generator. * * @param {String} projectDir root project directory (i.e. contains index.js) * @param {String} name name of the root JS module for ...
node_modules/react-color/src/components/ChromePicker.js
ottomajik/react-demo
'use strict'; /* @flow */ import React from 'react'; import ReactCSS from 'reactcss'; import merge from 'merge'; import _ from 'lodash'; import color from '../helpers/color'; import Chrome from './chrome/Chrome'; class ColorPicker extends ReactCSS.Component { constructor(props: any) { super(); this.state...
src/containers/User/Page.js
Ftornik/forwardteam.space
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import UserApi from 'api/Users'; import PinApi from 'api/Pins'; import SprintApi from 'api/Sprints'; import ChallengeApi from 'api/Challenges'; import TeamApi from 'api/Teams'; import QuestionApi from 'api/Questions'; import Meta from './Met...
src/svg-icons/av/queue-play-next.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvQueuePlayNext = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h2v-2H3V5h18v8h2V5c0-1.11-.9-2-2-2zm-8 7V7h-2v3H8v2h3v3h2v-3h3v-2h-3zm11 8l-4.5 4.5L18 21l3-3-3-3...
public/js/vendor/JSXTransformer.js
x-tag/jsbin
/** * JSXTransformer v0.9.0 */ !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.JSXTransformer=e()}}(function(){var define,module,e...
js/app.js
gilesbradshaw/uaQL
// @flow 'use strict'; import 'babel-polyfill'; import App from './components/App'; import NodeMenu from './components/NodeMenu'; import Widget from './components/Widget'; import Value from './components/Value'; import Execute from './components/Execute'; import NoMatch from './components/NoMatch'; import React from...
ajax/libs/styled-components/0.3.4/styled-components.js
ahocevar/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("React")); else if(typeof define === 'function' && define.amd) define(["React"], factory); else if(typeof exports === 'object') exports["styled-components"]...
src/DayColumn.js
martynasj/react-big-calendar
import PropTypes from 'prop-types'; import React from 'react'; import { findDOMNode } from 'react-dom'; import cn from 'classnames'; import Selection, { getBoundsForNode, isEvent } from './Selection'; import dates from './utils/dates'; import { isSelected } from './utils/selection'; import localizer from './localizer'...
node_modules/@babel/runtime/helpers/jsx.js
kmcroft13/cloud-templates
var REACT_ELEMENT_TYPE; function _createRawReactElement(type, props, key, children) { if (!REACT_ELEMENT_TYPE) { REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol["for"] && Symbol["for"]("react.element") || 0xeac7; } var defaultProps = type && type.defaultProps; var childrenLength = arguments.le...
packages/my-joy-instances/src/containers/create-instance/__tests__/user-script.spec.js
geek/joyent-portal
import React from 'react'; import renderer from 'react-test-renderer'; import 'jest-styled-components'; import Theme from '@mocks/theme'; import { UserScript } from '../user-script'; it('renders <UserScript /> without throwing', () => { expect( renderer .create( <Theme> <UserScript /> ...
assets/react/src/components/task/cron_container.js
khoa-le/crontask
import React, { Component } from 'react'; import Tasks from './tasks'; import TaskDetail from './task_detail'; export default class TaskContainer extends Component { getChildContext() { return { lang: this.state.lang, t: this.state.t } } constructor(props) { ...
src/Jumbotron.js
mxc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Jumbotron = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { ...
frontend/app/site/pages/Styles/Styles.js
briancappello/flask-react-spa
import React from 'react' import Helmet from 'react-helmet' import { HashLink, PageContent } from 'components' import BlockQuote from './BlockQuote' import Buttons from './Buttons' import Code from './Code' import Forms from './Forms' import Grid from './Grid' import Lists from './Lists' import Navigation from './Nav...
app/javascript/mastodon/features/notifications/components/column_settings.js
esetomo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ClearColumnButton from './clear_column_button'; import SettingToggle from './setting_toggle'; export default class ColumnSettings extends Reac...
app/javascript/flavours/glitch/features/list_editor/components/edit_list_form.js
im-in-space/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { changeListEditorTitle, submitListEditor } from 'flavours/glitch/actions/lists'; import IconButton from 'flavours/glitch/components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const ...
packages/material-ui-icons/src/ArrowLeftSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M24 0v24H0V0h24z" opacity=".87" /><path d="M14 7l-5 5 5 5V7z" /></React.Fragment> , 'ArrowLeftSharp');
src/svg-icons/image/center-focus-strong.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCenterFocusStrong = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V...
examples/js/column-filter/date-filter-programmatically.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; const startDate = new Date(2015, 0, 1); const endDate = new Date(); ...
src/parser/shared/modules/items/bfa/raids/crucibleofstorms/FathuulsFloodguards.js
sMteX/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS/index'; import SPELLS from 'common/SPELLS/index'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import ItemStatistic from 'interface/statistics/ItemStatistic'; import ItemHealingDone from 'interface...
test/PopoverSpec.js
apisandipas/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Popover from '../src/Popover'; describe('Popover', function () { it('Should output a popover title and content', function () { let instance = ReactTestUtils.renderIntoDocument( <Popover title="Popover title"> <...
packages/material-ui-icons/src/SettingsInputSvideoTwoTone.js
callemall/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 3c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9zm-7 8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5zM8.5 18c-.83 0-1.5-.67-1.5-1.5S7.67 15 8.5 15s1...
component/reactcomponent/demo/index.js
FFF-team/generator-earth
import React from 'react' import ReactDOM from 'react-dom' import 'scss_mixin/<%= resetCss %>' //reset 样式 import App from './App' const rootElement = document.getElementById('root'); ReactDOM.render( <App />, rootElement )
src/login.js
TJCU-Dev/tjcu-site-frontend
import React from 'react'; import { Router, Route, Link, browserHistory, hashHistory, IndexLink, IndexRoute } from 'react-router' import Paper from 'material-ui/Paper'; import {grey50, grey200, grey400, grey800, grey900, grey600, red900} from 'material-ui/styles/colors'; // import {grey200, grey50, green700} from 'mat...
src/app/components/media/RestoreConfirmProjectMediaToProjectAction.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { createFragmentContainer, graphql } from 'react-relay/compat'; import Relay from 'react-relay/classic'; import { FormattedMessage } from 'react-intl'; import Button from '@material-ui/core/Button'; import CircularProgress from '@material-ui/core/Cir...
test/FadeSpec.js
mmartche/boilerplate-shop
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import Fade from '../src/Fade'; describe('Fade', () => { let Component, instance; beforeEach(() => { Component = React.createClass({ render() { let { children, ...props } = this...
docs/src/app/components/pages/components/FlatButton/ExampleIcon.js
manchesergit/material-ui
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import FontIcon from 'material-ui/FontIcon'; import ActionAndroid from 'material-ui/svg-icons/action/android'; import {fullWhite} from 'material-ui/styles/colors'; const style = { margin: 12, }; const FlatButtonExampleIcon = () => ( <div>...
react-router/src/components/input/Input.js
yuanzhaokang/myAwesomeSimpleDemo
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; export default class Input extends Component { constructor(props) { super(props); } render() { return ( <div> <Link to="/label">Label</Link> <input /> </div> ); } ...
client/src/components/AssetDropzone/tests/AssetDropzone-test.js
open-sausages/silverstripe-asset-admin
/* global jest, jasmine, describe, it, expect, beforeEach, FormData */ import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import AssetDropzone from '../AssetDropzone'; describe('AssetDropzone', () => { let props = null; beforeEach(() => { props = { options: { url: 'upl...
actor-apps/app-web/src/app/components/ToolbarSection.react.js
chengjunjian/actor-platform
import React from 'react'; import DialogStore from 'stores/DialogStore'; import ActivityActionCreators from 'actions/ActivityActionCreators'; //import AvatarItem from 'components/common/AvatarItem.react'; var getStateFromStores = () => { return {dialogInfo: null}; }; class ToolbarSection extends React.Component ...
react-apollo/src/components/TableEmpty/index.js
strapi/strapi-examples
/** * * TableRow * */ import React from 'react'; import PropTypes from 'prop-types'; import './styles.scss'; const TableEmpty = ({ colSpan }) => { return ( <tr className="tableEmpty"> <td colSpan={colSpan}>There is no product...</td> </tr> ); } TableEmpty.defaultProps = { colSpan: 0, }; Tab...
internals/templates/notFoundPage.js
brobey8/toomanynotes
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor i...
src/List/ListItemText.spec.js
AndriusBil/material-ui
// @flow import React from 'react'; import { assert } from 'chai'; import { createShallow, getClasses } from '../test-utils'; import ListItemText from './ListItemText'; describe('<ListItemText />', () => { let shallow; let classes; before(() => { shallow = createShallow({ dive: true }); classes = getCl...
route.js
UXtemple/panels
import ErrorBoundary from './error-boundary.js' import normaliseUri from './utils/normalise-uri/index.js' import PropTypes from 'prop-types' import React from 'react' export default class Route extends React.Component { isActive = path => { const { route, router, routeIndex } = this.props const routeAfterCo...
ajax/libs/react/0.8.0/react-with-addons.min.js
cdnjs/cdnjs
/** * React (with addons) v0.8.0 * * Copyright 2013 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...