path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
admin/public/js/lib/jquery/jquery-1.10.2.js
kristianmandrup/keystone
/*! * 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 ) { // ...
src/pages/dynamic/Common/Common.js
hyy1115/react-redux-webpack2
import React from 'react' class Common extends React.Component { render() { return ( <div>Common</div> ) } } export default Common
app/router.js
tenshiemi/DoDidDone
import React from 'react'; import { Router, Route, browserHistory, IndexRedirect } from 'react-router'; import requireAuth from './utils/requireAuth'; import App from './containers/App'; import TodoListContainer from './containers/TodoListContainer'; import LandingPageContainer from './containers/LandingPageContainer';...
src/components/TeamList.js
nathejk/status-app
import React from 'react' import {List} from 'material-ui/List' import TeamListItem from './TeamListItem' const TeamList = (props) => { let listItems = props.teams === undefined ? null : props.teams.map((team) => { let memberItems = team.members.map(member => { return ( <TeamListItem key=...
app/assets/scripts/views/map-widget.js
thadk/oc-map
'use strict'; 'use strict'; import fetch from 'isomorphic-fetch'; import Promise from 'bluebird'; import React from 'react'; import L from 'leaflet'; import classnames from 'classnames'; import _ from 'lodash'; import omnivore from 'leaflet-omnivore'; import Dropdown from '../components/dropdown'; import LeafletSearch ...
packages/wix-style-react/src/Table/test/Table.e2eStory.js
wix/wix-style-react
/* eslint-disable react/prop-types */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { ActionCellExample } from './testExamples'; import Table from '..'; import { getTestStoryKind } from '../../../stories/storiesHierarchy'; import { storySettings } from '../docs/storySettings'; const...
dashboard/app/components/ApiError/ApiError.js
tlisonbee/cerberus-management-service
import React from 'react' import { Component } from 'react' import PropTypes from 'prop-types' import * as cmsUtils from '../../utils/cmsUtils' import './ApiError.scss' /** * A component to use to make API messages sent to the messenger look pretty and be html and stylable * * @prop message The Message for this app...
app/components/AdminAppBar/index.js
vlastoun/picture-uploader-crud
import React from 'react'; import PropTypes from 'prop-types'; import AppBar from 'material-ui/AppBar'; import FlatButton from 'material-ui/FlatButton'; import { LINKS } from 'constants/AdminLinks'; import LeftDrawer from './LeftDrawer'; const appBarStyle = { postition: 'fixed', top: 0, width: '100%', }; /* e...
client/app/starter.js
ekeric13/data-storage-visual
var React = require("react"); var Router = require('react-router'); var App = require("./components/App"); var ItemView = require("./components/ItemView/ItemView"); var NotFoundView = require("./components/NotFoundView/NotFoundView"); var DefaultRoute = Router.DefaultRoute; var Route = Router.Route; var RouteHandler =...
src/renderer/command-models/view-renderer.js
r7kamura/retro-twitter-client
import React from 'react' import Root from '../components/root' export default class ViewRenderer { render() { React.render(<Root/>, document.body); } }
src/routes/about/index.js
zmj1316/InfomationVisualizationCourseWork
/** * 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 Layout from '../../compo...
client/modules/users/components/invite_new.js
jshimko/home-dash
import React, { Component } from 'react'; import { Button, Modal } from 'react-bootstrap'; class InviteNew extends Component { constructor(props) { super(props); this.state = { showModal: false }; } toggleModal() { this.setState({ showModal: !this.state.showModal }); } sendInvite(e) ...
src/js/components/RoutedAnchor/__tests__/RoutedAnchor-test.js
grommet/grommet
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { render, screen, fireEvent, createEvent } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import 'jest-styled-components'; import 'regenerator-runtime/runtime'; import { Grommet } from '../../Gromm...
ajax/libs/falcor/1.0.0/falcor.all.js
seogi1004/cdnjs
/*! * Copyright 2015 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...
examples/js/selection/only-show-selected-table.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/svg-icons/hardware/keyboard-voice.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardVoice = (props) => ( <SvgIcon {...props}> <path d="M12 15c1.66 0 2.99-1.34 2.99-3L15 6c0-1.66-1.34-3-3-3S9 4.34 9 6v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 15 6.7 12H5c0 3.42 2.72 6....
src/travel/components/TravelMap.js
elailai94/elailai94.github.io
import React, { Component } from 'react'; import { Map, Marker, GoogleApiWrapper, } from 'google-maps-react'; import PropTypes from 'prop-types'; import Settings from '../constants/Settings'; class TravelMap extends Component { render() { const { google } = this.props; const { locations } = this.props...
src/app/confirm-operation-textfield.js
debiasej/react-credit-card-blocker
import React from 'react'; import TextField from 'material-ui/TextField'; const styles = { customWidth: { width: 250, }, }; const TextFieldExampleSimple = (props) => ( <div> <TextField hintText="Password Field" floatingLabelText="Password" type="password" style={ Object.assign(st...
src/parser/warlock/destruction/CHANGELOG.js
FaideWW/WoWAnalyzer
import React from 'react'; import { Chizu } from 'CONTRIBUTORS'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; export default [ { date: new Date('2018-11-12'), changes: 'Certain buffs or debuffs now show in timeline.', contributors: [Chizu], }, { date: new Date('...
client/components/settings/bank-accesses/disable-access-modal.js
ZeHiro/kresus
import React from 'react'; import { connect } from 'react-redux'; import { actions, get } from '../../../store'; import { translate as $t } from '../../../helpers'; import { registerModal } from '../../ui/modal'; import CancelAndWarn from '../../ui/modal/cancel-and-warn-buttons'; import ModalContent from '../../ui/mo...
react-simple-chat/tests/lib/OptionsStep.spec.js
gordongordon/hom
import React from 'react'; import { describe, it } from 'mocha'; import { expect } from 'chai'; import { mount } from 'enzyme'; import { OptionsStep } from '../../lib/steps'; import OptionElement from '../../lib/steps/options/OptionElement'; describe('OptionsStep', () => { const settings = { step: { id: '1...
src/svg-icons/action/assignment-late.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentLate = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0...
ajax/libs/muicss/0.7.4/extra/mui-react-combined.min.js
emmy41124/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 i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.definePro...
ajax/libs/aui/7.0.1/aui/js/aui-experimental.js
cdnjs/cdnjs
/*! * @atlassian/aui - Atlassian User Interface Framework * @version v7.0.1 * @link https://docs.atlassian.com/aui/latest/ * @license SEE LICENSE IN LICENSE.md * @author Atlassian Pty Ltd. */ // src/js/aui/polyfills/placeholder.js (typeof window === 'undefined' ? global : window).__452d3f8e5d643ab60faf3f564b8276d...
client/extensions/woocommerce/app/promotions/fields/checkbox-field.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { omit } from 'lodash'; /** * Internal dependencies */ import FormCheckbox from 'components/forms/form-checkbox'; import FormField from './form-field'; const CheckboxField = props => { const { fie...
docs/src/app/pages/components/Popover/Page.js
GetAmbassador/react-ions
import React from 'react' import PropsList from 'private/modules/PropsList' import docs from '!!docgen!react-ions/lib/components/Popover/Popover' import CodeExample from 'private/modules/CodeExample' import styles from 'private/css/content' import ExampleLeftPopover from './ExampleLeftPopover' import exampleLeftPopover...
jsx/modules/Repos.js
NickTaporuk/webpack_starterkit_project
import React from 'react' import NavLink from './NavLink' import { browserHistory } from 'react-router'; export default React.createClass({ contextTypes: { router: React.PropTypes.object }, // add this method handleSubmit(event) { event.preventDefault(); const userName = event.t...
client/src/pages/score/index.js
wujichao/wencheng
/** * Created by jf on 15/12/10. */ "use strict"; import React from 'react'; import Page from '../../component/page'; import ListView from '../../component/ListView'; import Ajax from '../../util/ajax'; import splitArray from '../../util/splitArray'; export default class Score extends React.Component { constr...
src/mobile/public/components/SectionLight/index.js
Perslu/rerebrace
import React from 'react'; import "./styles.css"; import Section from '../Section'; const SectionLight = (props) => <Section {...props} className="SectionLight">{props.children}</Section>; export default SectionLight
client/views/bbox_task.js
visipedia/annotation_tools
import React from 'react'; import ReactDOM from 'react-dom'; import {ImageLoader} from './image_loader.js'; import {TaskSequence} from './task_seq.js'; import {BBoxAnnotation} from './bbox_annotation.js'; import {TaskInstructions} from './task_instructions.js'; import {MTurkFinishWrapper} from '../mturk.js'; class B...
src/components/SvgIcon/Facets.js
sk-iv/iva-app
import React from 'react'; import SvgIcon from './SvgIcon'; import classNames from 'classnames'; /** * @ignore - internal component. */ let Facets = props => ( <SvgIcon {...props} className={classNames('icon--size24', props.className)}> <path d="M16,16H8V8h8V16z M22,2H8v14h14V2z M16,8H2v14h14V8z M8,12h8"/> <...
test/development/basic-basepath/next-dynamic/components/welcome.js
zeit/next.js
import React from 'react' export default class Welcome extends React.Component { state = { name: null } componentDidMount() { const { name } = this.props this.setState({ name }) } render() { const { name } = this.state if (!name) return null return <p>Welcome, {name}</p> } }
packages/docs/components/Examples/counter/gettingStarted.js
draft-js-plugins/draft-js-plugins
// It is important to import the Editor which accepts plugins. import Editor from '@draft-js-plugins/editor'; import createCounterPlugin from '@draft-js-plugins/counter'; import React from 'react'; // Creates an Instance. At this step, a configuration object can be passed in // as an argument. const counterPlugin = cr...
local-cli/link/getProjectDependencies.js
cpunion/react-native
const path = require('path'); /** * Returns an array of dependencies that should be linked/checked. */ module.exports = function getProjectDependencies() { const pjson = require(path.join(process.cwd(), './package.json')); return Object.keys(pjson.dependencies || {}).filter(name => name !== 'react-native'); };
src/containers/Full/Full.js
blackshade91/daf-dataportal
import React, { Component } from 'react'; import { Link, Switch, Route, Redirect } from 'react-router-dom' import Header from '../../components/Header/'; import Sidebar from '../../components/Sidebar/'; import Breadcrumb from '../../components/Breadcrumb/'; import Aside from '../../components/Aside/'; import Footer fro...
frontend/test/app/components/Footer-test.js
6a68/testpilot
import React from 'react'; import { expect } from 'chai'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import Footer from '../../../src/app/components/Footer'; describe('app/components/Footer', () => { let subject, sendToGA; beforeEach(() => { sendToGA = sinon.spy(); subject = shallow(<Fo...
frontend/src/components/icons/X.js
webrecorder/webrecorder
import React from 'react'; function XIcon() { return ( <svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8"> <path d="M1.41 0l-1.41 1.41.72.72 1.78 1.81-1.78 1.78-.72.69 1.41 1.44.72-.72 1.81-1.81 1.78 1.81.69.72 1.44-1.44-.72-.69-1.81-1.78 1.81-1.81.72-.72-1.44-1.41-.69.72-1.78 ...
packages/material-ui/src/Badge/Badge.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import { capitalize } from '../utils/helpers'; const RADIUS = 12; export const styles = theme => ({ root: { position: 'relative', display: 'inline-flex', // ...
cmd/elwinator/src/components/NewChoice.js
foolusion/choices
// @flow import React, { PropTypes } from 'react'; import { browserHistory } from 'react-router'; import { connect } from 'react-redux'; import { paramAddChoice, paramAddWeight } from '../actions'; import { paramURL } from '../urls'; const NewChoice = ({ namespaceName, paramID, paramName, isWeighted, dispat...
Libraries/Modal/Modal.js
satya164/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...
docs/app/Examples/elements/Step/Variations/index.js
koenvg/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const StepVariationsExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Stackable' descri...
packages/shared/ReactSharedInternals.js
STRML/react
/** * 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. */ import React from 'react'; const ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent n...
docs/src/app/components/pages/components/RadioButton/Page.js
nathanmarks/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import radioButtonReadmeText from './README'; import RadioButtonExampleSimple fr...
files/backbone.marionette/1.8.2/backbone.js
siscia/jsdelivr
// Backbone.js 1.1.2 // (c) 2010-2014 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(root, factory) { // Set up Backbone appropriately for ...
examples/MediaBox.js
react-materialize/react-materialize
import React from 'react'; import MediaBox from '../src/MediaBox'; export default <MediaBox src="https://lorempixel.com/350/350/nature/1" caption="A demo media box1" width="350"/>;
js/fullcaledar/lib/jquery.min.js
jpbalderas17/hris
/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
definitions/npm/expo-location_v5.x.x/flow_v0.69.0-v0.103.x/test_expo-location.js
flowtype/flow-typed
// @flow import React from 'react'; import { it, describe } from 'flow-typed-test'; import { Accuracy, ActivityType, GeofencingEventType, GeofencingRegionState, enableNetworkProviderAsync, geocodeAsync, getCurrentPositionAsync, getHeadingAsync, getProviderStatusAsync, hasServicesEnabledAsync, has...
src/routes/request/index.js
ykx456654/hr_admin
import React from 'react' import styles from './index.less' import Mock from 'mockjs' import { request, config } from '../../utils' import { Row, Col, Card, Select, Input, Button, } from 'antd' const { api, baseURL } = config const { dashboard, users, userLogin, user } = api const requestOptions = [ { ...
geoquiz-react/src/layout/Loader.js
mchaffotte/geo-application
import React from 'react'; import { CircularProgress, makeStyles } from '@material-ui/core'; const useStyles = makeStyles((theme) => ({ progress: { margin: theme.spacing(2), }, })); const Loader = () => { const classes = useStyles(); return <CircularProgress className={classes.progress} />; }; export def...
app/javascript/flavours/glitch/components/hashtag.js
glitch-soc/mastodon
// @ts-check import React from 'react'; import { Sparklines, SparklinesCurve } from 'react-sparklines'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from './permalink'; import ShortNumber from 'flavours/gl...
src/Introduction.js
beaudavenport/regex-cafe
import React from 'react'; import NextLessonButton from './NextLessonButton'; class Introduction extends React.Component { constructor(props) { super(props); } render() { return ( <div className="intro"> <div className="intro-cell"> <div className="row"> <div classNam...
node_modules/react-web/lib/TextInput/TextInput.web.js
typesettin/NativeCMS
'use strict';Object.defineProperty(exports,"__esModule",{value:true});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;};var _createClass=f...
ajax/libs/jquery/1.10.0/jquery.js
davebalmer/cdnjs
/*! * jQuery JavaScript Library v1.10.0 * 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-05-24T18:39Z */ (function( window, undefined ) { // ...
app/containers/Products/index.js
matusmarcin/special-disco
/* * * Products * */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { selectProducts, selectLoading, selectError, } from './selectors'; import { loadProducts, } from './actions'; import List from 'components/List'; import Loa...
src/components/UIShell/SideNavSwitcher.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 ChevronDown20 from '@carbon/icons-react/lib/chevron--down/20'; import { settings } from 'carbon-components'; import cx from 'classname...
ajax/libs/extjs/4.2.1/src/layout/container/Card.js
automaticgiant/cdnjs
/* This file is part of Ext JS 4.2 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in...
app/javascript/mastodon/features/standalone/public_timeline/index.js
cobodo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { expandPublicTimeline, expandCommunityTimeline } from 'mastodon/actions/timelines'; import Masonry from 'react-masonry-infinite'; import { List as Imm...
app/javascript/mastodon/components/icon_button.js
mstdn-jp/mastodon
import React from 'react'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class IconButton extends React.PureComponent { static propTypes = { className: PropTypes.stri...
packages/reactor-kitchensink/src/examples/FormFields/TextField/TextField.js
dbuhrman/extjs-reactor
import React from 'react'; import { FormPanel, TextField, FieldSet } from '@extjs/ext-react'; export default function TextFieldExample() { return ( <FormPanel shadow padding="20"> <FieldSet title="Separate Label and Placeholder" margin="0 0 20 0"> <TextField placeholder="Enter N...
ajax/libs/yui/3.15.0/datatable-core/datatable-core-coverage.js
tjbp/cdnjs
/* YUI 3.15.0 (build 834026e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/datatable-core/datatable-core.js']) { __coverage__['build/datatable-core/datatable-...
O3656/O3656-5 SharePoint 2013 Remote Event Receivers/Demos/DebuggingRemoteEvents/RemoteEventsLabWeb/Scripts/jquery-1.10.2.js
ThomasTrungVo/TrainingContent
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
app/javascript/mastodon/features/home_timeline/components/column_settings.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
src/svg-icons/navigation/unfold-more.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationUnfoldMore = (props) => ( <SvgIcon {...props}> <path d="M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"/> </SvgIcon> ); Navig...
ajax/libs/vue/2.0.8/vue.js
iwdmb/cdnjs
/*! * Vue.js v2.0.8 * (c) 2014-2016 Evan You * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Vue = factory()); }(this, (function...
ajax/libs/Sly/1.4.4/sly.js
gaearon/cdnjs
/*! * sly 1.4.4 - 30th Mar 2015 * https://github.com/darsain/sly * * Licensed under the MIT license. * http://opensource.org/licenses/MIT */ ;(function ($, w, undefined) { 'use strict'; var pluginName = 'sly'; var className = 'Sly'; var namespace = pluginName; // Local WindowAnimationTiming interface va...
src/routes/Election/routes/Candidate/index.js
imrenagi/rojak-web-frontend
import React from 'react' import { Switch, Route } from 'react-router-dom' import CandidateDetail from './components/CandidateDetail' const CandidateRouter = () => ( <Switch> <Route exact path='/election/:electionId/candidate/:candidateId' component={CandidateDetail} /> </Switch> ) export default CandidateRo...
examples/src/components/UsersField.js
jaakerisalu/react-select
import GravatarOption from './CustomOption'; import GravatarValue from './CustomSingleValue'; import React from 'react'; import Select from 'react-select'; const USERS = require('../data/users'); var UsersField = React.createClass({ propTypes: { hint: React.PropTypes.string, label: React.PropTypes.string, }, r...
packages/material-ui-icons/src/FiberSmartRecordRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><circle cx="9" cy="12" r="8" /><path d="M17 5.55v.18c0 .37.23.69.57.85C19.6 7.54 21 9.61 21 12s-1.4 4.46-3.43 5.42c-.34.16-.57.47-.57.84v.18c0 .68.71 1.11 1.32.82C21.08 18.01 23 15.23 23 12s-1....
ajax/libs/redux-form/6.0.0-alpha.13/redux-form.js
tholu/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-redux"), require("redux")); else if(typeof define === 'function' && define.amd) define(["react", "react-redux", "redux"], factory); e...
website/Footer.js
sahat/megaboilerplate
import React from 'react'; const Footer = (props) => { return ( <footer className="container"> <div className="panel"> <div className="panel-body"> <div className="pull-left"> <div>© 2016 <a href="http://sahatyalkabov.com" target="_blank">Sahat Yalkabov</a>. Code licensed unde...
src/components/TravelElement.js
shaunsaker/real-dope
import React from 'react'; import { Link } from 'react-router'; import { Button } from 'react-bootstrap'; export default class TravelElement extends React.Component { static get propTypes() { return { data: React.PropTypes.string.isRequired, id: React.PropTypes.number.isRequired, ...
test/AlertSpec.js
mmarcant/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import Alert from '../src/Alert'; describe('<Alert>', () => { it('Should output a alert with message', () => { let instance = ReactTestUtils.renderIntoDocument( <Alert> <strong>Messa...
src/components/BlogPostWithoutImage/index.js
rosudrag/PortofolioKasia
import React from 'react'; import { BodyContainer } from 'phenomic'; const BlogPostWithoutImage = (props) => { const { title, date } = props.head; const { body } = props; const postDate = date ? new Date(date) : null; return ( <section className="main single-blog"> <div className="container"> ...
src/components/Garden.js
MicheleV/da-beast
import React from 'react'; import PropTypes from 'prop-types'; import Button from './Button'; import { potListUi } from './Pots'; const Pond = ({ seeds, pots, plantAction, gatherAction, backAction, potStatus }) => { const potList = potListUi(seeds, pots, potStatus, plantAction, gatherAction); return ( <div classNa...
packages/material-ui-icons/src/FastForwardRounded.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M5.58 16.89l5.77-4.07c.56-.4.56-1.24 0-1.63L5.58 7.11C4.91 6.65 4 7.12 4 7.93v8.14c0 .81.91 1.28 1.58.82zM13 7.93v8.14c0 .81.91 1.28 1.58.82l5.77-4.07c.56-.4.56-1.24 0-1.63l-5.77-4.07c...
src/utils/DOMUtils.js
w10036w/ReactTest
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ export function addEventListener(node, event, listener) { if (node.addEventListener) { node.addEventListener(event, listener, false); } else { node.attachEvent('on' + event, listener); } } export function removeEventListener(node, ...
newclient/scripts/components/user/projects/entity/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
ReactNativeLIFE/Pages/JYHomeFAQs.js
YotrolZ/React-Native-LIFE
/** * Sample React Native App * https://github.com/facebook/react-native * @flow * * 首页 - 问答 * */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ListView, Dimensions, Image, TouchableOpacity } from 'react-native'; const { width, height } = Dimensions.get...
ajax/libs/webshim/1.14.5-RC1/dev/shims/es6.js
fredericksilva/cdnjs
// ES6-shim 0.8.0 (c) 2013 Paul Miller (paulmillr.com) // ES6-shim may be freely distributed under the MIT license. // For more details and documentation: // https://github.com/paulmillr/es6-shim/ webshim.register('es6', function($, webshim, window, document, undefined){ 'use strict'; var isCallableWithoutNew = fun...
app/js/components/DropdownComponent.js
andela-earinde/bellatrix
import React from 'react' import DropdownMenu from 'react-dd-menu' import 'react-dd-menu/dist/react-dd-menu.css' import '../../css/drop-down.css' class DropdownComponent extends React.Component { constructor(props) { super(props) this.state = { isOpen: false } } toggle() { this.setState...
client/app/components/survey_table.js
zhangmingkai4315/bleeding-edge-sample-app
/** @jsx React.DOM */ var React = require("react"); var SurveyTableRow = require('./survey_table_row'); var SurveyTable = React.createClass({ propTypes: { surveys: React.PropTypes.array.isRequired }, render: function () { var rows = this.props.surveys.map(function(survey, i) { return <SurveyTabl...
packages/material-ui-icons/lib/esm/SixtyFpsSelectRounded.js
mbrookes/material-ui
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M18 6v6h-3V6h3zm0-2h-3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 1c0-.55-.45-1-1-1H6c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h3c1.1 0 2-....
src/components/Context.js
reactjs/react-redux
import React from 'react' export const ReactReduxContext = /*#__PURE__*/ React.createContext(null) if (process.env.NODE_ENV !== 'production') { ReactReduxContext.displayName = 'ReactRedux' } export default ReactReduxContext
helene/assets/js/components/Network.js
voidpp/Helene
import React from 'react'; import {ComponentAsFactory, bind} from '../tools' import TrafficStore from '../stores/TrafficStore'; import Traffic from './Traffic'; class Network extends React.Component { constructor(props) { super(props); this.state = { speed: TrafficStore.speed, ...
admin/client/App/components/Footer/index.js
dvdcastro/keystone
/** * The global Footer, displays a link to the website and the current Keystone * version in use */ import React from 'react'; import { Container } from 'elemental'; var Footer = React.createClass({ displayName: 'Footer', propTypes: { appversion: React.PropTypes.string, backUrl: React.PropTypes.string, br...
services/ui/src/components/ProblemsByIdentifier/index.stories.js
amazeeio/lagoon
import React from 'react'; import ProblemsByIdentifier from './index'; import mocks from "api/src/mocks"; import faker from "faker/locale/en"; export default { component: ProblemsByIdentifier, title: 'Components/ProblemsByIdentifier', } export const Default = () => <ProblemsByIdentifier problems={ Array.from(...
src/common/components/ToggleBaseline.js
redcom/doctori-romani-in-berlin
// @flow import type { State } from '../types'; import Box from './Box'; import OutlineButton from './OutlineButton'; import React from 'react'; import { compose } from 'ramda'; import { connect } from 'react-redux'; import { toggleBaseline } from '../app/actions'; // Test vertical rhythm visually. Inspired by basehol...
app/javascript/mastodon/features/introduction/index.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ReactSwipeableViews from 'react-swipeable-views'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import { closeOnboarding } from '../../actions/onboarding'; import screenHell...
pages/404.js
b1alpha/sdj
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Not Found</h1> <p>The pag...
core/modules/quickedit/js/models/EntityModel.js
jen-andes/d8-training-project
/** * @file * A Backbone Model for the state of an in-place editable entity in the DOM. */ (function (_, $, Backbone, Drupal) { 'use strict'; Drupal.quickedit.EntityModel = Drupal.quickedit.BaseModel.extend(/** @lends Drupal.quickedit.EntityModel# */{ /** * @type {object} */ defaults: /** @...
packages/material-ui-icons/src/PersonPinCircleSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 2c1.1 0 2 .9 2 2 0 1.11-.9 2-2 2s-2-.89-2-2c0-1.1.9-2 2-2zm0 10c-1.67 0-3.14-.85-4-2.15.02-1.32 2.67-2.05 4-2....
frontend/src/components/BackupConfig/Progress.js
XiaocongDong/mongodb-backup-manager
import React, { Component } from 'react'; const stages = ["credential", "configuration", "review"]; export default class Progress extends Component{ render() { const props = this.props; return ( <div className="configuration-progress"> { stages.ma...
eventkit_cloud/ui/static/ui/app/components/MapTools/DropZoneDialog.js
venicegeo/eventkit-cloud
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { withTheme } from '@material-ui/core/styles'; import Dropzone from 'react-dropzone'; import Button from '@material-ui/core/Button'; import FileFileUpload from '@material-ui/icons/CloudUpload'; import RootRef from '@material-ui/core/Ro...
docs/src/pages/components/grid/FullWidthGrid.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Paper from '@material-ui/core/Paper'; import Grid from '@material-ui/core/Grid'; const styles = theme => ({ root: { flexGrow: 1, }, paper: { padding: theme.spacing(2), textAlig...
docs/src/components/sidebar.js
evanlucas/node-tap
import React from 'react'; import styled from 'styled-components'; import DocLinks from './DocLinks'; import {theme} from '../theme'; const Container = styled.div` background-color: ${theme.colors.lightGrey}; flex: 0 0 250px; overflow-y: scroll; height: 100vh; top: 68px; position: sticky; padding: 20px 2...
docs/src/Root.js
omerts/react-bootstrap
import React from 'react'; import Router from 'react-router'; const Root = React.createClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'introduction.html', 'getting-started.html',...
client/src/templates/Challenges/components/icons/Fail.js
pahosler/freecodecamp
import React from 'react'; function RedFail() { return ( <svg height='50' viewBox='0 0 200 200' width='50' xmlns='http://www.w3.org/2000/svg' > <g> <title>Test failed</title> <circle cx='100' cy='99' fill='#555' r='95' ...
src/Resume/Work.js
bogdanpetru/resume
import React from 'react' import Experience from './Experience' const Work = ({ experiences, title }) => <div className="work"> <h2 className="work-title">{title}</h2> <div className="work-body" children={experiences.map(Experience)} /> </div> export default Work
src/components/common/icons/X.js
chejen/GoodJobShare
import React from 'react'; /* eslint-disable */ const X = (props) => ( <svg {...props} width="148" height="148" viewBox="0 0 148 148"> <path d="M145.29003,2.7097656 C143.570709,0.975547058 141.229771,1.49332653e-16 138.787634,0 C136.345497,-1.50064675e-16 134.004559,0.975547058 132.285237,2.7097656 L74,60.990601...
ajax/libs/angular.js/0.9.18/angular-scenario.js
sinkcup/cdnjs
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...