path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/app/modules/introduction/components/Item.js | lili668668/lili668668.github.io | import React from 'react'
import { withStyles } from '@material-ui/core/styles'
import { useTranslation } from 'react-i18next/hooks'
import Typography from '@material-ui/core/Typography'
const styles = theme => ({
padding: {
padding: theme.spacing.unit
}
})
function Item (props) {
const [t] = useTranslation... |
src/components/shared/import-geometry/import-geometry.component.js | GeoTIFF/geotiff.io | import React from 'react';
const ImportGeometryComponent = ({ geometry, importGeometry }) => (
<div className='import-geojson'>
<p>Import Geometry from file</p>
<div className='content-row'>
<label
className='gt-button-secondary'
htmlFor="import-geojson-input"
>
Import Geo... |
client/src/App.js | MalgAmoe/t9ers | import React, { Component } from 'react';
import Screen from './Screen';
import KeyPad from './KeyPad';
import Functions from './Functions';
import './App.css';
const styles = {
container: {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
backgroundColor: 'Aqua',
paddingTop: 50,... |
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | yanghcc/canvas | 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'));
|
node_modules/karma/node_modules/core-js/client/library.js | MichaelBowenSc/about-me | /**
* core-js 2.3.0
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2016 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
packages/material-ui-icons/src/TextFields.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><defs><path id="a" d="M24 24H0V0h24v24z" /></defs><path d="M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z" /></React.Fragment>
, 'TextFields');
|
app/screens/App/screens/NotificationCenter/index.js | codejunkienick/starter-lapis | // @flow
import React from 'react';
import { connect } from 'react-redux';
import { Field, reduxForm } from 'redux-form/immutable';
import { actions } from 'redux/actions/app';
import './index.css';
type Props = {
sendNotification: ActionCreator,
clearNotifications: ActionCreator,
toggleNotifications: ActionCrea... |
test/fixtures/react/rawfunction/actual.js | davesnx/babel-plugin-transform-react-qa-classes | import React, { Component } from 'react';
function SubComponent() {
return <div>Sub</div>;
}
const componentName = () => {
return <div>
<SubCoponent />
</div>;
};
export default componentName;
|
site/docs/ColumnGroupAPIPage.js | mcanthony/fixed-data-table | "use strict";
var Constants = require('../Constants');
var DocsHTMLWrapper = require('./DocsHTMLWrapper');
var TableAPIHTML = require('../../docs/ColumnGroupAPI.md');
var React = require('react');
var ColumnGroupAPIPage = React.createClass({
render() {
return (
<DocsHTMLWrapper
html={TableAPIHTML}... |
packages/material-ui-icons/src/VideoLabelOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H3V5h18v11z" />
, 'VideoLabelOutlined');
|
packages/react-scripts/template/src/index.js | Psychwire/create-react-app | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/client/containers/pages/ReadmePage.react.js | apburnes/react-con-redux-boilerplate | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class ReadmePage extends Component {
render() {
return (
<div>
<h2>Further Setup</h2>
<p>Assuming you have already cloned the repo and ran all the commands from the README (otherwise you would not ... |
src/js/components/icons/base/Clone.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
packages/bonde-admin/src/components/forms/form-redux/index.spec.js | ourcities/rebu-client | /* eslint-disable no-unused-expressions */
import React from 'react'
import { expect } from 'chai'
import { shallow } from 'enzyme'
import { FormRedux } from '@/components/forms'
describe('client/components/forms/form-redux', () => {
let wrapper
const props = {
onSubmit: (values, dispatch) => {},
handleSu... |
src/index.js | Bjorgvin/jumble | import React from 'react'
import ReactDOM from 'react-dom'
import styled, { ThemeProvider, injectGlobal } from 'styled-components'
import { normalize } from 'polished'
import { Provider } from 'react-redux'
import { createStore, compose, applyMiddleware } from 'redux'
import createSagaMiddleware from 'redux-saga'
impor... |
server/ViewModels/SelectTag.js | demyanenko/hutel | import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from 'material-ui/FontIcon';
import RaisedButton from 'material-ui/RaisedButton';
class SelectTag extends React.Component {
constructor(props) {
super(props);
this.state = {
isExpanded: false
};
}
selectTag(tagId) ... |
stories/LanguagePicker/Example.js | skyiea/wix-style-react | import React from 'react';
import {LanguagePicker} from 'wix-style-react';
const languageLocaleMap = {
en: 'English',
cs: 'Čeština',
da: 'Dansk',
de: 'Deutsch',
fr: 'Français',
es: 'Español',
it: 'Italiano',
no: 'Norsk',
pl: 'Polski',
pt: 'Português',
ru: 'Русский',
sv: 'Svenska',
ja: '日本語',
... |
packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/ImageInclusion.js | facebookincubator/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 from 'react';
import tiniestCat from './assets/tiniest-cat.jpg';
const ImageInclusion = () => (
<img id="feature-image-i... |
src/routes/error/index.js | rowinf/robertirwin.me-v2 | /**
* 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 ErrorPage from './ErrorP... |
src/actions/auth.js | morrishopkins/test_spa | import { browserHistory } from 'react-router';
import {
LOGIN_USER_SUCCESS,
LOGIN_USER_FAILURE,
LOGIN_USER_REQUEST,
LOGOUT_USER,
REGISTER_USER_FAILURE,
REGISTER_USER_REQUEST,
REGISTER_USER_SUCCESS,
} from '../constants/index';
import { parseJSON } from '../utils/misc';
import { get_token, ... |
src/encoded/static/components/viz/components/SVGFilters.js | 4dn-dcic/fourfront | 'use strict';
import React from 'react';
export class SVGFilters extends React.Component {
static defaultProps = {
'enabled' : true,
'wrapInOwnSVG' : true,
'includeFilters' : ['svg-filter-highlight', 'svg-filter-brightness']
}
shouldComponentUpdate(){
return false; // We ... |
ajax/libs/angular.js/2.0.0-alpha.44/web_worker/ui.dev.js | menuka94/cdnjs | /**
@license
Copyright 2014-2015 Google, Inc. http://angularjs.org
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 ... |
src/utils/testHelpers/snapshotHocProps.js | Stupidism/stupid-rc-starter | import React from 'react';
import { shallow } from 'enzyme';
import enzymeToJson from 'enzyme-to-json';
const snapshotPropsMapperHoc = (hoc, inputProps) => {
// This Component can't render deeply, must work with shallow renderer.
const PropsDisplayer = outputProps => (
<div name="props-displayer">
<input... |
__tests__/index.android.js | elderfo/elderfo-react-native-components | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
frontend/src/components/icons/More.js | webrecorder/webrecorder | import React from 'react';
function More() {
return (
<svg width="25px" height="7px" viewBox="0 0 25 7" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" strokeWidth="1" fillRule="evenodd" fill="#7B7B7B">
<circle id="Oval-2" cx="2.61363636" cy="2.61363636" r="2.61363636" />
... |
src/components/views/elements/MemberEventListSummary.js | aperezdc/matrix-react-sdk | /*
Copyright 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... |
docs/src/sections/ListGroupSection.js | Sipree/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function ListGroupSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
docs/build.js | aabenoja/react-playground | import React from 'react';
import path from 'path';
import App from './src/App';
import Root from './src/Root';
import fsp from 'fs-promise';
import { copy } from '../tools/fs-utils';
import { exec } from '../tools/exec';
const rootFactory = React.createFactory(Root);
const repoRoot = path.resolve(__dirname, '../');
... |
src/svg-icons/av/replay-5.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay5 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.3 8.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.1 0 .2... |
tests/react_web_tests/test_data/react_code/WebButton/src/components/Desktop/component.js | ibhubs/sketch-components | /**
* @flow
*/
import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import styled from 'styled-components'
import SharpButton from '../SharpButton'
const Desktop = (props) => (
<DesktopStyledComponent>
<SharpButton
onClick={this.onClick}
></SharpBu... |
ajax/libs/react-native-web/0.15.7/exports/AppRegistry/renderApplication.js | cdnjs/cdnjs | function _extends() { _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; }; return _extends.apply(this, arguments); }
/... |
ajax/libs/webshim/1.15.11/dev/shims/moxie/js/moxie-html4.js | cdnjs/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
react-components/oodt_opsui_sample_app/src/components/listItems.js | apache/oodt | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
src/svg-icons/image/filter-none.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterNone = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/>
</SvgIcon>
);
Ima... |
packages/glip-widgets/components/GlipChatForm/index.js | ringcentral/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Tooltip from 'rc-tooltip';
import 'rc-tooltip/assets/bootstrap_white.css';
import 'rc-editor-mention/assets/index.css';
import Mention, {
Nav,
toString,
toEditorState,
getMentions,
} from 'r... |
packages/nova-core/lib/messages.js | trujunzhang/newspoliticl | import React, {PropTypes, Component} from 'react';
import PostDetailSet from "./postdetailset.js";
import AppStatus from "./appstatus.js";
import PopoverMenus from "./popovermenus.js"
import UserCollections from "./usercollections"
const Messages = {
// Local (client-only) collection
collection: new Meteor.Col... |
src/components/Login/Register.js | yangdongMC/kaola | import React from 'react'
import { routerRedux } from 'dva/router'
import { connect } from 'dva'
import PropTypes from 'prop-types'
import { Form, Input, Button, Row, Col, Icon } from 'antd'
import styles from './Login.css'
// import 'antd/dist/antd.css'
import Particles from 'react-particles-js';
const Fo... |
fields/types/cloudinaryimages/CloudinaryImagesColumn.js | Ftonso/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#888',
fo... |
src/shared/element-react/dist/npm/es6/src/date-picker/panel/TimeRangePanel.js | thundernet8/Elune-WWW | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _createClass from 'babel-runtime/helpers/createClass';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import { PropTyp... |
examples/dynamic-form-fields/app.js | optiopay/optiopay-form | import React from 'react';
import ReactDOM from 'react-dom';
import { Form } from 'formsy-react';
import MyInput from './../components/Input';
import MySelect from './../components/Select';
import MyRadioGroup from './../components/RadioGroup';
import MyMultiCheckboxSet from './../components/MultiCheckboxSet';
const ... |
app/containers/HomePage.js | kamidipreetham/Easymove | // @flow
import React, { Component } from 'react';
import Home from '../components/Home';
type Props = {};
export default class HomePage extends Component<Props> {
props: Props;
render() {
return (
<Home />
);
}
}
|
ajax/libs/react-select/1.0.0-rc.10/react-select.es.js | sashberd/cdnjs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import AutosizeInput from 'react-input-autosize';
import classNames from 'classnames';
function arrowRenderer(_ref) {
var onMouseDown = _ref.onMouseDown;
return React.createElement('span', {
className: ... |
src/components/__tests__/general/loading-test.js | GlenHughes/thegymbuddy | /**
* Test to check if the component renders correctly
*/
/* global it expect */
import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import Loading from '@components/general/Loading';
it('Loading renders correctly', () => {
const tree = renderer.create(
<Loading />,
... |
stories/ButtonSelection/ExampleControlled.js | nirhart/wix-style-react | import React from 'react';
import ButtonSelection from 'wix-style-react/ButtonSelection';
const style = {
display: 'inline-block',
padding: '0 5px',
width: '200px',
lineHeight: '22px',
marginTop: '10px'
};
class ControlledButtonSelection extends React.Component {
constructor(props) {
super(props);
... |
app/components/Counter.js | nickrfer/code-sentinel | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import styles from './Counter.css';
class Counter extends Component {
props: {
increment: () => void,
incrementIfOdd: () => void,
incrementAsync: () => void,
decrement: () => void,
counter: number
};
... |
docs/app/Examples/collections/Grid/Variations/GridExampleColoredRow.js | shengnian/shengnian-ui-react | import _ from 'lodash'
import React from 'react'
import { Grid } from 'shengnian-ui-react'
const colors = [
'red', 'orange', 'yellow', 'olive', 'green', 'teal', 'blue',
'violet', 'purple', 'pink', 'brown', 'grey', 'black',
]
const GridColoredRowExample = () => (
<Grid padded>
{colors.map(color => (
<G... |
ajax/libs/rxjs/3.1.0/rx.lite.extras.compat.js | hanbyul-here/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'function': true,
'object': true
};
var
freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports... |
svg-icons/device/nfc.js | myfintech/material-ui | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
packages/ringcentral-widgets-docs/src/app/pages/Components/PresenceItem/Demo.js | ringcentral/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import PresenceItem from 'ringcentral-widgets/components/PresenceItem';
const props = {};
props.onClick = () => alert('clicked');
props.userStatus = 'Available';
props.selected = false;
props.currentLocale = 'en-US';
/**
* A example of `PresenceItem`
*/
const P... |
js/FolderTile.react.js | Sable/McLab-Web | import classNames from 'classnames';
import Dispatcher from './Dispatcher';
import React from 'react';
import AT from './constants/AT';
const {PropTypes, Component} = React;
const one_indent = "\u00A0\u00A0"; // Non-breaking spaces
class FolderTile extends Component {
render() {
var indent_string = '';
f... |
node_modules/react-icons/go/mention.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const GoMention = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m21.7 3.9c-8.9-1.1-17 5.2-18.1 14.1s5.3 17 14.2 18.1c2.8 0.4 5.6 0 8.3-1.1 1-0.4 1.4-1.5 1-2.5s-1.5-1.4-2.5-1c-2 0.9-4.2 1.2-6.4 0.9-6.8-0.8-11.7-7.1-10.9-13.9s7.1-11... |
packages/react-devtools-shared/src/devtools/views/Components/HocBadges.js | mjackson/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.
*
* @flow
*/
import React from 'react';
import {
ElementTypeForwardRef,
ElementTypeMemo,
} from 'react-devtools-shared/src/type... |
project/AwesomeProject/node_modules/react-native/node_modules/react-tools/src/browser/eventPlugins/__tests__/AnalyticsEventPlugin-test.js | wangchunling/react-native-for-APICloud | /**
* Copyright 2013-2015, 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.
*
* @emails react-co... |
sipengendalian/asset/crud/js/jquery.min.js | hanupas/bpiw-sinkronisasi | /*! 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... |
src/containers/guide/index.js | wunderg/PTC | import React, { Component } from 'react';
import './style.scss';
import Level0 from './howto.js';
import Level1 from './level1.js';
import Level2 from './level2.js';
import Level3 from './level3.js';
import Level4 from './level4.js';
import Level5 from './level5.js';
import Level6 from './level6.js';
import Level7 fro... |
packages/material-ui-icons/src/AddPhotoAlternateSharp.js | Kagami/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="M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2h-3zm-3 4V8h-3V5H3v16h16V11h-3zM5 19l3-4 2 3 3-4 4 5H5z" /></g></React.Fragment>
, 'AddP... |
packages/react-error-overlay/src/containers/RuntimeError.js | gutenye/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.
*/
/* @flow */
import React from 'react';
import Header from '../components/Header';
import StackTrace from './StackTrace';
import type { ... |
test/integration/jsconfig-paths/components/hello.js | azukaru/next.js | import React from 'react'
export function Hello() {
return <>Hello</>
}
|
ajax/libs/video.js/5.0.0-17/video.js | kiwi89/cdnjs | /**
* @license
* Video.js 5.0.0-17 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Ve... |
packages/buttons/src/js/react.js | govau/uikit | /*! [replace-name] v[replace-version] */
/***************************************************************************************************************************************************************
*
* buttons function
*
* Buttons signal action. Use them to move the user through the service.
*
***************... |
src/redux/utils/createDevToolsWindow.js | Rkiouak/react-redux-python-stocks | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import DevTools from '../../containers/DevToolsWindow'
export default function createDevToolsWindow (store) {
const win = window.open(
null,
'redux-devtools', // give it a name so it reuses the same window
`... |
src/resources/assets/js/reusable/markdown.js | tmlpstats/tmlpstats | import React from 'react'
import { objectAssign } from './ponyfill'
import { defaultRules, parserFor, reactFor, ruleOutput } from 'simple-markdown'
const paragraphRule = objectAssign({}, defaultRules.paragraph, {
react: function(node, output, state) {
return React.createElement('p', {}, output(node.content... |
src/Header/withRange.js | clauderic/react-infinite-calendar | import React from 'react';
import {withImmutableProps} from '../utils';
import defaultSelectionRenderer from './defaultSelectionRenderer';
import styles from './Header.scss';
export default withImmutableProps(({renderSelection}) => ({
renderSelection: (values, props) => {
if (!values || !values.start && !values.... |
src/svg-icons/action/bug-report.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBugReport = (props) => (
<SvgIcon {...props}>
<path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7... |
ajax/libs/forerunnerdb/1.3.796/fdb-core+persist.js | tonytomov/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... |
ui/src/containers/BasicQueryBuilder/QueryBuilderSections.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Map, List } from 'immutable';
import { connect } from 'react-redux';
import { compose } from 'recompose';
import { getAvailableSections } from 'ui/redux/modules/queryBuilder';
import {
queriesSectionsSelector,
queryChangeSections... |
client/components/flash/flashMessagesList.js | RicardormDev/ReactEnviroment |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import FlashMessage from './FlashMessage'
import { deleteFlashMessage } from '../../actions/flashMessages';
class FlashMessagesList extends React.Component {
render(){
const messages = this.props.messages.map(m... |
src/svg-icons/places/rv-hookup.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesRvHookup = (props) => (
<SvgIcon {...props}>
<path d="M20 17v-6c0-1.1-.9-2-2-2H7V7l-3 3 3 3v-2h4v3H4v3c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h8v-2h-2zm-9 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1... |
app/components/Avatar.js | stratigos/stormsreach | import React from 'react';
import PropTypes from 'prop-types';
import AvatarLink from './AvatarLink';
import ShopLink from './ShopLink';
import VendorLink from './VendorLink';
/**
* Displays an Avatar's image.
*/
const AvatarImage = (props) => {
return(
<img
src={props.imgSrc}
alt={props.imgAlt}
... |
app/javascript/mastodon/components/logo.js | lindwurm/mastodon | import React from 'react';
const Logo = () => (
<svg viewBox='0 0 216.4144 232.00976' className='logo'>
<use xlinkHref='#mastodon-svg-logo' />
</svg>
);
export default Logo;
|
src/containers/DevTools.js | Vargentum/react-redux-apps | 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 />
</Dock... |
src/js/routes.js | akornatskyy/sample-blog-react-redux | import React from 'react';
import {Container} from 'react-bootstrap';
import {Route, Switch} from 'react-router';
import AuthInfo from './membership/containers/auth-info';
import Footer from './shared/components/footer';
import Header from './shared/components/header';
import Posts from './posts/containers/posts';
im... |
app/javascript/mastodon/containers/compose_container.js | tootcafe/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { hydrateStore } from '../actions/store';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import Compose f... |
src/components/ModelessDialog.js | florinn/react-modeless | import React from 'react'
import PropTypes from 'prop-types'
const defaultDialogStyle = {
position: 'fixed',
top: '50%',
left: '50%',
transform: 'translate(-50%, -50%)',
zIndex: 9999,
background: 'rgba(255, 255, 255, 1)'
}
const defaultBackdropStyle = {
position: 'fixed',
top: 0,
left: 0,
width: '100%',
he... |
Example/__tests__/index.android.js | dmazin/react-native-router-flux | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
pages/components/markdown_render.js | GallenHu/Hinote | import React from 'react';
import PropTypes from 'prop-types';
const MdRender = props => {
// console.log(props.data);
// 字符被特殊处理后还原
const html = props.data
.replace(/</g, '<').replace(/>/g, '>')
.replace(/\n/g, '<br />');
const className = `markdown-content markdown-body mb60 ${props.className}`... |
examples/js/column-header-span/column-header-span.js | powerhome/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,
... |
modules/__tests__/RouteComponent-test.js | nauzethc/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import Router from '../Router'
describe('a Route Component', function () {
let node
beforeEach(function () {
node = document.createElement('div')
})
afterEach(function (... |
src/desktop/apps/consign/components/thank_you/index.js | kanaabe/force | import Document from '../../../../components/main_layout/public/icons/consignments-doc.svg'
import GreenCheck from '../../../../components/main_layout/public/icons/green-check.svg'
import PropTypes from 'prop-types'
import React from 'react'
import Select from '../../../../components/main_layout/public/icons/consignmen... |
frontend/src/components/post-changelog/index.js | 1905410/Misago | // jshint ignore:start
import React from 'react';
import Diff from './diff';
import Toolbar from './toolbar';
import { hydrateEdit } from './utils';
import Message from 'misago/components/modal-message';
import Loader from 'misago/components/modal-loader';
import * as post from 'misago/reducers/post';
import ajax from ... |
src/App.js | shaunstanislaus/react-transform-boilerplate | import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
class Counter extends Component {
constructor(props) {
super(props);
this.state = { counter: 0 };
this.interval = setInterval(() => this.tick(), 1000);
}
tick() {
this.setState({
counter: this.state.coun... |
ajax/libs/react-localstorage/0.2.6/react-localstorage.min.js | jonobr1/cdnjs | "use strict";function loadStateFromLocalStorage(t,e){function a(){t.__stateLoadedFromLS=!0,e()}if(ls){var o=getLocalStorageKey(t),r=!1;try{var s=JSON.parse(ls.getItem(o));s&&(r=!0,t.setState(s,a))}catch(l){console&&console.warn("Unable to load state for",getDisplayName(t),"from localStorage.")}r||a()}}function getDispl... |
packages/wix-style-react/src/Divider/test/Divider.spec.js | wix/wix-style-react | import React from 'react';
import { createRendererWithUniDriver, cleanup } from '../../../test/utils/unit';
import Divider from '../Divider';
import { dividerPrivateDriverFactory } from './Divider.private.uni.driver';
describe('Divider', () => {
const render = createRendererWithUniDriver(dividerPrivateDriverFactory... |
client/src/javascript/components/torrent-list/Torrent.js | stephdewit/flood | import React from 'react';
import CalendarIcon from '../icons/CalendarIcon';
import ClockIcon from '../icons/ClockIcon';
import DiskIcon from '../icons/DiskIcon';
import DownloadThickIcon from '../icons/DownloadThickIcon';
import InformationIcon from '../icons/InformationIcon';
import PeersIcon from '../icons/PeersIco... |
src/panes/components/Dialog.js | trezy/eidetica | // Module Imports
import React from 'react'
import ReactDOM from 'react-dom'
import PropTypes from 'prop-types'
// Component imports
import Menu from './Menu'
class Dialog extends React.Component {
/***************************************************************************\
Local Properties
\********... |
maodou/events/client/components/events.js | LIYINGZHEN/meteor-react-redux-base | import React from 'react';
import {Link} from 'react-router';
import moment from 'moment';
import Loading from 'client/components/common/loading';
export default (props) => {
const T = props.context.T;
return (
<div className="container" style={{ paddingTop: '60px'}}>
<div className="row">
{
... |
ajax/libs/react-highcharts/7.0.0/highcharts.js | dlueth/cdnjs | !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof exports?exports.Highcharts=r(require("react")):t.Highcharts=r(t.react)}(this,function(t){return function(t){function r(o){if(e[o])return e[o].exp... |
Initial/src/client/app/index.js | Louis0503/TestRact | "use strict";
import React from 'react';
import ReactDOM from 'react-dom';
import HelloMessage from "./components/HelloMessage";
import MyComponent from "./components/MyComponent";
import Timer from "./components/Timer";
import ToDoApp from "./components/ToDoApp";
import MarkdownEditor from "./components/MarkdownEdito... |
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js | it33/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class UserProfileContactInfo extends React.Component {
static propTypes = {
phones: React.PropTypes.arr... |
src/hooks/useFormElement.js | tannerlinsley/react-form | import React from 'react'
//
import { FormContextProvider } from './useFormContext'
export default function useFormElement(contextValue) {
const FormRef = React.useRef()
const FormApiRef = React.useRef()
FormApiRef.current = contextValue
// Create a new form element
if (!FormRef.current) {
FormRef.cur... |
src/components/pages/home.js | yiweimatou/yiweimatou-mobile | import React from 'react'
import SliderCaption from '../SliderCaption'
import organization from '../../stores/organization'
import { Group } from 'amazeui-touch'
class Home extends React.Component {
constructor(props){
super(props)
this.state = {
organs:{}
}
}
com... |
examples/js/others/mouse-event-table.js | AllenFang/react-bootstrap-table | /* eslint no-console: 0 */
/* eslint no-console: 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;
p... |
src/components/grid/__tests__/index.js | KleeGroup/focus-components |
import TestUtils from 'react-dom/test-utils';
import React from 'react';
import Grid from '../';
const { renderIntoDocument, scryRenderedDOMComponentsWithTag, Simulate } = TestUtils;
class Wrapper extends React.Component {
render() {
return (
<div>{this.props.children}</div>
);
}
... |
examples/star-wars/js/app.js | almasakchabayev/relay | /**
* This file provided by Facebook is 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,
* FITNES... |
components/News/index.js | joaojusto/jose-gomes-landing-page | import React, { Component } from 'react';
import NewsContainer from '../../containers/News';
import './index.scss';
import Background from './background.jpg';
import BackgroundMobile from './background-mobile.jpg';
import LinkIcon from './link.svg';
import Navigation from '../Navigation';
class News extends Compone... |
ajax/libs/parsley.js/2.3.6/parsley.js | honestree/cdnjs | /*!
* Parsley.js
* Version 2.3.6 - built Wed, Mar 23rd 2016, 10:57 am
* http://parsleyjs.org
* Guillaume Potier - <guillaume@wisembly.com>
* Marc-Andre Lafortune - <petroselinum@marc-andre.ca>
* MIT Licensed
*/
// The source code below is generated by babel as
// Parsley is written in ECMAScript 6
//
var _slice = Arra... |
ajax/libs/elemental/0.5.3/elemental.js | sajochiu/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Elemental = f(... |
docs/app/Examples/elements/Image/Usage/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ImageUsageExamples = () => (
<ExampleSection title='Usage'>
<ComponentExample
title='Children'
description='An ... |
monkey/monkey_island/cc/ui/src/components/report-components/security/issues/TunnelIssue.js | guardicore/monkey | import React from 'react';
import CollapsibleWellComponent from '../CollapsibleWell';
export function tunnelIssueOverview(){
return (<li key="tunnel">Weak segmentation - Machines were able to communicate over unused ports.</li>)
}
export function tunnelIssueReport(issue) {
return (
<>
Use micro-se... |
src/components/ColorPickers.js | mtphil/a_currency_converter_that_aint_moche | import React from 'react';
import ColorButton from './ColorButton';
import {toggleDisplay, valueChange, shutDisplay} from '../reducers/pickersReducer';
import {connect} from 'react-redux';
const ColorPickers = ({theme, pickers, toggleDisplay, valueChange, shutDisplay}) => {
return (
<div className="colorco... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.