path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
pages/public/components/Services.js
mackybeltran/magic_mark_static_website
import React from 'react'; import { Modal } from 'react-bootstrap' class Services extends React.Component { render(){ return( <div> <Modal.Body className = 'services-modal'> <h4>Services</h4> <h6>Parlour show </h6> <p>I have a unique parlour t...
examples/js/pagination/demo.js
opensourcegeek/react-bootstrap-table
import React from 'react'; import DefaultPaginationTable from './default-pagination-table'; import CustomPaginationTable from './custom-pagination-table'; import PaginationHookTable from './pagination-hook-table'; class Demo extends React.Component { render() { return ( <div> <div className="col-md...
client/src/components/sidebar.js
kat09kat09/GigRTC
import React from 'react'; const SideBar = (props) => { return ( <div className='hide SideBar'> SideBar is here! </div> ) } export default SideBar;
ajax/libs/vue-router/4.0.0-beta.12/vue-router.cjs.prod.js
cdnjs/cdnjs
/*! * vue-router v4.0.0-beta.12 * (c) 2020 Eduardo San Martin Morote * @license MIT */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); const hasSymbol = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; const PolySymbol = (name) =>...
app/components/StellarContactForm/index.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class TrustForm extends Component { static propTypes = { trust: PropTypes.func.isRequired, stellarKeys: PropTypes.object.isRequired, }; constructor(props) { super(props); this.handleSubmit = this.handleSu...
features/apimgt/org.wso2.carbon.apimgt.admin.feature/src/main/resources/admin/source/src/app/components/ThrottlingPolicies/Shared/BurstControl.js
Minoli/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/index.js
AaronBDC/GoalBoss
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import { Router, Route, browserHistory } from 'react-router'; import { firebaseApp } from './firebase'; import { logUser } from './actions'; import reducer from './reducers'; impor...
ui/routes/SavedFeedPage.js
nlhuykhang/apollo-react-quotes-client
import React from 'react'; import { graphql } from 'react-apollo'; import update from 'immutability-helper'; import Loading from '../components/Loading'; import SavedFeed from '../components/SavedFeed'; import reducerFactory from '../helpers/reducerFactory'; import SAVEDFEED from '../graphql/SavedFeed.graphql'; impo...
src/app/components/chat/components/ChatForm.js
backpackcoder/world-in-flames
import React from 'react' export default class ChatForm extends React.Component { state = { message: '', enterToSend: false }; onKeyDown = (event) => { if (event.which == 13 && !event.shiftKey && this.state.enterToSend) { this.props.onMessageSend(this.state.message) } else { // this...
shared/components/DemoApp/AsyncHomeRoute/HomeRoute.js
ctrlplusb/react-universally
import React from 'react'; import Helmet from 'react-helmet'; import config from '../../../../config'; function HomeRoute() { return ( <div> <Helmet> <title>Home</title> </Helmet> <h2>{config('welcomeMessage')}</h2> <p> This starter kit contains all the build tooling an...
Example/components/Launch.js
gijoehosaphat/react-native-router-flux
import React from 'react'; import {View, Text, StyleSheet} from "react-native"; import Button from "react-native-button"; import {Actions} from "react-native-router-flux"; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center", backgroundColor: "transp...
vendor/react-with-addons.js
hzdg/react-pressable
/** * React (with addons) v0.10.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.React=e()}}(function(){var define,module,expo...
src/components/SkillSet/SkillSet.js
IanChuckYin/IanChuckYin.github.io
import React, { Component } from 'react'; import styles from './SkillSet.module.scss'; import { connect } from 'react-redux'; import PageTitle from '../PageTitle/PageTitle'; import ContentContainer from '../ContentContainer/ContentContainer' import Grid from '../Grid/Grid'; import SkillSetPanel from '../SkillSetPanel/...
node_modules/babel-traverse/lib/path/lib/virtual-types.js
bengimbel/Solstice-React-Contacts-Project
"use strict"; exports.__esModule = true; exports.Flow = exports.Pure = exports.Generated = exports.User = exports.Var = exports.BlockScoped = exports.Referenced = exports.Scope = exports.Expression = exports.Statement = exports.BindingIdentifier = exports.ReferencedMemberExpression = exports.ReferencedIdentifier = und...
packages/mcs-lite-ui/src/MobileFixedFooter/MobileDeviceCard.example.js
MCS-Lite/mcs-lite
import React from 'react'; import styled from 'styled-components'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import MobileFixedFooter from '.'; import Button from '../Button'; const ButtonWrapper = styled.div` display: flex; padding: 8px; > * { flex: 1; ...
packages/react-router-website/modules/components/Home/index.js
goblortikus/react-router
import React from 'react' import { Block } from 'jsxstyle' import Header from './Header' import Video from './Video' import Footer from '../Footer' export default () => ( <Block> <Header/> <Video/> <Footer/> </Block> )
ajax/libs/react-native-web/0.17.0/exports/Touchable/index.js
cdnjs/cdnjs
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @format */ 'use strict'; function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var targ...
vendor/jquery-validation/lib/jquery-1.6.4.js
ikus060/rdiffweb
/*! * jQuery JavaScript Library v1.6.4 * 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/index.js
bokuweb/react-motion-menu
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import MenuItem from './item'; import MenuButton from './button'; export default class MotionMenu extends Component { static propTypes = { margin: PropTypes.number.isRequired, type: PropTypes.oneOf(['horizontal', 'vertical', 'circ...
src/post/Write/PostEditor.js
Sekhmet/busy
// Forked from https://github.com/rajaraodv/draftjs-examples import newDebug from 'debug'; import classNames from 'classnames'; import { connect } from 'react-redux'; import React, { Component } from 'react'; import _ from 'lodash'; // draft-js import 'draft-js-image2-plugin/lib/plugin.css'; import 'draft-js-delete-im...
app/components/Header/index.js
Demonslyr/Donut.WFE.Customer
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from './A'; import Img from './Img'; import NavBar from './NavBar'; import HeaderLink from './HeaderLink'; import Banner from './banner.jpg'; import messages from './messages'; class Header extends React.Component { // eslint-disable-l...
local_modules/phi-nomenal-webapp/app/god/god.js
phi-nomenal/phi-nomenal
import React from 'react' import { render } from 'react-dom' import './god.css' class God extends React.Component { render () { return <div id='god'> <div id='god-overview' /> </div> } } export default God
admin/client/Signin/index.js
linhanyang/keystone
/** * The signin page, it renders a page with a username and password input form. * * This is decoupled from the main app (in the "App/" folder) because we inject * lots of data into the other screens (like the lists that exist) that we don't * want to have injected here, so this is a completely separate route and...
js/jquery-1.11.2.min.js
ivyboy/ivyboy.github.com
/*! 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...
server/sonar-web/test/medium/coding-rules.spec.js
vamsirajendra/sonarqube
define(function (require) { var bdd = require('intern!bdd'); require('../helpers/test-page'); bdd.describe('Coding Rules Page', function () { bdd.it('should show alert when there is no available profiles for activation', function () { return this.remote .open() .mockFromFile('/api/...
src/client/app/shared/components/leaflet/vectilelayer.component.js
mapkiwiz/sectorisation
import React from 'react'; import L from 'leaflet'; import LeafletVecTileLayer from '../../../../lib/Leaflet.VecTileLayer'; import _ from 'lodash'; export class VecTileLayer extends React.Component { __leaflet_component__; static contextTypes = { registry: React.PropTypes.object }; static propTypes = { ...
src/components/Copy/Copy-test.js
carbon-design-system/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 React from 'react'; import Copy from '../Copy'; import { shallow, mount } from 'enzyme'; jest.useFakeTimers(); describe('Copy', () =...
src/components/Tumblr.js
KingCosmic/tinyQuotes
import React from 'react'; const Tumblr = (props) => { const { author, referer, meta } = props.quote; const { encoded } = meta; return ( <li> <a target="_blank" id="tumblr" title="Share Me :)" href={`http://www.tumblr.com/share/link?description=${encoded}%20-${author} | @${referer}`}>Tumblr</a>...
node_modules/rc-time-picker/es/Header.js
ZSMingNB/react-news
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React, { Component } from 'react'; im...
docs/app/Examples/collections/Message/Variations/MessageWarningExample.js
jamiehill/stardust
import React from 'react' import { Message } from 'stardust' const MessageWarningExample = () => ( <Message warning> <Message.Header>You must register before you can do that!</Message.Header> <p>Visit our registration page, then try again.</p> </Message> ) export default MessageWarningExample
node_modules/react-icons/ti/social-at-circular.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const TiSocialAtCircular = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m19.7 12.5c-4.1 0-7.4 3.4-7.4 7.5s3.5 7.5 7.6 7.5c1.5 0 3-0.4 4.2-1.3 0.4-0.3 0.5-0.8 0.3-1.2-0.3-0.3-0.8-0.4-1.2-0.2-0.9 0.7-2.1 1-3.3 1-3.2 0-5.8-2.6-5.8-5...
src/svg-icons/image/photo-size-select-actual.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoSizeSelectActual = (props) => ( <SvgIcon {...props}> <path d="M21 3H3C2 3 1 4 1 5v14c0 1.1.9 2 2 2h18c1 0 2-1 2-2V5c0-1-1-2-2-2zM5 17l3.5-4.5 2.5 3.01L14.5 11l4.5 6H5z"/> </SvgIcon> ); ImagePhotoSiz...
src/routes/content/index.js
monotonique/react-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 Content from './Content'...
src/components/ChartWithLegend.js
todvora/extrade
import React from 'react' var Chart = require('react-chartjs').Line import '../styles/ChartWithLegend.less' export default class ChartWithLegend extends React.Component { constructor (props) { super() this.state = {legend: ''} } componentDidMount () { var legend = this.refs.chart.getChart().generateLeg...
src/containers/app/Apps.js
dataloom/gallery
import React from 'react'; import PropTypes from 'prop-types'; import Immutable from 'immutable'; import DocumentTitle from 'react-document-title'; import FontAwesome from 'react-fontawesome'; import { Button, ButtonGroup, ButtonToolbar, ControlLabel, DropdownButton, FormControl, FormGroup, MenuItem, Modal } from 'reac...
fields/types/localfiles/LocalFilesField.js
w01fgang/keystone
/* TODO: this file has been left as a reference for the new File type field. Some features here, including size formatting and icons, may be ported across. */ import _ from 'lodash'; import bytes from 'bytes'; import Field from '../Field'; import React from 'react'; import { Button, FormField, FormInput, FormNote } fr...
packages/react-ui-components/src/Tooltip/index.story.js
grebaldi/PackageFactory.Guevara
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withKnobs, text} from '@storybook/addon-knobs'; import {StoryWrapper} from './../_lib/storyUtils'; import Tooltip from '.'; storiesOf('Tooltip', module) .addDecorator(withKnobs) .addWithInfo( 'default', () => ( ...
src/modules/etfms-profile/components/Results/Results.js
devteamreims/4me.react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import FlightList from '../FlightList'; import Spinner from '../Spinner'; class Results extends Component { handleTouchTap = (event, flight) => { const { getProfile, onClickOnFlight, } = this.props; if(onClick...
client/modules/App/components/Footer/Footer.js
svolkov92/TextStreams
import React from 'react'; import { FormattedMessage } from 'react-intl'; // Import Style import styles from './Footer.css'; // Import Images import bg from '../../header-bk.png'; export function Footer() { return ( <div style={{ background: `#FFF url(${bg}) center` }} className={styles.footer}> <p>&copy...
node_modules/react-icons/go/calendar.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const GoCalendar = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m27.5 20h-2.5v5h2.5v-5z m-5 0h-2.5v5h2.5v-5z m5-7.5h-2.5v5h2.5v-5z m5 7.5h-2.5v5h2.5v-5z m-10 7.5h-2.5v5h2.5v-5z m7.5-27.5h-2.5v5h2.5v-5z m-20 0h-2.5v5h2.5v-5z m22.5...
src/js/view/listview.js
chemdemo/react-webpack-todos
/* * @Author: dmyang * @Date: 2015-07-31 14:25:50 * @Last Modified by: dmyang * @Last Modified time: 2015-08-18 21:48:54 */ 'use strict'; import React from 'react'; let Raw = React.createClass({ render() { let props = this.props; let status = props.status ? 'done' : 'undo'; return ( ...
doc/themes/scikit-learn/static/jquery.js
mehdidc/scikit-learn
/*! jQuery v1.7.2 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde...
ajax/libs/intl-tel-input/5.1.3/js/intlTelInput.js
cgvarela/cdnjs
/* International Telephone Input v5.1.3 https://github.com/Bluefieldscom/intl-tel-input.git */ // wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPlugin.js (function(factory) { if (typeof define === "function" && define.amd) { define([ "jquery" ], function($) { factory($, window...
examples/react/index.js
RNFDigital/eslint-config-rnf
/* @flow */ import PropTypes from 'prop-types' import React from 'react' const selfClosing = <div /> const multiLine = ( <div> <span>Hello World</span> <div>{selfClosing}</div> </div> ) const onChange = () => 1 const singleProp = <input onChange={onChange} /> const multiProp = ( <div> ...
ajax/libs/forerunnerdb/2.0.13/fdb-core+views.min.js
wout/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
ajax/libs/react/0.11.0/react-with-addons.js
hasantayyar/cdnjs
/** * React (with addons) v0.11.0 */ !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.React=e()}}(fu...
src/Badge.js
pivotal-cf/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, getDefaultProps() { return { pullRight: false }; }, hasContent() { re...
ui/src/containers/signOut.js
jollopre/mps
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { deleteSignOut } from '../actions/user'; class SignOut extends Component { constructor(props){ super(props); this.signOutHandler = this.signOutHandler.bind(this); } signOutHandler() { c...
client/node_modules/uu5g03/dist-node/forms-v3/text-area.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin} from './../common/common.js'; import InputWrapper from './internal/input-wrapper.js'; import TextInput from './internal/text-input.js'; import TextInputMixin from './mixins/text-input-mixin.js' import ItemList from './internal/item-list.js'; import Back...
lib/VideoCoverFallback.js
t-obi/react-video-cover
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class VideoCoverFallback extends Component { constructor(props) { super(props); this.state = { innerRatio: undefined, outerRatio: undefined, } this.updateContainerRatio = this.updateContainerRatio.bind(this); ...
src/components/BookModify/BookModify.js
k2data/books-ui
import React from 'react' import { Form, Input, InputNumber, DatePicker, Button } from 'antd' import moment from 'moment' const FormItem = Form.Item const format = 'YYYY-MM-DD' const Props = { book: Object, form: Object, getFieldDecorator: Function, modify: Function, bookMessage: Object } export class Book...
app/App.js
AdlerPlanetarium/aad-drake-eq
import React from 'react' import Data from 'sample-data' import EQTerm from 'components/eq-term' let App = React.createClass({ getInitialState(){ return { 'rstar': Data['rstar'].defaultValue , 'fp': Data['fp'].defaultValue , 'ne': Data['ne'].defaultValue , 'fl': Data['fl'].defaultValue , 'fi': Data['fi'].default...
ajax/libs/material-ui/5.0.0-alpha.37/modern/Avatar/Avatar.js
cdnjs/cdnjs
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _extends from "@babel/runtime/helpers/esm/extends"; const _excluded = ["alt", "children", "className", "component", "imgProps", "sizes", "src", "srcSet", "variant"]; import * as React from 'react'; import PropTyp...
ext/lib/site/home-consultas/topic-card/component.js
RosarioCiudad/democracyos
import React from 'react' import { Link } from 'react-router' import moment from 'moment' import Timeago from 'lib/site/timeago' // import Poll from 'lib/site/topic-layout/topic-article/poll/component' import Poll from '../../topic-layout/topic-article/poll/component' import { SharerFacebook } from 'ext/lib/site/sharer...
test/karma.conf.js
spiermar/material-ui
const path = require('path'); const argv = process.argv.slice(2); const opts = { grep: undefined, }; argv.forEach((arg) => { if (/^--grep=/.test(arg)) { opts.grep = arg.replace('--grep=', '').trim(); opts.coverage = false; // disable if grepping } }); // Karma configuration module.exports = function(con...
src/images/IconSketch.js
benjaminmodayil/modayilme
import React from 'react'; function Icon({ width = 37, height = 34 }) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={width} height={height}> <path fill="#FDB300" fillRule="evenodd" d="M8.249 1.12L18.903 0l10.655 1.12 8.249 11.004L18.903 34 0 12.124 8.249 1.119z" ></...
src/components/Edit/index.js
Apozhidaev/terminal.mobi
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { update } from 'store/app/book/model/actions'; import currentSlot from '../wrappers/currentSlot'; import EditForm from '../EditForm'; class Edit extends Component { constructor(props) { super(props); this.handleSave = t...
app/javascript/mastodon/components/status_list.js
blackle/mastodon
import { debounce } from 'lodash'; import React from 'react'; import { FormattedMessage } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import ImmutablePureComponent from 'react-immutable-p...
ajax/libs/jqwidgets/9.1.6/jqwidgets-react-tsx/jqxnavigationbar/react_jqxnavigationbar.umd.min.js
cdnjs/cdnjs
require("../../jqwidgets/jqxcore"),require("../../jqwidgets/jqxnavigationbar"),function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],o):o(t.react_jqxnavigationbar={},t.React)}(this,function(t,o){"use strict";var e=...
ajax/libs/rxjs/2.3.9/rx.lite.js
solojavier/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
ignite/Examples/Containers/ignite-ir-boilerplate/GridExample.js
TylerKirby/Phrontis
import React from 'react' import { View, Text, ListView } from 'react-native' import { connect } from 'react-redux' // For empty lists // import AlertMessage from '../Components/AlertMessage' // Styles import styles from './Styles/GridExampleStyle' class GridExample extends React.Component { constructor (props) { ...
client/src/index.js
Nichsiciul/User-Friendly-CMS
import React from 'react'; import ReactDOM from 'react-dom'; import axios from 'axios'; import 'bootstrap/dist/css/bootstrap.css'; import './index.css'; import App from './App/App'; window.global = {}; //defines the global object. axios.all([ axios.get('/api/header'), axios.get('/api/general'), axios.g...
packages/core/admin/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/ActionRow/index.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import IS_DISABLED from 'ee_else_ce/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/ActionRow/utils/constants'; import { Box } from '@strapi/design-system/Box'; import { Flex } from '@strapi/design-system/Flex'; import { Typography } from...
test/regressions/tests/TextField/TextFieldRequired.js
kybarg/material-ui
import React from 'react'; import TextField from '@material-ui/core/TextField'; export default function TextFieldRequired() { return ( <div> <TextField required label="Foo" /> <TextField required label="Foo" value="Hello world" /> </div> ); }
src/server.js
bingomanatee/react-redux-universal-hot-example-mdl
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
app/containers/NotFoundPage/index.js
samit4me/react-boilerplate
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import messages from './messages'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; export default function NotFound() { return ( <article> ...
ui/src/frontend/component/ReleaseType.js
Virtustream-OSS/packrat
import React from 'react'; import CInP from './cinp'; import { Table, TableHead, TableRow, TableCell } from 'react-toolbox'; import { Link } from 'react-router-dom'; class ReleaseType extends React.Component { state = { releasetype_list: [], releasetype: null }; componentDidMount() { this.upd...
packages/react/src/components/atoms/table/Table/index.js
massgov/mayflower
/** * Table module. * @module @massds/mayflower-react/Table * @requires module:@massds/mayflower-assets/scss/01-atoms/table */ import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; const Table = (table) => { let tableWideClass = ''; let tableHeaderRow = []; if (t...
app/js/components/ModelViews/DetailView.js
niksoc/srmconnect
// almost a copy of simpleDetailViewPage, should refactor import React from 'react'; import {pullRight} from 'react-bootstrap'; import axios from 'axios'; import Markdown from '../Markdown'; import PageTitle from '../PageTitle'; import LoadingIndicator from '../LoadingIndicator'; import UserThumb from '../UserThumb'; i...
src/svg-icons/av/playlist-play.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistPlay = (props) => ( <SvgIcon {...props}> <path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/> </SvgIcon> ); AvPlaylistPlay = pure(AvPlaylistPlay); AvPlaylistPlay.displayName = '...
ajax/libs/vis/0.5.1/vis.js
chrisharrington/cdnjs
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 0.5.1 * @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...
src/client/components/Utils/Redirect.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { getUseBeta } from '../../reducers'; const Redirect = ({ useBeta }) => { if (typeof window !== 'undefined' && window.location.host === 'busy.org' && useBeta) { const url = window.location.href.split('/')...
app/src/components/MainTabs/TabContentContribution/index.js
oh-my-github/yo-omg-basic
import React from 'react' import List from 'material-ui/lib/lists/list' import ListItem from 'material-ui/lib/lists/list-item' import Divider from 'material-ui/lib/divider' import Avatar from 'material-ui/lib/avatar' import Colors from 'material-ui/lib/styles/colors' import FontIcon from 'material-ui/lib/font-icon' im...
src/containers/DevTools.js
Kamahl19/react-slides
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 defaultIsVisible={false} toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q"> ...
docs-ui/components/autoComplete.stories.js
gencer/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; // import {action} from '@storybook/addon-actions'; import AutoComplete from 'sentry-ui/autoComplete'; const items = [ { name: 'Apple', }, { name: 'Pineapple', }, { name: 'Orang...
src/svg-icons/communication/phone.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhone = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61...
node_modules/react-router/modules/Router.js
NathanBWaters/website
import createHashHistory from 'history/lib/createHashHistory' import useQueries from 'history/lib/useQueries' import React from 'react' import createTransitionManager from './createTransitionManager' import { routes } from './PropTypes' import RouterContext from './RouterContext' import { createRoutes } from './RouteU...
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 /> ...
WebApp/wwwroot/ReactApp/src/components/codecamp/home/HomeSessionFilter.js
pkellner/svcc-react4
import React from 'react'; export default function HomeSessionFilter() { return ( <div className="filter-bar container-fluid"> <div className="row filter-first-row"> <div className="dropdown js-dictionarySessionTimes col-12 col-md-3"> <button className="btn btn-white btn-white...
src/components/Chatbot/lib/VoiceRecognition.js
jainvabhi/PWD
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class VoiceRecognition extends Component { constructor (props) { super(props); const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition || window.mozSpeechRecognition || window.msSpeec...
packages/material-ui-icons/src/Battery80.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h10V5.33z" /><path d="M7 9v11.67C7 21.4 7.6 22 8.33 22h7.33c.74...
server/sonar-web/src/main/js/apps/overview/components/complexity-distribution.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
renderer/components/UI/CloseButton.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { themeGet } from '@styled-system/theme-get' import { Flex, Box } from 'rebass/styled-components' import X from 'components/Icon/X' const CloseButtonWrapper = styled(Box)` height: ${({ size }) => (size === 's' ...
packages/mcs-lite-ui/src/PreventDrag/PreventDrag.js
MCS-Lite/mcs-lite
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; export const Container = styled.div` user-select: none; -webkit-user-drag: none; `; const preventDefault = e => e.preventDefault(); const PreventDrag = ({ children }) => ( <Container onDrop={preventDefaul...
src/components/RequestErrorDisplayer.js
KevinBacas/DBPedia-Explorer
import React from 'react'; class RequestErrorDisplayer extends React.Component { render() { return ( <div className="ui negative message"> <div className="header"> There is an error in the request : </div> <p>{this.props.error}</p> </div> ); } } export default...
src/components/groupComponents/MetaFormGroup.js
gearz-lab/react-metaform
import React from 'react'; import _ from 'underscore'; import Alert from 'react-bootstrap/lib/Alert.js'; import Glyphicon from 'react-bootstrap/lib/Glyphicon.js'; var MetaFormGroup = React.createClass({ propTypes: { component: React.PropTypes.string, layout: React.PropTypes.object.isRequired, ...
packages/jquery/jquery.js
TribeMedia/meteor
/*! * jQuery JavaScript Library v1.11.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-12-17T15:27Z */ (function( global, factory ) { if ...
src/components/ProgressRenderer.js
shivijais/handsontable
import React from 'react'; const numFormatObject = (number) => { var formatObject, getObj = function(num, abbr) { return { value: num, abbr: abbr }; }; if(number >= 1000000000) { formatObject = getObj(1000000000, 'B'); ...
client/src/components/kegs/keg-summary.js
commoncode/ontap
/* eslint-disable no-nested-ternary */ /** * KegSummary * Quick overview of a Keg. * What tap it's on, date tapped, ratings, notes, etc. */ import React from 'react'; import moment from 'moment'; import { kegModel } from '../../proptypes'; import KegSummaryCheers from './keg-summary-cheers'; const KegSummary =...
node/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/app.js
carlag/10Layer-LS
/* Modernizr 2.0.6 (Custom Build) | MIT & BSD * Build: http://www.modernizr.com/download/#-iepp */ ;window.Modernizr=function(a,b,c){function w(a,b){return!!~(""+a).indexOf(b)}function v(a,b){return typeof a===b}function u(a,b){return t(prefixes.join(a+";")+(b||""))}function t(a){j.cssText=a}var d="2.0.6",e={},f=b.do...
src/svg-icons/maps/local-pharmacy.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPharmacy = (props) => ( <SvgIcon {...props}> <path d="M21 5h-2.64l1.14-3.14L17.15 1l-1.46 4H3v2l2 6-2 6v2h18v-2l-2-6 2-6V5zm-5 9h-3v3h-2v-3H8v-2h3V9h2v3h3v2z"/> </SvgIcon> ); MapsLocalPharmacy = pure...
test/containers/CounterPage.spec.js
jkusachi/gitty
import { expect } from 'chai'; import React from 'react'; import { renderIntoDocument, scryRenderedDOMComponentsWithTag, findRenderedDOMComponentWithClass, Simulate } from 'react-addons-test-utils'; import { Provider } from 'react-redux'; import CounterPage from '../../app/containers/CounterPage'; import config...
src/parser/warlock/demonology/CONFIG.js
sMteX/WoWAnalyzer
import React from 'react'; import { Chizu, Gwelican } from 'CONTRIBUTORS'; import retryingPromise from 'common/retryingPromise'; import SPECS from 'game/SPECS'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don't have to sign up to be long-t...
src/components/FlexItem.js
bhargav175/react-layouts
/** * Flex Item */ import React from 'react'; export default class FlexItem extends React.Component{ render(){ let {style,flexVal} = this.props; let defaultStyle = { flex : flexVal || '1' } style = Object.assign({},defaultStyle,style || {}); return <div style={style} className="flex-box__flex-item">{t...
app/pages/reservation/reservation-information/ReservationMetadataField.js
fastmonkeys/respa-ui
import React from 'react'; import PropTypes from 'prop-types'; import Input from './Input'; import Textarea from './Textarea'; import Terms from './Terms'; function ReservationMetadataField({ type, input, externalName, ...rest }) { const name = externalName || input.name || undefined; const inputWithModifiedNam...
client/views/admin/settings/inputs/RelativeUrlSettingInput.stories.js
VoiSmart/Rocket.Chat
import { Field } from '@rocket.chat/fuselage'; import { action } from '@storybook/addon-actions'; import React from 'react'; import RelativeUrlSettingInput from './RelativeUrlSettingInput'; export default { title: 'admin/settings/inputs/RelativeUrlSettingInput', component: RelativeUrlSettingInput, decorators: [(st...
ajax/libs/yui/3.10.0/scrollview-base/scrollview-base.js
djavaui/cdnjs
YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview * @submodule scrollview-base */ // Local vars var getClassName = Y.ClassNameManager.getClassName, DOCUMENT = Y.config.doc, IE = Y.UA.ie...
app/javascript/mastodon/features/ui/components/boost_modal.js
clworld/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; import StatusContent from '../../../components/status_content'; import Av...
src/js/visuals/components/Maps/index.js
CT-Data-Collaborative/edi-v2
import React, { Component } from 'react'; import bbox from 'turf-bbox'; import { Map, Marker, Popup, TileLayer, GeoJSON } from 'react-leaflet'; import Control from 'react-leaflet-control'; class EdiMap extends Component { constructor(props) { super(props); this.state = { geojson: JSON.p...
tests/__mocks__/rc-util/lib/Portal.js
ant-design/ant-design
import React from 'react'; export default class Portal extends React.Component { componentDidMount() { this.createContainer(); } createContainer() { this.container = true; this.forceUpdate(); } render() { const { children } = this.props; if (this.container) { return children; ...