path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
frontend/src/components/dialog/create-department-repo-dialog.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Modal, ModalHeader, Input, ModalBody, ModalFooter, Form, FormGroup, Label, Alert } from 'reactstrap';
import { gettext, maxFileName } from '../../utils/constants';
const propTypes = {
onCreateRepo: PropTypes.func.isRequired,
onCreateTo... |
meetup-1/FirstNavigator/index.ios.js | dayitv89/react-native-jaipur-meetup-1 | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import MainNavigator from './src/MainNavigator';
export default class FirstNavigator extends Component {
render() {
return <MainNavigator ... |
albums/src/components/AlbumList.js | victorditadi/IQApp | import React, { Component } from 'react';
import { View, ScrollView } from 'react-native';
import axios from 'axios';
import AlbumDetail from './AlbumDetail';
class AlbumList extends Component {
state = { albums: [] };
componentWillMount() {
axios.get('https://rallycoding.herokuapp.com/api/music_albums')
... |
react/features/video-menu/components/web/MuteEveryoneDialog.js | jitsi/jitsi-meet | // @flow
import React from 'react';
import { Dialog } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import { Switch } from '../../../base/react';
import { connect } from '../../../base/redux';
import AbstractMuteEveryoneDialog, { abstractMapStateToProps, type Props }
from '../Abstra... |
src/svg-icons/navigation/arrow-forward.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowForward = (props) => (
<SvgIcon {...props}>
<path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/>
</SvgIcon>
);
NavigationArrowForward = pure(NavigationArrowForward);
Navigation... |
Examples/UIExplorer/DatePickerIOSExample.js | NunoEdgarGub1/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
src/components/ErrorBoundary.js | twreporter/twreporter-react | import PropTypes from 'prop-types'
import React from 'react'
import loggerFactory from '../logger'
const logger = loggerFactory.getLogger()
class ErrorBoundary extends React.Component {
static propTypes = {
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node,
]),
... |
webpack.server.js | andykais/painting-base2 | /*
* development server that triggers webpack compile on file changes
* first entry point of the application
* a.k.a. `node webpack.server.js`
*/
var webpack = require('webpack')
, WebpackDevServer = require('webpack-dev-server')
, nodemon = require('nodemon')
, path = require('path')
, gutil = require('gu... |
public/javascripts/pages/dashboard.js | kenticny/CasualData | import React from 'react';
import { Datepicker } from 'antd';
module.exports = React.createClass({
render: function() {
return (
<div>
</div>
);
}
}); |
fields/components/columns/ArrayColumn.js | vokal/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var ArrayColumn = React.createClass({
displayName: 'ArrayColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
... |
code_search/src/ui/src/App.js | kubeflow/examples | import React, { Component } from 'react';
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button';
import LinearProgress from '@material-ui/core/LinearProgress';
import { MuiThemeProvider } from '@material-ui/core/styles';
import SearchIcon from '@material-ui/icons/Search';
i... |
frontend/src/containers/SidebarListViewer/SidebarListViewer.js | webrecorder/webrecorder | import React from 'react';
import { connect } from 'react-redux';
import { saveDelay } from 'config';
import { clear, selectBookmark } from 'store/modules/inspector';
import { resetEditState, edit } from 'store/modules/list';
import { SidebarListViewerUI } from 'components/controls';
const mapStateToProps = (outer... |
docs/site/src/demos/selection-controls/RadioButtons.js | und3fined/material-ui | // @flow weak
import React, { Component } from 'react';
import Radio from 'material-ui/Radio';
export default class RadioButtons extends Component {
state = {
selectedValue: undefined,
};
handleChange = (event) => {
this.setState({ selectedValue: event.currentTarget.value });
};
render() {
ret... |
app/components/Pages/Team.js | alexpell00/FRCUltimateManager | /*
* @Author: alexpelletier
* @Date: 2016-03-23 22:17:30
* @Last Modified by: alexpelletier
* @Last Modified time: 2016-03-24 05:44:31
*/
import React from 'react';
import request from 'superagent';
import MatchesTable from '../Elements/MatchesTable'
import PitStats from '../Elements/PitStats'
import RobotStats f... |
src/components/demo.js | foimedia/foi-website | import React, { Component } from 'react';
import { injectIntl, intlShape, defineMessages } from 'react-intl';
import styled from 'styled-components';
import Snap from 'snapsvg';
import { media } from 'styles';
const messages = defineMessages({
title: {
id: 'demo.title',
defaultMessage: 'My Coverage'
},
s... |
src/js/components/DataTable/stories/InfiniteScrollDataTable.js | grommet/grommet | import React from 'react';
import { Box, DataTable, Heading, Meter, Text } from 'grommet';
const amountFormatter = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'NIS',
minimumFractionDigits: 2,
});
const columns = [
{
property: 'key',
header: 'Key',
primary: true,
footer: 'Tot... |
fields/mixins/ArrayField.js | SJApps/keystone | var _ = require('underscore'),
React = require('react');
var lastId = 0;
function newItem(value) {
lastId = lastId + 1;
return { key: 'i' + lastId, value: value };
}
module.exports = {
getInitialState: function() {
return {
values: this.props.value.map(newItem)
};
},
componentWillReceiveProps: functio... |
examples/js/complex/demo.js | opensourcegeek/react-bootstrap-table | require('./demo.css');
import React from 'react';
import App from './app';
class Demo extends React.Component {
render() {
return (
<div className="col-md-offset-1 col-md-8">
<div className="panel panel-default">
<div className="panel-heading">A Complex Example</div>
<h5>Source ... |
bower_components/datatables/media/js/jquery.js | kumarrishav/foodie | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/layouts/CoreLayout.js | vbud/apd-parse | import React from 'react';
import 'styles/core.scss';
export default class CoreLayout extends React.Component {
static propTypes = {
children : React.PropTypes.element
}
render () {
return (
<div className='page-container'>
<div className='view-container'>
{this.props.children}
... |
src/svg-icons/action/assignment-returned.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentReturned = (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-7 0c.55 0 1 .... |
src/react/LogMonitorButton.js | hetony/redux-devtools | import React from 'react';
import brighten from '../utils/brighten';
const styles = {
base: {
cursor: 'pointer',
fontWeight: 'bold',
borderRadius: 3,
padding: 4,
marginLeft: 3,
marginRight: 3,
marginTop: 5,
marginBottom: 5,
flexGrow: 1,
display: 'inline-block',
fontSize: '... |
stories/alignment/src/colorBlockPlugin.js | draft-js-plugins/draft-js-plugins | import React from 'react';
const ColorBlock = React.forwardRef(
(
{
block, // eslint-disable-line no-unused-vars
blockProps, // eslint-disable-line no-unused-vars
customStyleMap, // eslint-disable-line no-unused-vars
customStyleFn, // eslint-disable-line no-unused-vars
decorator, //... |
src/components/Navigation/Navigation.js | veskoy/ridiko | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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 cx from 'classnames';... |
tests/getValueFromEvent.spec.js | setState/form | import expect from 'expect.js';
import React from 'react';
import ReactDOM from 'react-dom';
import { createForm } from '../';
import { Simulate } from 'react-addons-test-utils';
let Test = React.createClass({
propTypes: {
form: React.PropTypes.object,
},
render() {
const { getFieldProps } = this.props.... |
packages/material-ui-icons/src/RemoveOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19 13H5v-2h14v2z" /></React.Fragment>
, 'RemoveOutlined');
|
ajax/libs/shariff/1.10.1/shariff.complete.js | SaravananRajaraman/cdnjs |
/*!
* shariff - v1.10.1 - 30.04.2015
* https://github.com/heiseonline/shariff
* Copyright (c) 2015 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli
* Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license
*/
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]... |
tests/lib/rules/jsx-no-invalid-props/valid-2.js | craigbilner/eslint-plugin-react-props | /* eslint-disable import/no-unresolved, import/extensions */
import React from 'react';
const MyComponent = {};
const Message = {};
/*
The content below this comment is loosely based on one of the examples from the below url:
https://github.com/facebook/react/blob/bc86ac4380/docs/docs/typechecking-with-proptypes.m... |
src/Parser/Mage/Fire/Modules/Items/DarcklisDragonfireDiadem.js | hasseboulen/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import getDamageBonus from 'Parser/Mage/Shared/Modules/GetDamageBonus';
import ItemDamageDone from 'Main/ItemDamageDone'... |
node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js | TrungSpy/React-Native-SampleProject | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
client/extensions/woocommerce/app/order/order-details/table.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Gridicon from 'gridicons';
import { localize } from 'i18n-calypso';
import { every, find, findIndex, get, isNaN, noop } from 'lodash';
impor... |
src/svg-icons/content/markunread.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentMarkunread = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
ContentMarkunread ... |
src/svg-icons/social/notifications-active.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotificationsActive = (props) => (
<SvgIcon {...props}>
<path d="M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02... |
node_modules/react-sparklines/__tests__/Sparklines.js | victor335882/ReduxSimpleStarter-4 | import React from 'react';
import ReactDOM from 'react-dom';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { Sparklines } from '../src/Sparklines';
describe('Sparklines', () => {
it('does not throw without any parameters', () => {
expect(() => <Sparklines />).to.not.throw;
});... |
app/containers/Css8/slides.js | ledminh/css-pages | import React from 'react';
import styled from 'styled-components';
import {connect} from 'react-redux';
import {createStructuredSelector} from 'reselect';
import {makeSlideData, makeMove} from './selectors';
import {slide} from './actions';
const smoothenMove = `
transition: left .1s;
`;
const Frame = styled.div... |
src/components/JobList.js | ScientificAnalysisLaboratories/RecJobs | import React from 'react'
import moment from 'moment/moment'
export default class JobList extends React.Component {
rowCssClass (job) {
const now = moment().endOf('day')
const deadline = job.deadlineDate.endOf('day')
if (deadline <= now)
return 'overdue'
else if (deadline <= now.add(3,'days'))... |
src/containers/Asians/_components/PublishedBreakRound/Ballots/SmallBallots/Instance/OverviewInstance/SpeakerDisplay.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import List, {
ListItem,
ListItemText
} from 'material-ui/List'
export default connect(mapStateToProps)(({
speaker,
debatersById,
score
}) =>
<List>
<ListItem
dense
>
<ListItemText
primary={`${debatersById[speaker]... |
js/jquery.mobile-1.4.2/demos/js/jquery.mobile-1.4.2.js | vczero/tailor2048 | /*!
* jQuery Mobile 1.4.2
* Git HEAD hash: 9d9a42a27d0c693e8b5569c3a10d771916af5045 <> Date: Fri Feb 28 2014 17:32:01 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory ... |
packages/material-ui-icons/src/SpeakerGroupSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M20 1H8v17.99h12V1zm-6 2c1.1 0 2 .89 2 2s-.9 2-2 2-2-.89-2-2 .9-2 2-2zm0 13.5c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z" /><circle... |
app/components/Exercise.js | henrikra/gym-diary | import React, { Component } from 'react';
import { Tabs, Tab, Glyphicon, DropdownButton, MenuItem, Label } from 'react-bootstrap';
import $ from 'jquery';
import CurrentResults from './CurrentResults';
import ResultsList from './ResultsList';
import Timer from './Timer';
import SettingsCog from './SettingsCog';
export... |
apps/user_ldap/js/wizard/view.js | ino1988/soulcloud | /**
* Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or later.
* See the COPYING-README file.
*/
OCA = OCA || {};
(function() {
/**
* @classdesc main view class. It takes care of tab-unrelated control
* elements (status bar,... |
app/controllers/videos/videos.js | avocadojesus/litronix | var React = require('react');
var VideoViewer = require('../../components/video-viewer');
var Header = require('../../components/header/header');
var Footer = require('../../components/footer/footer');
var videos = require('../../config/videos');
var playlists = require('../../config/playlists');
var RightSidebar = req... |
src/ContentBlocks/Shared/VideoPlayer/Controls.js | grommet/grommet-cms-content-blocks | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Button from 'grommet/components/Button';
import Box from 'grommet/components/Box';
import Heading from 'grommet/components/Head... |
app/components/RecordButton/index.js | thebakeryio/openmic | /* eslint-disable react/prefer-stateless-function */
/**
*
* RecordButton
*
*/
import React from 'react';
class RecordButton extends React.Component {
render() {
const handleClick = (e) => {
e.stopPropagation();
if (this.props.recording) {
this.props.onStopRecording.call(this);
} else... |
ajax/libs/6to5/3.4.0/browser.js | billybonz1/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.to5=e()}}(function(){var define,module,exports;return... |
@plotly/dash-generator-test-component-standard/src/components/MyStandardComponent.js | plotly/dash | import PropTypes from 'prop-types';
import React from 'react';
/**
* MyComponent description
*/
const MyStandardComponent = ({ id, style, value }) => (<div id={id} style={style}>{value}</div>);
MyStandardComponent.propTypes = {
/**
* The id of the component
*/
id: PropTypes.string,
/**
*... |
ajax/libs/rxjs/2.3.0/rx.lite.compat.js | CyrusSUEN/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... |
src/svg-icons/action/list.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionList = (props) => (
<SvgIcon {...props}>
<path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/>
</SvgIcon>
);
ActionList = pure(ActionList);
ActionList.displa... |
packages/icons/src/md/image/MovieCreation.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdMovieCreation(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M36 8l4 8h-6l-4-8h-4l4 8h-6l-4-8h-4l4 8h-6l-4-8H8c-2.21 0-3.98 1.79-3.98 4L4 36c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V8h-8z" />
</IconBase... |
app/components/Toggle/index.js | jdelatorreitrs/react-boilerplate | /**
*
* LocaleToggle
*
*/
import React from 'react';
import Select from './Select';
import ToggleOption from '../ToggleOption';
function Toggle(props) {
let content = (<option>--</option>);
// If we have items, render them
if (props.values) {
content = props.values.map((value) => (
<ToggleOption key... |
src/app-test/components/master.js | zsumore/weather-monitor | import React from 'react';
import Title from 'react-title-component';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';... |
examples/tree-view/containers/Node.js | neighborhood999/redux | import React from 'react'
import { Component } from 'react'
import { connect } from 'react-redux'
import * as actions from '../actions'
class Node extends Component {
constructor(props) {
super(props)
this.handleIncrementClick = this.handleIncrementClick.bind(this)
this.handleRemoveClick = this.handleRem... |
packages/website/storybook/barseries-story.js | uber-common/react-vis | /* eslint-env node */
import React from 'react';
import {storiesOf} from '@storybook/react';
import {
withKnobs,
color,
number,
object,
text
} from '@storybook/addon-knobs/react';
import {HorizontalBarSeries, VerticalBarSeries} from 'react-vis';
import {generateLinearData, intRandom, random} from './story... |
src/map/js/components/AnalysisPanel/WatershedChart.js | wri/gfw-water | import {analysisPanelText as text} from 'js/config';
import React from 'react';
let generateChart = (id, feature) => {
/**
* rs_tl_c - Recent forest loss
* rs_pf_c - Historic forest loss
* rs_sed_c - Erosion risk
* rs_fire_c - Fire risk
*/
let { rs_tl_c, rs_pf_c, rs_sed_c, rs_fire_c } = feature.attribute... |
src/AppBar/AppBar.spec.js | ngbrown/material-ui | /* eslint-env mocha */
import React from 'react';
import sinon from 'sinon';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import AppBar from './AppBar';
import getMuiTheme from '../styles/getMuiTheme';
describe('<AppBar />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) ... |
src/routes/loggedOut/index.js | nambawan/g-old | import React from 'react';
import Layout from '../../components/Layout';
import Login from '../../components/Login';
async function action() {
return {
chunks: ['loggedOut'],
title: 'Logged out',
component: (
<Layout>
<div
style={{
paddingLeft: '20px',
padd... |
srcjs/components/PagingPanel.js | spapas/react-tutorial | import React from 'react';
export default ({page=1, page_size=5, count, onNextPage, onPreviousPage, ...props}) => {
const total_pages = Math.ceil(count / page_size);
return <div className="row">
{page==1?null:<button onClick={e => {
e.preventDefault();
onPreviousPage();
}}><</button>}
 ... |
src/components/ChatApp/MessageSection/MessageSection.react.js | DeveloperAlfa/chat.susi.ai | import MessageComposer from '../MessageComposer.react';
import Snackbar from 'material-ui/Snackbar';
import MessageListItem from '../MessageListItem/MessageListItem.react';
import MessageStore from '../../../stores/MessageStore';
import React, { Component } from 'react';
import ThreadStore from '../../../stores/ThreadS... |
packages/material-ui-icons/src/BatteryCharging90.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let BatteryCharging90 = props =>
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h2L11 20v-5.5H9L12.47... |
packages/starter-scripts/fixtures/kitchensink/template/src/features/webpack/ScssModulesInclusion.js | chungchiehlun/create-starter-app | /**
* Copyright (c) 2015-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.
*/
import React from 'react';
import styles from './assets/scss-styles.module.scss';
import indexStyles from './assets/index.module.scss';
... |
docs/src/IntroductionPage.js | dozoisch/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const IntroductionPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="introduction" />
<... |
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js | gol-cha/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { changeComposeSensitivity } from 'mastodon/actions/compose';
import { injectIntl, defineMessages, FormattedMessage } from 'react-intl';
const messages = defineMessages({
... |
packages/react-dom/src/__tests__/ReactDOMComponent-test.js | jzmq/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.
*
* @emails react-core
*/
'use strict';
describe('ReactDOMComponent', () => {
let React;
let ReactTestUtils;
let ReactDOM;
... |
src/containers/CollectionPage.js | dopry/netlify-cms | import PropTypes from 'prop-types';
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { loadEntries } from '../actions/entries';
import { selectEntries } from '../reducers';
import { Loader } from '../components/UI';
import EntryListing ... |
src/main/jsx/client/BuildHistoryPageActions.js | groupon/DotCi | import ReactDOM from 'react-dom';
import React from 'react';
import BuildHistoryPage from './../pages/BuildHistoryPage.jsx';
import {job} from './../api/Api.jsx';
import {removeFilter,addFilter} from './../api/Api.jsx';
import Drawer from './../Drawer.jsx';
import {Job as AutoRefreshComponent} from './../components/... |
lib/components/report/remove-stops.js | conveyal/analysis-ui | import flatten from 'lodash/flatten'
import React from 'react'
import colors from 'lib/constants/colors'
import message from 'lib/message'
import L from 'lib/leaflet'
import {getPatternsForModification} from 'lib/utils/patterns'
import PatternLayer from '../modifications-map/pattern-layer'
import StopLayer from '../m... |
frontend/node_modules/react-router-dom/es/HashRouter.js | justdotJS/rowboat | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
ajax/libs/react-slick/0.3.7/react-slick.js | MMore/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["Slider"] = factory(... |
src/components/Portfolio/index.js | Harrison1/several-levels | import React from 'react'
const Portfolio = ({link, title, description, img}) =>
<div>
<a href={ link }>
<img src={ img } className="w-100" alt={ title } />
</a>
<h4><a href={ link } className="portfolio-link">{ title }</a></h4>
<p>{ description }</p>
</div>
export ... |
src/svg-icons/notification/phone-paused.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhonePaused = (props) => (
<SvgIcon {...props}>
<path d="M17 3h-2v7h2V3zm3 12.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C... |
src/components/Navbar/Navbar.js | mjchamoures/personalPortfolio | import React from 'react';
import { IndexLink, Link } from 'react-router';
import classes from './Navbar.scss';
export const Navbar = (props) => (
<div className="text-center">
<IndexLink to='/' activeClassName='route--active'>
Home
</IndexLink>
{' · '}
<IndexLink to='/about' activeClassName=... |
ajax/libs/core-js/0.4.5/shim.js | tambien/cdnjs | /**
* Core.js 0.4.5
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(global, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
app/containers/App/index.js | Goodly/TextThresher | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from 'store/appStore.js';
export const store = configureStore();
/* global styles for app */
import './styles.scss';
export default class App extends Component {
constructor(props) {
super(props);
}
st... |
src/Parser/DeathKnight/Unholy/Modules/Features/VirulentPlagueEfficiency.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Enemies from 'Parser/Core/Modules/Enemies';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import StatisticBo... |
src/svg-icons/navigation/arrow-downward.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDownward = (props) => (
<SvgIcon {...props}>
<path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/>
</SvgIcon>
);
NavigationArrowDownward = pure(NavigationArrowDownward);
Na... |
js/webui/src/dropdown.js | hyperblast/beefweb | import React from 'react';
import { bindHandlers } from './utils';
import PropTypes from 'prop-types';
import { Button } from './elements';
import { makeClassName } from './dom_utils';
import pick from 'lodash/pick';
const dropdownTarget = Symbol('dropdownTarget');
const basePropTypes = Object.freeze({
className:... |
src/components/common/svg-icons/image/straighten.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageStraighten = (props) => (
<SvgIcon {...props}>
<path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"/>
</SvgIcon>
);
ImageStr... |
src/svg-icons/maps/local-grocery-store.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalGroceryStore = (props) => (
<SvgIcon {...props}>
<path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-... |
ajax/libs/yui/3.6.0pr2/datatable-core/datatable-core-debug.js | dominic/cdnjs | YUI.add('datatable-core', function(Y) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isObject,
... |
stories/DateRangePicker.js | intwarehq/react-dates | import React from 'react';
import moment from 'moment';
import { storiesOf } from '@kadira/storybook';
import DateRangePickerWrapper from '../examples/DateRangePickerWrapper';
const TestInput = props => (
<div style={{ marginTop: 16 }}>
<input
{...props}
type="text"
style={{
height: 48... |
fixtures/kitchensink/template/src/features/syntax/Generators.js | d3ce1t/create-react-app | /**
* Copyright (c) 2015-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.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function* load(limit) {
let i = 1;
while (i <= limit)... |
app/components/users/UserForm.js | MakingSense/mern-seed | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import Formsy from 'formsy-react';
import autoBind from '../../lib/autoBind';
import { Input, Textarea } from 'formsy-react-components';
class UserForm extends Component {
constructor(props, context) {
... |
modules/__tests__/History-test.js | etiennetremel/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import History from '../History'
import Router from '../Router'
import Route from '../Route'
import createHistory from 'history/lib/createMemoryHistory'
describe('History Mixin', function () {
let node
beforeEach(function () {
node = ... |
example/index.js | adamjking3/react-typing-animation | import React from 'react';
import ReactDOM from 'react-dom'; // eslint-disable-line import/no-extraneous-dependencies
import { AppContainer } from 'react-hot-loader'; // eslint-disable-line import/no-extraneous-dependencies
import App from './App';
const mount = AppComponent => {
ReactDOM.render(
<AppContainer>... |
app/javascript/mastodon/components/__tests__/display_name-test.js | imas/mastodon | import React from 'react';
import renderer from 'react-test-renderer';
import { fromJS } from 'immutable';
import DisplayName from '../display_name';
describe('<DisplayName />', () => {
it('renders display name + account name', () => {
const account = fromJS({
username: 'bar',
acct: 'bar@baz',
... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | newphew92/newphew92.github.io | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
wrappers/md.js | hiasinho/trade-iq | import React from 'react'
import 'css/markdown-styles.css'
import Helmet from "react-helmet"
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const post = this.props.route.page.data
return (
<... |
packages/ringcentral-widgets-docs/src/app/pages/Components/VoicemailPlayer/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
ajax/libs/primereact/8.0.0-rc.2/contextmenu/contextmenu.esm.js | cdnjs/cdnjs | import * as React from 'react';
import PrimeReact from 'primereact/api';
import { CSSTransition } from 'primereact/csstransition';
import { useUpdateEffect, useEventListener, useResizeListener, useMountEffect, useUnmountEffect } from 'primereact/hooks';
import { Portal } from 'primereact/portal';
import { classNames, D... |
lib/yuilib/3.17.2/datatable-core/datatable-core-debug.js | lsuits/moodle | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@sinc... |
src/domain/search/filters/filter/TextFilter.js | fastmonkeys/respa-ui | import React from 'react';
import PropTypes from 'prop-types';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import FormControl from 'react-bootstrap/lib/FormControl';
const TextFilter = ({
onChange,
onSearch,
label,
placeholder,
value,
... |
src/components/DataTable/TableToolbarSearch.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import cx from 'classnames';
import PropTypes from 'prop-types';
import React, { useRef, useState, useEffect } from 'react';
import { setting... |
src/svg-icons/hardware/laptop-mac.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareLaptopMac = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2H0c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2h-4zM4 5h16v11H4V5zm8 14c-.55 0... |
ajax/libs/rxjs/2.3.16/rx.lite.compat.js | luanlmd/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... |
bower_components/jquery/test/data/jquery-1.9.1.ajax_xhr.min.js | vlangular/multiTransclude | /*! jQuery v1.9.1 -css,-event-alias,-ajax/script,-ajax/jsonp,-effects,-offset,-dimensions,-deprecated | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],d="1.9.1 -css,-event-alias,-aja... |
ajax/libs/video.js/4.12.15/video.dev.js | BenjaminVanRyseghem/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
src/svg-icons/maps/near-me.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsNearMe = (props) => (
<SvgIcon {...props}>
<path d="M21 3L3 10.53v.98l6.84 2.65L12.48 21h.98L21 3z"/>
</SvgIcon>
);
MapsNearMe = pure(MapsNearMe);
MapsNearMe.displayName = 'MapsNearMe';
MapsNearMe.muiName... |
cra-network-aware-only-if-cached-loading/src/App.js | GoogleChromeLabs/adaptive-loading | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
ajax/libs/forerunnerdb/1.3.563/fdb-core+views.js | sufuf3/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/docs/components/SpinningDoc.js | grommet/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Spinning from 'grommet/components/icons/Spinning';
import DocsArticle from '../../components/DocsArticle';
import Code from '../../components/Code';
export default class SpinningDoc extends Component ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.