path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
playground/react/main.js
nolimits4web/Swiper
import React from 'react'; import ReactDOM from 'react-dom'; // eslint-disable-next-line import 'swiper/swiper-bundle.css'; import App from './App.jsx'; // eslint-disable-next-line ReactDOM.render(React.createElement(App), document.getElementById('app'));
src/templates/microblog/LocationPosts/index.js
jwngr/jwn.gr
import React from 'react'; import './index.css'; import Post from '../../../components/microblog/Post/'; import {getDateRange} from '../../../components/microblog/utils'; export default ({data}) => { const {id: locationId, name: locationName, posts} = data.locationsJson; const postsCount = posts.length; cons...
node_modules/material-ui/svg-icons/editor/insert-invitation.js
manojadd/bob-demo
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
components/Shared/Labels.js
itssumitrai/git-issue-viewer
/** * Copyright 2016, Sumit Rai * Copyrights licensed under the New MIT License. See the accompanying LICENSE file for terms. */ 'use strict'; import React from 'react'; import Label from './Label'; class Labels extends React.Component { render() { const labels = this.props.labels.map((label, index) ...
ajax/libs/react/0.4.1/JSXTransformer.js
narikei/cdnjs
/** * JSXTransformer v0.4.1 */ (function(e){if("function"==typeof bootstrap)bootstrap("jsxtransformer",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeJSXTransformer=e}else"undefined"!=typeof wi...
ajax/libs/mediaelement/2.10.0/jquery.js
qooxdoo/cdnjs
/*! * jQuery JavaScript Library v1.7 * 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/components/Unit/Unit-test.js
wfp/ui
import React from 'react'; import Unit from '../User'; import { mount } from 'enzyme'; describe('Unit', () => { describe('renders as expected', () => { const wrapper = mount(<Unit type="usd">123</Unit>); it('renders as expected', () => { expect(wrapper.length).toBe(1); }); it('should add extr...
react-router-demo/lessons/13-server-rendering/index.js
zhangjunhd/react-examples
import React from 'react' import { render } from 'react-dom' import { Router, Route, browserHistory, IndexRoute } from 'react-router' import App from './modules/App' import About from './modules/About' import Repos from './modules/Repos' import Repo from './modules/Repo' import Home from './modules/Home' render(( <R...
docs/src/examples/addons/Radio/States/RadioExampleReadOnly.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Radio } from 'semantic-ui-react' const RadioExampleReadOnly = () => ( <Radio label='This radio is read-only' readOnly /> ) export default RadioExampleReadOnly
src/pages/mentorship.js
jefflau/jefflau.net
import React from 'react'; import Link from 'gatsby-link'; const Mentorship = () => ( <div> <h1>Front-end developer mentorship</h1> <h2>Why having a mentor is important?</h2> <p> Becoming a self-taught developer is never easy. The resources we have available our limitless and daunting. It's ...
be/main.js
emilianoeloi/fi-automation
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('app'))
packages/website/src/components/content/YouTubeVideo.js
mucsi96/w3c-webdriver
import React from 'react'; import styled from 'styled-components'; const VideoContainer = styled.div` margin: 25px -20px; position: relative; padding-bottom: 56.25%; /*16:9*/ padding-top: 30px; height: 0; overflow: hidden; @media (min-width: 894px) { margin-right: -18px; margin-left: -18px; ...
src/utils.js
durarumin/selenium-ide
/* * Copyright 2011-2015 Software Freedom Conservancy * * 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 a...
packages/material-ui-icons/src/WorkOutlineRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M14 6V4h-4v2h4zM4 9v9c0 .55.45 1 1 1h14c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1zm16-3c1.11 0 2 .89 2 2v11c0 1.11-.89 2-2 2H4c-1.11 0-2-.89-2-2l.01-11c0-1.11.88-2 1.99-2h4V4c0-1.11.89-2 2-...
src/Metronome.js
jedi0605/GameBoard
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Grid, Button, ButtonToolbar } from 'react-bootstrap'; import MetronomeDisplay from './MetronomeDisplay'; class Metronome extends React.Component { constructor() { super(); this.state = { audio: new Audi...
examples/server-rendering/client/entry.js
amazeui/amazeui-react
'use strict'; import React from 'react'; import {render} from 'react-dom'; import routes from '../shared/routes'; render(routes, document.getElementById('root'));
packages/ndla-icons/src/editor/Section.js
netliferesearch/frontend-packages
/** * Copyright (c) 2017-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT import React from 'react'; import Icon from '../Icon'; const Section = props => ( <Icon viewB...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/Swagger/ApiCreateSwagger.js
lakmali/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
src/Vkontakte/index.js
canvaskisa/react-share-icons
import React from 'react'; const Vkontakte = (props: any) => ( <svg {...props} viewBox="0 0 48 48"> <path d="M22.647 35.647h2.4a2.027 2.027 0 0 0 1.095-.48 1.76 1.76 0 0 0 .33-1.054s-.047-3.224 1.447-3.7c1.472-.468 3.363 3.116 5.368 4.494a3.8 3.8 0 0 0 2.668.814l5.36-.074s2.8-.173 1.474-2.38c-.11-.18-.775-1.634-3.9...
front_end/front_end_app/src/client/components/notfound.react.js
Horizon-Framework/horizon
import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import React from 'react'; import {Link} from 'react-router'; export default class NotFound extends Component { static propTypes = { msg: React.PropTypes.object.isRequired } render() { const {msg: {...
src/index.js
hannupekka/badgenator
// @flow import 'babel-polyfill'; import 'dom4'; import 'normalize.css/normalize.css'; import 'font-awesome/css/font-awesome.min.css'; import React from 'react'; import { render } from 'react-dom'; import getHistoryInstance from 'utils/history'; import { syncHistoryWithStore } from 'react-router-redux'; import configur...
app/public/dev/scripts/common.js
bencripps/heartgov
/* * @Author: ben_cripps * @Date: 2015-01-12 16:58:02 * @Last Modified by: ben_cripps * @Last Modified time: 2015-11-07 13:29:25 */ 'use strict'; require.config({ baseUrl: '/', shim: { bootstrap: { deps: ['jquery'] } }, paths: { jquery: 'vendor/js/jquery.min', ...
dist/index_bundle.js
beichenc/MusicMap
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e...
client/src/components/Home/WithNewMessageNotification.js
seripap/darkwire.io
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { notify, beep } from 'utils/notifications'; import Tinycon from 'tinycon'; import { toggleNotificationAllowed, toggleNotificationEnabled } from 'actions'; const mapStateToProps = state => { return { activities: state.activit...
packages/arwes/src/Link/sandbox.js
romelperez/prhone-ui
import React from 'react'; import Arwes from '../Arwes'; import Link from './index'; export default () => ( <Arwes> <div style={{ padding: 20 }}> This is an <Link href="#">Intergalactic Link</Link>. </div> </Arwes> );
src/main/webapp/resources/js/components/antd/antd-demo.js
peterchenhdu/infosys
import React from 'react' import { Calendar } from 'antd'; import { Switch } from 'antd'; import { Rate } from 'antd'; import { Progress } from 'antd'; export default class AntdDemo extends React.Component{ constructor(props){ super(props); this.state = {} } render() { return ( <div> ...
ajax/libs/react-native-web/0.0.0-80dae21e2/cjs/exports/CheckBox/index.min.js
cdnjs/cdnjs
"use strict";exports.__esModule=!0,exports.default=void 0;var React=_interopRequireWildcard(require("react")),_createElement=_interopRequireDefault(require("../createElement")),_StyleSheet=_interopRequireDefault(require("../StyleSheet")),_View=_interopRequireDefault(require("../View"));function _interopRequireDefault(e...
index.js
mzgoddard/preact-render-spy
module.exports = require('./src/preact-render-spy');
src/svg-icons/action/https.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttps = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-...
src/containers/NotFound/NotFound.js
tpphu/react-pwa
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
ajax/libs/flocks.js/0.15.3/flocks.js
brix/cdnjs
/** @jsx React.DOM */ /* jshint node: true, browser: true, newcap: false */ /** * The Flocks library module. * * @module Flocks * @main Flocks * @class Flocks */ // if it's in a <script> it's defined already // otherwise assume commonjs if (typeof React === 'undefined') { var Reac...
ajax/libs/ajv/3.5.3/nodent.bundle.js
bootcdn/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)...
src/components/Page/Search/index.js
wu-sheng/sky-walking-ui
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
dspace/modules/xmlui/src/main/webapp/static/js/jquery/jquery-1.5.1.js
rnathanday/dryad-repo
/*! * jQuery JavaScript Library v1.5.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/components/icons/ThumbsDown.js
austinknight/ui-components
import React from 'react'; const ThumbsDown = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .4...
ajax/libs/react-native-web/0.17.1/cjs/modules/usePlatformMethods/index.min.js
cdnjs/cdnjs
"use strict";exports.__esModule=!0,exports.default=usePlatformMethods;var _UIManager=_interopRequireDefault(require("../../exports/UIManager")),_createDOMProps=_interopRequireDefault(require("../createDOMProps")),_useStable=_interopRequireDefault(require("../useStable")),_react=require("react");function _interopRequire...
src/App.js
ovidiubute/react-hangman
import React, { Component } from 'react'; import gameFactory from './game-state-factory'; import { GAME_WON, GAME_STARTED, GAME_OVER } from './game-states'; import AppHeader from './AppHeader'; import AppFooter from './AppFooter'; import Game from './Game'; import './App.css'; class App extends Component { constru...
node_modules/@material-ui/core/esm/Divider/Divider.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; import { fade } from '../styles/colorManipu...
test/YearPickerSpec.js
yyssc/ssc-grid
import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import ReactDOM from 'react-dom'; import YearPicker from '../src/YearPicker'; describe('<YearPicker>', () => { // helper function function getNode(instance) { return ReactDOM.findDOMNode(instance); } it('没有任何参数时候文本框应该为空', ...
app/javascript/mastodon/features/ui/components/modal_loading.js
kibousoft/mastodon
import React from 'react'; import LoadingIndicator from '../../../components/loading_indicator'; // Keep the markup in sync with <BundleModalError /> // (make sure they have the same dimensions) const ModalLoading = () => ( <div className='modal-root__modal error-modal'> <div className='error-modal__body'> ...
packages/react-widgets/src/Listbox.js
haneev/react-widgets
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import { instanceId } from './util/widgetHelpers'; const propTypes = { className: PropTypes.string, role: PropTypes.string, emptyListMessage: PropTypes.node, }; class Listbox extends React.Component { render() { l...
webapp-src/src/Hutch/ModalGeneratePassword.js
babelouest/hutch
import React, { Component } from 'react'; import i18next from 'i18next'; import apiManager from '../lib/APIManager'; import messageDispatcher from '../lib/MessageDispatcher'; class ModalGeneratePassword extends Component { constructor(props) { super(props); this.state = { config: props.config, ...
node_modules/react-icons/fa/gg.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaGg = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m14.3 18.1l7.4 7.5-7.4 7.4-13.1-13 13.1-13 3.2 3.2-1.8 1.9-1.4-1.4-9.3 9.3 9.3 9.3 3.7-3.7-5.6-5.6z m11.2-11.1l13 13-13 13-3.3-3.2 1.9-1.9 1.4 1.4 9.3-9.3-9.3-9.3-3.8 3.7 ...
php/minifw/vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/Template/js/jquery.min.js
khuenqdev/anycodes
/*! jQuery v1.12.3 | (c) jQuery Foundation | 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 window?window:this,fu...
ajax/libs/react-data-grid/0.13.31/react-data-grid-with-addons.js
sreym/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["ReactDataGrid"] = f...
modules/dreamview/frontend/src/components/PNCMonitor/LatencyMonitor.js
ApolloAuto/apollo
import React from 'react'; import { inject, observer } from 'mobx-react'; import setting from 'store/config/LatencyGraph.yml'; import ScatterGraph, { generateScatterGraph } from 'components/PNCMonitor/ScatterGraph'; @inject('store') @observer export default class LatencyMonitor extends React.Component { render() { ...
packages/my-joy-instances/src/components/description.js
geek/joyent-portal
import React from 'react'; import { Row, Col } from 'joyent-react-styled-flexboxgrid'; import { Margin } from 'styled-components-spacing'; import { P } from 'joyent-ui-toolkit'; export default ({ children }) => ( <Row> <Col xs={12} sm={8}> <Margin bottom={3}> <P>{children}</P> </Margin> <...
src/svg-icons/action/assessment.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssessment = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); ActionA...
src/js/components/Form/stories/ValidateOnBlur.js
grommet/grommet
import React from 'react'; import { StatusGood } from 'grommet-icons'; import { Box, Button, Form, FormField, TextInput } from 'grommet'; export const ValidateOnBlur = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <Box fill align="center" justify="center"> <Bo...
src/vendor/recharts/demo/component/CartesianAxis.js
happyboy171/Feeding-Fish-View-
import React from 'react'; import { Surface, CartesianAxis } from 'recharts'; export default React.createClass({ render () { let ticks = [ { value: 10, coord: 50 }, { value: 1000, coord: 100 }, { value: 20, coord: 150 }, { value: 40, coord: 200 }, { value: 90, coord: 250 } ]; ...
test/ControlLabelSpec.js
mmarcant/react-bootstrap
import React from 'react'; import $ from 'teaspoon'; import ControlLabel from '../src/ControlLabel'; import FormGroup from '../src/FormGroup'; import { shouldWarn } from './helpers'; describe('<ControlLabel>', () => { it('should render correctly', () => { expect( $( <ControlLabel htmlFor="foo" cl...
src/components/Feedback/Feedback.js
gilesbradshaw/rstart
/** * 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'; import s from '....
src/parser/druid/restoration/CHANGELOG.js
ronaldpereira/WoWAnalyzer
// eslint-disable-next-line no-unused-vars import React from 'react'; import { Yajinni, blazyb, fel1ne, Qbz, Zerotorescue, Abelito75, Anatta336, JeremyDwayne } from 'CONTRIBUTORS'; import { change, date } from 'common/changelog'; export default [ change(date(2020, 5, 26), 'Added HPCT to stat weights.', [Abelito75...
src/index.js
TylerFoss/weather-app
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from "redux-promise"; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware(...
src/Dropdown/DropdownItem.js
yurizhang/ishow
import React from 'react'; import PropTypes from 'prop-types'; import {default as Component} from '../Common/plugs/index.js'; //提供style, classname方法 import '../Common/css/Dropdown.css' export default class DropdownItem extends Component { handleClick() { this.context.component.handleMenuItemClick(this.props.comma...
docs/app/Examples/elements/Loader/Variations/InlineCentered.js
jcarbo/stardust
import React from 'react' import { Loader } from 'stardust' const InlineCentered = () => <Loader active inline='centered' /> export default InlineCentered
node_modules/react-icons/io/android-arrow-forward.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoAndroidArrowForward = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m6.5 21.6v-3.2h20.3l-9.3-9.4 2.4-2.4 13.3 13.4-13.3 13.4-2.5-2.4 9.4-9.4h-20.3z"/></g> </Icon> ) export default IoAndroidArrowForward
ajax/libs/react-data-grid/0.12.22/react-data-grid.min.js
jonobr1/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.ReactDataGrid=t(require("react")):e.ReactDataGrid=t(e.React)}(this,function(e){return function(e){function t(o){if(r[o])return r[...
docs/pages/customization/density.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'customization/density'; const requireDemo = require.context('docs/src/pages/customization/density', false, /\.(js|tsx)$/); const ...
admin/src/components/ListSort.js
lastjune/keystone
import { FormNote } from 'elemental'; import classNames from 'classnames'; import React from 'react'; import Popout from './Popout'; import PopoutList from './PopoutList'; import vkey from 'vkey'; import CurrentListStore from '../stores/CurrentListStore'; const Transition = React.addons.CSSTransitionGroup; var ListS...
ajax/libs/flocks.js/0.16.1/flocks.min.js
honestree/cdnjs
if("undefined"===typeof React)var React=require("react"); (function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type...
app/javascript/mastodon/features/mutes/index.js
kagucho/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { ScrollContainer } from 'react-router-scroll'; import Column from '../ui/components...
.storybook/components/OverflowMenuStory.js
hellobrian/carbon-components-react
import React from 'react'; import { storiesOf, action } from '@storybook/react'; import OverflowMenu from '../../components/OverflowMenu'; import OverflowMenuItem from '../../components/OverflowMenuItem'; const overflowMenuEvents = { onClick: action('onClick'), className: 'some-class', }; const overflowMenuItemEv...
local-cli/generator/templates/index.ios.js
carcer/react-native
/** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict'; var React = require('react-native'); var { AppRegistry, StyleSheet, Text, View, } = React; var <%= name %> = React.createClass({ render: function() { return ( <View style={styles.container}> <Text ...
pyxis/views/new-user/index.js
gtkatakura/furb-desenvolvimento-plataformas-moveis
import React from 'react'; import { Alert, View, Text, Button, StyleSheet } from 'react-native'; import Components from './../../components'; import env from './../../env'; import AuthService from './../../services/auth'; const styles = StyleSheet.create({ header: { paddingTop: `20%`, justifyContent: 'cente...
ajax/libs/muicss/0.6.5/react/mui-react.min.js
joeyparrish/cdnjs
!function(e){var t=e.babelHelpers={};t.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t.createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.definePro...
Tests/Components/RoundedButtonTest.js
tk1cntt/KanjiMaster
// https://github.com/airbnb/enzyme/blob/master/docs/api/shallow.md import test from 'ava' import React from 'react' import RoundedButton from '../../App/Components/RoundedButton' import { shallow } from 'enzyme' test('component exists', t => { const wrapper = shallow(<RoundedButton onPress={() => {}} text='hi' />) ...
src/svg-icons/notification/event-available.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationEventAvailable = (props) => ( <SvgIcon {...props}> <path d="M16.53 11.06L15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17l5.94-5.94zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 ...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
berserkertdl/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classnames from 'classnames'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; im...
src/pages/obs-scenes/index.js
aravindballa/website2017
import React from 'react'; import styled, { css } from 'styled-components'; import { colors } from '../../utils/theme'; const StyledFrame = styled.div` width: 100vw; height: 100vh; background: ${colors.background}; color: ${colors.text}; display: flex; flex-direction: column; `; const StyledFooter = styl...
packages/react-router-native/examples/BasicExample.js
DelvarWorld/react-router
import React from 'react' import { StyleSheet, Text, View } from 'react-native' import { NativeRouter, Route, Link } from 'react-router-native' const Home = () => ( <Text style={styles.header}> Home </Text> ) const About = () => ( <Text style={styles.header}> About </Text> ) const Topic = ({ match })...
src/routes.js
betotto/react-redux-plantilla
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import QuestionModule from './containers/QuestionContainer'; import QuestionForm from './components/question/QuestionForm'; import QuestionList from './components/question/QuestionList'; import CandidateMo...
App/top-list.js
Tyler-Losinski/Rater-Mc-Ratey-Face
import React, { Component } from 'react'; import { StyleSheet, Image } from 'react-native'; import { Card, CardItem, Thumbnail, Text, Button, Left, Body, Right, Icon, View, Spinner, Container, Content, List, ListItem, Header, Title } from 'native-base'; import _ from 'lodash'; import { Actions } from...
React Native/1/App.js
hugonasciutti/Exercises
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', and...
src/PaginationButton.js
mxc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import createSelectedEvent from './utils/createSelectedEvent'; import CustomPropTypes from './utils/CustomPropTypes'; const PaginationButton = React.createClass({ mixins: [BootstrapMixin], propTypes: { ...
node_modules/react-router/es6/IndexLink.js
WatkinsSoftwareDevelopment/HowardsBarberShop
'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; }; import React from 'react'; import Link from '....
client/src/components/Map.js
courtneypattison/second-response
import React, { Component } from 'react'; import { connect } from 'react-redux'; class MapView extends Component { constructor() { super(); this.state = {} } render() { return ( <div id="map" className='map'></div> ) } } const mapStateToProps = state => { return { bounds: state....
ajax/libs/babel-core/4.4.2/browser.js
LeaYeh/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.babel=e()}}(function(){var define,module,exports;retu...
examples/custom-server-micro/pages/a.js
giacomorebonato/next.js
import React from 'react' export default () => <div>a</div>
src/client/react/admin/views/ChallengesView/ChallengeItemProfile.js
bwyap/ptc-amazing-g-race
import React from 'react'; import PropTypes from 'prop-types'; import autobind from 'core-decorators/es/autobind'; import { Button, Intent, Spinner, EditableText, Dialog } from '@blueprintjs/core'; import { graphql, compose } from 'react-apollo'; import { setChallengeItemOrder, setChallengeItemTitle, setChallengeItemDe...
src/components/ChatToggle.js
Spriithy/tmc2017
import React from 'react'; export default class ChatToggle extends React.Component { render = () => { return ( <button className="ChatToggle" onClick={this.props.toggleChat}>Chat {this.props.chat ? "▶" : "◀"}</button> ); } }
packages/material-ui-icons/src/BrightnessHigh.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let BrightnessHigh = props => <SvgIcon {...props}> <path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69...
app/components/slide_up_panel/slide_up_panel_indicator.js
mattermost/mattermost-mobile
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {Animated, Platform, StyleSheet, View} from 'react-native'; export default function slideUpPanelIndicator() { if (Platform.OS === 'android') { return null; ...
gui/src/app/components/plot-selection-menu.js
mbonvini/LambdaSim
/* global Plotly */ import React from 'react'; import log from 'loglevel'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table'; import TextField from 'material-ui/TextField'; import Checkbox from 'material-ui/Checkbox'; import { setPlotVariable, updatePlotFilt...
solution/vanity-website/src/components/MonkeyList.js
aarongreenwald/rn-workshop
import React from 'react'; const images = [1, 2, 3, 4, 5, 6, 7, 8, 9]; const Image = ({src, index}) => <div className="monkey-image"> <a href={`#/monkeys/${index}`}> <img src={src} width="120" /> </a> </div>; export const MonkeyList = () => <div className="monkey-list"> <a href="#/">Back to H...
client/landing-index.js
gobble43/gobble-dist-web
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './../common/configureStore'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); import Landing from './../common/landing/Landing'; ReactDOM.render( ...
www/src/pages/docs/bound-action-creators.js
mickeyreiss/gatsby
import React from "react" import Functions from "../../components/function-list" import { rhythm, scale } from "../../utils/typography" import Container from "../../components/container" class ActionCreatorsDocs extends React.Component { render() { return ( <Container> <h1 css={{ marginTop: 0 }}>B...
src/MapLayer.js
ericsoco/react-leaflet
import assign from 'lodash/object/assign'; import React from 'react'; import MapComponent from './MapComponent'; export default class MapLayer extends MapComponent { componentDidMount() { super.componentDidMount(); (this.props.layerGroup || this.props.map).addLayer(this.leafletElement); } componentWillU...
src/routes/notFound/index.js
arkeros/react-native-starter-kit
/** * 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 NotFound from './NotFoun...
ajax/libs/react-instantsearch/5.0.0/Dom.js
cdnjs/cdnjs
/*! ReactInstantSearch 5.0.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
node_modules/@exponent/ex-navigation/src/drawer/ExNavigationDrawerItem.js
Helena-High/school-app
import React from 'react'; export default class ExNavigationDrawerItem extends React.Component { render() { return null; } }
client/extensions/woocommerce/components/store-address/index.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React, { Component } from 'react'; import { localize } from 'i18n-calypso'; import { bindActionCreators } from 'redux'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { find, isEmpty } from 'lodash'; /** * Internal dependenci...
app/src/components/shared/NavLink.js
mbmybook/website
'use strict' import '../../style.css' import React from 'react' import { Link } from 'react-router' class NavLink extends React.Component { render() { return <Link {...this.props}/> } } export default NavLink
classic/src/scenes/traypopout/src/Scenes/RecentScene/RecentScene.js
wavebox/waveboxapp
import React from 'react' import ReactDOM from 'react-dom' import shallowCompare from 'react-addons-shallow-compare' import { accountStore } from 'stores/account' import Infinate from 'react-infinite' import { List } from '@material-ui/core' import ErrorBoundary from 'wbui/ErrorBoundary' import { withStyles } from '@ma...
stories/textformgroup.stories.js
JimBarrows/Bootstrap-React-Components
import {action} from '@storybook/addon-actions' import {storiesOf} from '@storybook/react' import React from 'react' import TextFormGroup from '../src/formgroups/TextFormGroup' storiesOf('Form Groups/Text', module) .addDecorator((story) => <div className="container">{<form>{story()}</form>}</div>) .add('Default'...
src/containers/NotFound/tests/NotFound-test.js
GustavPersson/tvattstuga
import React from 'react'; import { shallow } from 'enzyme'; // eslint-disable-line import/no-extraneous-dependencies import NotFound from '../index'; describe('<NotFound />', () => { it('renders 404 error message', () => { const wrapper = shallow(<NotFound />); expect(wrapper.find('p').text()).to.equal('Oo...
Libraries/Components/TextInput/TextInput.js
DanielMSchmidt/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
node_modules/_react@15.6.2@react/lib/onlyChild.js
ligangwolai/blog
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ 'use strict'; var _prodInvariant = require('./reactProdInvariant'); var ReactElement = require('./ReactElement'); var invariant = r...
ui/src/components/FetchingCodeBlock.js
LastCallMedia/Mannequin
import React, { Component } from 'react'; import CodeBlock from './CodeBlock'; import Callout from './Callout'; import { Loading } from './Icons'; import PropTypes from 'prop-types'; import './FetchingCodeBlock.css'; class FetchingCodeBlock extends Component { constructor(props) { super(props); this.state = ...
src/routes/Account/components/AccountTransferModal.js
denimar/denibudget
import React from 'react' import { Modal, Button, OverlayTrigger, Tooltip, Form, FormGroup, FormControl, Checkbox, Col, ButtonGroup, Input, ControlLabel, FieldGroup, Radio } from 'react-bootstrap'; import moment from 'moment' import Select from 'react-select'; import 'react-select/dist/react-select.css'; import Currenc...