path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/components/run.js | rubyconvict/6f7aaabe19ccddd002d37c9e | import React from 'react';
import ReactDOM from 'react-dom';
import App from './Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
ui/src/components/workflow/WorkflowMetaDetails.js | d3sw/conductor | import React, { Component } from 'react';
import { Link } from 'react-router';
import { Breadcrumb, BreadcrumbItem, Grid, Row, Col, Well, OverlayTrigger,Button,Popover, Panel, Tabs, Tab } from 'react-bootstrap';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
import { connect } from 'react-redu... |
src/lib/branch.spec.js | yeojz/react-form-addons | import React from 'react';
import {shallow} from 'enzyme';
import TestDiv from 'tests/TestDiv';
import branch from './branch';
describe('lib/branch', function () {
it('should return a react component', function () {
const Component = branch()(TestDiv);
const elem = shallow(<Component name='test' />);
exp... |
frontend/src/components/partners/profile/overview/partnerOverviewSummary.js | unicef/un-partner-portal | import React from 'react';
import R from 'ramda';
import { browserHistory as history } from 'react-router';
import PropTypes from 'prop-types';
import Typography from 'material-ui/Typography';
import Button from 'material-ui/Button';
import Grid from 'material-ui/Grid';
import HeaderList from '../../../common/list/head... |
common/components/Side.js | laoqiren/isomorphic-redux-forum | import React from 'react';
import { Router, Route, Link } from 'react-router'
import {Button,Menu, Icon,Input, Layout} from 'antd'
export default class Side extends React.Component {
constructor(props){
super(props)
this.state = {
sortUsers: []
}
}
componentDidMount(){
... |
lib/CollapsibleMixin.js | justinanastos/react-bootstrap | 'use strict';
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
exports.__esModule = true;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _utilsTransitionEvents = require('./utils/TransitionEvents');
var _utilsTransitionEvents2 = _i... |
src/components/Highlight.js | cpsubrian/redis-explorer | import React from 'react'
import autobind from 'autobind-decorator'
import hljs from 'highlight.js'
@autobind
class Highlight extends React.Component {
static propTypes = {
className: React.PropTypes.string,
innerHTML: React.PropTypes.bool,
children: React.PropTypes.node
}
static defaultProps = {
... |
src/components/App.js | willchertoff/Ben-Kinde | /**
* 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 PropTypes from 'prop-... |
lib/RecentCities.js | danalvarez5280/Weatherly | import React from 'react';
import Card from './Card';
export default function RecentCities(props) {
const myCities = JSON.parse(localStorage.getItem('recentCities')) || [];
const topFive = myCities.slice(0, 5);
const stringCities = JSON.stringify(topFive);
localStorage.setItem('recentCities', stringCities)... |
src/static/utils/requireAuthentication.js | CRUDNS/CRUDNS | import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
export default function requireAuthentication(Component) {
class AuthenticatedComponent extends React.Component {
static propTypes = {
isAuthenticated: React.PropTypes.bool.isRequired,
... |
test/PagerSpec.js | xiaoking/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Pager from '../src/Pager';
import PageItem from '../src/PageItem';
describe('Pager', function () {
it('Should output a unordered list as root element with class "pager"', function () {
let instance = ReactTestUtils.renderInt... |
ajax/libs/shariff/1.8.0/shariff.complete.js | terrymun/cdnjs |
/*!
* shariff - v1.8.0 - 19.03.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])... |
src/js/components/DateInput/stories/Simple.js | HewlettPackard/grommet | import React from 'react';
import { Box, DateInput, Text } from 'grommet';
export const Simple = () => {
const [value, setValue] = React.useState('');
const onChange = (event) => {
const nextValue = event.value;
console.log('onChange', nextValue);
setValue(nextValue);
};
return (
<Box directio... |
src/stories/index.js | Nextzy/client-nextzy-landing-page-2017 | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import { Button, Welcome } from '@storybook/react/demo';
storiesOf('Welcome', module).add('to Storybook', () => <Welcome showApp={linkTo('Button... |
packages/material-ui-icons/src/SmokeFree.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M2 6l6.99 7H2v3h9.99l7 7 1.26-1.25-17-17zm18.5 7H22v3h-1.5zM18 13h1.5v3H18zm.85-8.12c.62-.61 1-1.45 1-2.38h-1.5c0 1.02-.83 1.85-1.85 1.85v1.5c2.24 0 4 1.83 4 4.07V12H22V9.92c0-2.23-1.2... |
graphql/subscription/app/src/components/ChannelsListWithData.js | networknt/light-java-example | import React from 'react';
import {
Link
} from 'react-router-dom'
import {
gql,
graphql,
} from 'react-apollo';
import AddChannel from './AddChannel';
const ChannelsList = ({ data: {loading, error, channels }}) => {
if (loading) {
return <p>Loading ...</p>;
}
if (error) {
return <p>{error.me... |
src/ui/components/Header.js | notifapi/notifapi-web | import React from 'react';
import { Component } from 'react';
export default class Header extends Component {
render() {
return(
<header role="banner" className="navbar navbar-custom navbar-static-top">
<div className="container">
<div className="navbar-head... |
src/components/bullet/bullet.stories.js | teamleadercrm/teamleader-ui | import React from 'react';
import { addStoryInGroup, LOW_LEVEL_BLOCKS } from '../../../.storybook/utils';
import Bullet from './Bullet';
export default {
component: Bullet,
title: addStoryInGroup(LOW_LEVEL_BLOCKS, 'Bullet'),
};
export const basic = (args) => <Bullet {...args} />;
|
src/components/SectionTemplates/HeightSection.spec.js | KNMI/GeoWeb-FrontEnd | import React from 'react';
import HeightSection from './HeightSection';
import { mount } from 'enzyme';
describe('(Component) SectionTemplates/HeightSection', () => {
it('renders a HeightSection', () => {
const _component = mount(<HeightSection><div /></HeightSection>);
expect(_component.type()).to.eql(Heigh... |
ajax/libs/cyclejs-dom/3.0.1/cycle-dom.js | emijrp/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.CycleDOM = f()... |
www/js/component/game/c-game.js | webbestmaster/ae3 | // @flow
/* global alert */
/* eslint consistent-this: ["error", "view"] */
import type {Node} from 'react';
import React, {Component} from 'react';
import {connect} from 'react-redux';
import {user} from '../../module/user';
import type {SocketMessageType} from '../../module/socket';
import {socket} from '../../mod... |
node_modules/rc-calendar/es/year/YearPanel.js | ZSMingNB/react-news | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-run... |
src/app.js | morrishopkins/test_spa | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, Redirect, browserHistory } from 'react-router';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { syncHistoryWithStore } from 'react-router-redux';
import configureStore from './store... |
files/rxjs/2.3.7/rx.lite.compat.js | leebyron/jsdelivr | // 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
};
v... |
shared/components/html/HTML.js | ueno-llc/starter-kit-universally | /**
* This is the HTML container that our React Application will be rendered in.
* We keep it at this location to allow ourselves to make arbitrary changes
* easily along with other changes to our app components.
*
* It's also useful to have a simple shared component like this that can be
* shared by various part... |
docs/src/examples/collections/Table/Types/TableExamplePadded.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Header, Table, Rating } from 'semantic-ui-react'
const TableExamplePadded = () => (
<Table celled padded>
<Table.Header>
<Table.Row>
<Table.HeaderCell singleLine>Evidence Rating</Table.HeaderCell>
<Table.HeaderCell>Effect</Table.HeaderCell>
<Table.... |
src/pages/person/PartyInfo.js | zzelune/neam | /*
* @Author: miaoxinyu.zh
* @Date: 2017-08-22 06:06:10
* @Last Modified by: zhaozheng1.zh
* @Last Modified time: 2017-12-06 10:46:04
*/
import React from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
processColor,
ScrollView,
Image
} from 'react-native';
import Toast, { DURATION } from 'rea... |
geonode/monitoring/frontend/src/components/cels/throughput/index.js | mcldev/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts';
import styles from './styles';
class Throughput extends React.Component {
static propTypes = {
data: PropTypes.array.isRequired,
}
render() {
let tota... |
examples/todo/js/components/TodoList.js | SBUtltmedia/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... |
src/LinearProgress/LinearProgress.spec.js | ArcanisCz/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import LinearProgress from './LinearProgress';
import getMuiTheme from '../styles/getMuiTheme';
describe('<LinearProgress />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => ... |
examples/snapshot/Clock.react.js | ide/jest | // Copyright 2004-present Facebook. All Rights Reserved.
import React from 'react';
export default class Clock extends React.Component {
constructor() {
super();
this.state = {seconds: Date.now() / 1000};
}
componentDidMount() {
this.timerID = setInterval(() => this.tick(), 1000);
}
component... |
src/components/Chat/LogMessage.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
import pure from 'recompose/pure';
const LogMessage = ({ text }) => (
<div className="ChatMessage ChatMessage--log">
<div className="ChatMessage-content">
<span className="ChatMessage-text">{text}</span>
</div>
</div>
);
LogMessage.propT... |
src/components/ReactEmoji.js | yatharthk/react-emoj | import React from 'react'
import Emoji from '../emoji/emoji'
class ReactEmoji extends React.Component {
constructor(props) {
super(props)
const { emoji, children } = this.props
// validate props
if (!children && !(Array.isArray(emoji) && emoji.every(e => typeof e === 'string'))) {
throw new Er... |
src/index.js | sarahmizzi/ReactJS-TasksBoard | import 'babel-polyfill';
import React from 'react';
import { Route, IndexRoute, browserHistory, Router } from 'react-router';
import { render } from 'react-dom';
import Firebase from 'firebase';
import Login from './views/login';
import Layout from './views/layout';
import Board from './views/board';
import { CONFIG... |
lib/svg-icons/communication/comment.js | ProductiveMobile/material-ui | 'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var CommunicationComment = React.createClass({
displayName: 'CommunicationComment',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: "M21.99 4c0-... |
webpack/components/Search/index.js | johnpmitsch/katello | /* eslint-disable import/no-extraneous-dependencies */
import React, { Component } from 'react';
import { ControlLabel } from 'react-bootstrap';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import TypeAhead from '../../move_to_pf/TypeAhead/TypeAhead';
import api from '... |
src/components/BasketTile.js | ValentinAlexandrovGeorgiev/iStore | import React, { Component } from 'react';
import { Link } from 'react-router';
import defaultImage from '../../public/img/default_product.jpg';
import '../css/basket.css';
import RemoveProduct from './RemoveProduct'
class BasketTile extends Component {
constructor(props) {
super(props);
this.stat... |
src/main.js | CanopyTax/sofe-inspector | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.js';
import Notification from './Notification.js';
class Root extends React.Component {
constructor(props) {
super(props);
this.state = {
appDisplayed: false
}
}
render() {
// Doesn't hurt to show the notification even ... |
storybook/stories/loading_indicator.story.js | imomix/mastodon | import React from 'react';
import { IntlProvider } from 'react-intl';
import { storiesOf } from '@storybook/react';
import en from 'mastodon/locales/en.json';
import LoadingIndicator from 'mastodon/components/loading_indicator';
storiesOf('LoadingIndicator', module)
.add('default state', () => (
<IntlProvider lo... |
src/containers/Body.js | dpca/play-gb | import React, { Component, PropTypes } from 'react';
import MessageList from '../components/MessageList';
import MessageInput from '../components/MessageInput';
import Gameboy from '../components/Gameboy';
import SetUser from '../components/SetUser';
class Body extends Component {
render() {
const { messages, us... |
ajax/libs/flocks.js/0.14.4/flocks.js | TerryMooreII/cdnjs | /** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/**
* The Flocks library module.
*
* @module Flocks
* @main Flocks
*/
// if it's in a <script> it's defined already
// otherwise assume commonjs
if (typeof React === 'undefined') {
var React = require('react');
}
// wrap ... |
src/client/src/routes/Home/components/HomeView.js | aquibm/Research-Engine | import React from 'react'
//import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div className="container-fluid">
<div className="row">
<div className="col-md-8">
<div className="card">
<div className="header">
... |
src/components/UpdatesSection.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import withIntl from '../lib/withIntl';
import { FormattedMessage } from 'react-intl';
import SectionTitle from './SectionTitle';
import UpdatesWithData from './UpdatesWithData';
class UpdatesSection extends React.Component {
static propTypes = {
col... |
packages/material-ui-icons/src/HttpTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M24 24H0V0h24v24z" opacity=".87" /><path d="M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v... |
docs/src/routes/error/ErrorPage.js | bmatthews/haze-lea | /**
* 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 PropTypes from 'prop-... |
test/integration/basic/pages/dynamic/bundle.js | arunoda/next.js | import React from 'react'
import dynamic from 'next/dynamic'
import Router from 'next/router'
import PropTypes from 'prop-types'
const HelloBundle = dynamic({
modules: (props) => {
const components = {
HelloContext: import('../../components/hello-context'),
Hello1: import('../../components/hello1')
... |
ajax/libs/muicss/0.6.4/react/mui-react.js | sufuf3/cdnjs | (function (global) {
var babelHelpers = global.babelHelpers = {};
babelHelpers.classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
babelHelpers.createClass = function () {
function define... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-11/FriendProfile.js | Brandon-J-Campbell/codemash | import React from 'react';
import Card from './Card';
import './FriendProfile.css'
export default function FriendProfile({ name, image }) {
return (
<Card>
<div className="friend-profile">
<img src={image} alt={name} />
<h3>{name}</h3>
</div>
</Card>
);
}
|
js/Content.js | tomkp/mdma | import React from 'react';
import {Layout, Flex, Fixed} from 'react-layout-pane';
import SplitPane from 'react-split-pane';
import Calendar from 'react-calendar-pane';
import TreePane from 'react-tree-pane';
let DemoTree = React.createClass({
getInitialState() {
return {
name: 'Default',
... |
src/svg-icons/editor/insert-invitation.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertInvitation = (props) => (
<SvgIcon {...props}>
<path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/>
... |
app/javascript/mastodon/components/domain.js | danhunsaker/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
const messages = defineMessages({
unblockDomain: { id: 'account.unblock_domain', default... |
app/javascript/flavours/glitch/components/inline_account.js | im-in-space/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { makeGetAccount } from 'flavours/glitch/selectors';
import Avatar from 'flavours/glitch/components/avatar';
const makeMapStateToProps = () => {
const getAccount = makeGetAccount();
... |
src/index.js | cintiamh/ReduxPortfolio | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import portfolioApp from './reducers';
import App from './components/App';
let store = createStore(portfolioApp);
render(
<Provider store={store}>
<App />
</Provi... |
ajax/libs/yasr/2.5.2/yasr.bundled.min.js | luhad/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
src/admin/components/custom_email_form.js | foundersandcoders/sail-back | import React from 'react'
const end_membership_email_footer = require('app/end_membership_email_footer')
export default (email, submit) =>
<div className='custom-email-container'>
<h3>Please include the message in the text box as the last line of your email</h3>
<form onSubmit={submit}>
<input type='t... |
ajax/libs/react/0.8.0/JSXTransformer.js | OnsenUI/cdnjs | /**
* JSXTransformer v0.8.0
*/
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.JSXTransformer=e():"undefined"!=typeof global?global.JSXTransformer=e():"undefined"!=typeof self&&(self.JSXTransformer=e())}(function(){var define,m... |
src/index.js | SRosenshein/react-auth-client | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import reduxThunk from 'redux-thunk';
import { AUTH_USER } from './actions/types';
import ... |
docs/components/common/Tile.js | casesandberg/reactcss | 'use strict'
import React from 'react'
import reactCSS from 'reactcss'
export const Tile = (props) => {
const styles = reactCSS({
'default': {
primary: {
display: 'flex',
width: '100%',
},
sidebar: {
minWidth: '56px',
maxWidth: '56px',
flexBasis: '56',
... |
files/yasgui/1.1.8/yasgui.bundled.min.js | korusdipl/jsdelivr | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
vendor/htmlburger/carbon-fields/packages/core/fields/complex/inserter.js | xlthlx/wp-inci | /**
* External dependencies.
*/
import onClickOutside from 'react-onclickoutside';
import { Component } from '@wordpress/element';
class ComplexInserter extends Component {
/**
* Local state.
*
* @type {Object}
*/
state = {
menuVisible: false
};
/**
* Handles the click outside the main element.
*
... |
frontend/src/Pages.js | BrechtBa/homecon | import React from 'react';
import { useParams } from "react-router-dom";
import { createStyles, Theme, makeStyles } from '@material-ui/core/styles';
import {PageHeader, PageSection} from './PageLayout.js'
import {HomeconSwitch, HomeconMultiSwitch} from './widgets/Switch.js';
import {HomeconDimmer} from './widgets/Di... |
Example/HomeScreen.js | ebias/react-native-photo-browser | import React, { Component } from 'react';
import {
ActionSheetIOS,
CameraRoll,
ScrollView,
Platform,
TouchableOpacity,
Text,
View,
StyleSheet,
} from 'react-native';
const EXAMPLES = [
{
title: 'Single photo',
description: 'with caption, no grid button',
enableGrid: false,
alwaysDispl... |
__tests__/index.ios.js | idperez/mytopia | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/components/environments/ExampleEnvironment.js | yejodido/atomic-components | import React, { Component } from 'react';
import ExampleEcosystem from '../ecosystems/ExampleEcosystem';
import styles from './styles/ExampleEnvironment.scss';
export default class ExampleEnvironment extends Component {
render() {
return (
<div className={styles.flexContainer}>
<ExampleEcosystem />... |
packages/material-ui-icons/src/LocationDisabled.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let LocationDisabled = props =>
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2.... |
packages/react-error-overlay/src/components/ErrorOverlay.js | in2core/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, { Component } from 'react';
import { black } from '../styles';
import type { Node as ReactNode } from 'react'... |
examples/shopping-cart/test/components/Cart.spec.js | joaomilho/redux | import expect from 'expect'
import React from 'react'
import { shallow } from 'enzyme'
import Cart from '../../components/Cart'
import Product from '../../components/Product'
function setup(total, products = []) {
const actions = {
onCheckoutClicked: expect.createSpy()
}
const component = shallow(
<Cart... |
packages/material-ui-icons/src/SignalCellularConnectedNoInternet4Bar.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SignalCellularConnectedNoInternet4Bar = props =>
<SvgIcon {...props}>
<path d="M20 18h2v-8h-2v8zm0 4h2v-2h-2v2zM2 22h16V8h4V2L2 22z" />
</SvgIcon>;
SignalCellularConnectedNoInternet4Bar = pure(SignalCe... |
js/src/views/Application/TabBar/tabBar.spec.js | BSDStudios/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
node_modules/react-bootstrap/es/Navbar.js | rblin081/drafting-client | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
ajax/libs/react-cookie/0.2.5/react-cookie.js | wil93/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/index.js | Nevraeka/cfx-prerender | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack t... |
src/components/MyiWorlds/Header/Header.js | DaveyEdwards/myiworlds | /**
* 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 PropTypes from 'prop-... |
examples/react/src/interaction/Hover.stories.js | oblador/loki | import React from 'react';
import './hover.css';
export default {
title: 'Hover',
};
export const Hover = () => <div className="hover">I should be blue</div>;
Hover.storyName = 'default';
|
components/base/button.js | ccheever/expo-docs | import React from 'react'
// NOTE (Abi): These styles are copied from www
class Button extends React.Component {
render() {
return (
<span
onClick={this.props.onClick}
style={{
backgroundColor: 'rgb(5, 110, 207)',
color: 'rgb(255, 255, 255)',
height: '30px',
... |
app/assets/bb12f321/gridview/jquery.yiigridview.js | newscloud/ocean | /**
* jQuery Yii GridView plugin file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
(function ($) {
var selectCheckedRows, methods,
gridSettings = [];
/**
* 1. Se... |
client/app/scripts/components/matched-results.js | kinvolk/scope | import React from 'react';
import MatchedText from './matched-text';
const SHOW_ROW_COUNT = 2;
const MAX_MATCH_LENGTH = 24;
const Match = match => (
<div className="matched-results-match" key={match.label}>
<div className="matched-results-match-wrapper">
<span className="matched-results-match-label">
... |
packages/material-ui-icons/src/PausePresentationRounded.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 15c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v12zM10 8c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1s1-.4... |
src/components/LoginComponent.js | kiyoshitaro/Instagram- |
import React from 'react';
import NavbarComponent from './NavbarComponent'
import {Redirect} from 'react-router'
import axios from 'axios';
import initialState from '../reducers/initialState';
class LoginComponent extends React.Component {
constructor(){
super();
this.state = {
email : "frontend@12"... |
Realization/frontend/czechidm-core/src/components/advanced/ModalProgressBar/ModalProgressBar.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
//
import * as Basic from '../../basic';
import ProgressBar from '../ProgressBar/ProgressBar';
/**
* Progressbar in modal window.
*
* @author Radek Tomiška
*/
export default function ModalProgressBar(props) {
const { rendered, showLoading, show, coun... |
grunt/config/compress.js | studiowangfei/react | 'use strict';
var grunt = require('grunt');
var version = grunt.config.data.pkg.version;
module.exports = {
starter: {
options: {
archive: './build/react-' + version + '.zip',
},
files: [
{cwd: './build/starter', src: ['**'], dest: 'react-' + version + '/'},
],
},
};
|
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... |
packages/material-ui-icons/src/SentimentSatisfiedTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm3.5 4c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm-7 0c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 ... |
ajax/libs/yasgui/0.0.4/yasgui.bundled.min.js | HealthIndicators/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
src/saveFormation.js | yipjiajie/TopBloc | import React from 'react';
var SaveFormation = React.createClass({
render: function() {
return (
<div className="save">
<button>
Save
</button>
</div>
);
}
});
export default SaveFormation;
|
app/components/H3/index.js | huahuaxiong/console | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
node_modules/react-native/Libraries/Components/Keyboard/Keyboard.js | odapplications/WebView-with-Lower-Tab-Menu | /**
* 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... |
src/components/NavItem.js | houkah26/reddit-clone | import React from 'react';
import { NavLink } from 'react-router-dom';
const NavItem = ({ sub, toggleCollapse }) => (
<button onClick={() => {
toggleCollapse();
}}>
<NavLink
to={sub.url}
style={{display: 'block', height: '100%', textDecoration: 'none'}}
>
{sub.display_name}
</Na... |
src/Components/MoreToolTip/MoreToolTip.js | balaabhinav/htm-niseko | import React from 'react';
import { Tooltip } from 'reactstrap';
const MoreToolTip = props => (
<Tooltip placement="top" isOpen={this.props.tooltipOpen} target={"more"+this.props.listing.id.toString()} toggle={this.props.toggleTooltip}>
{
!this.props.toggleMore? "More" : "Hide"
}
</... |
src/example.js | economist-components/component-teaser | import React from 'react';
import Teaser from './';
import TeaserFlyTitle from './teaser-flytitle';
import TeaserImage from './teaser-image';
import TeaserLink from './teaser-link';
import TeaserPublishDate from './teaser-publish-date';
import TeaserSection from './teaser-section';
import TeaserText from './teaser-text... |
ajax/libs/6to5/1.12.25/browser-polyfill.js | tresni/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... |
templates/re-dux/src/components/TopLevelComponent.js | react-everywhere/re-start | import React, { Component } from 'react';
import {
Button,
StyleSheet,
Text,
View
} from 'react-native';
// This is a dumb component that is common for native and web
export default class TopLevelComponent extends Component {
constructor(props, context) {
super(props, context);
thi... |
source/javascripts/index.js | senthilporunan/packman | import React from 'react'
import { render } from 'react-dom'
import Root from './containers/Root.dev'
import configureStore from './store/configureStore'
const store = configureStore()
render(
<Root store={store} />,
document.getElementById('root')
)
|
packages/material-ui-icons/src/ScreenRotation.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ScreenRotation = props =>
<SvgIcon {...props}>
<path d="M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81 1.33-1.32zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c-.59... |
ajax/libs/rxjs/2.2.10/rx.lite.compat.js | lxsli/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,
'u... |
src/components/BlockContainer/index.js | iris-dni/iris-frontend | import React from 'react';
import styles from './block-container.scss';
const BlockContainer = ({ children }) => (
<div className={styles.root}>
{children}
</div>
);
export default BlockContainer;
|
src/routes/Routes.js | fus-marcom/resource-center | import '../styles/App.css'
import '../styles/materialize-grid.css'
import React from 'react'
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import injectTapEventPlugin from 'react-tap-event-plugin'
/* Material-UI */
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import getMuiTheme ... |
ui/src/core/components/FooterItem.js | Baransu/erlangpl | // @flow
import React from 'react';
import { OverlayTrigger, Popover } from 'react-bootstrap';
type Props = {
title: string,
id: string,
item: ?React$Element<any>,
popover: ?React$Element<any>
};
const FooterItem = ({ title, item, popover, id }: Props) => {
return (
<div className="Footer-item">
... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js | mailtoharshit/Reactor | /**
* 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.
*/
import Rea... |
src/blocks/long_description.js | govau/service-manual | import PropTypes from 'prop-types';
import React from 'react';
import AUaccordion from '../../scripts/uikit/accordion.js'
/**
* The LongDescription component
*/
const LongDescription = ( page ) => {
return (
<div className="longdescription__accordion">
<AUaccordion closed={ true } header="Full text descriptio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.