path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
frontend/src/containers/AppHeader/AppHeader.js | webrecorder/webrecorder | import React from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import AppHeaderUI from 'components/siteComponents/AppHeaderUI';
const mapStateToProps = ({ app }) => {
return {
authUser: app.getIn(['auth', 'user']),
is404: app.getIn(['controls', 'is404'])
};
}... |
app/routes.js | Neta-Alon/First-Express-React.js-Server | import React from 'react';
import {Route} from 'react-router';
import App from './components/App';
import Home from './components/Home';
export default (
<Route component={App}>
<Route path='/' component={Home} />
</Route>
); |
node_modules/react-navigation/src/views/Header.js | joan17cast/Enigma | /* @flow */
'no babel-plugin-flow-react-proptypes';
import React from 'react';
import { Animated, Platform, StyleSheet, View } from 'react-native';
import HeaderTitle from './HeaderTitle';
import HeaderBackButton from './HeaderBackButton';
import HeaderStyleInterpolator from './HeaderStyleInterpolator';
import typ... |
src/components/Badge/Badge.js | wundery/wundery-ui-react | import React from 'react';
import classnames from 'classnames';
import ReactTooltip from 'react-tooltip';
import { randomString } from '../../utils';
import { spacingStyles } from '../Spacing/utils';
import { Icon } from '../Icon';
import { Spinner } from '../Spinner';
function Badge(props) {
const {
children,
... |
index.android.js | rldona/react-native-tab-view-seed | import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import App from './src/app.js';
AppRegistry.registerComponent('ReactNativeTabViewSeed', () => App);
|
src/components/modalspace/ModalSpace.js | Spriithy/tmc2017 | import React, { Component } from 'react';
import './style.css';
export default class ModalSpace extends Component {
render = () => {
return (
<div className="ModalSpace">
{this.props.nots}
</div>
);
}
} |
wp-content/plugins/wordpress-seo/js/src/kb-search/wp-seo-kb-search.js | helenmvas/wiserair | import React from 'react';
import AlgoliaSearch from 'algoliasearch';
class AlgoliaSearcher extends React.Component {
/**
* AlgoliaSearcher constructor.
*
* @constructor
* @param {object} props Properties of the AlgoliaSearcher component.
*/
constructor( props ) {
super();
this.state = {
searchStri... |
ajax/libs/zeroclipboard/2.0.0-beta.7/ZeroClipboard.js | drewfreyling/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.0.0-beta.7
*/
(function(window, undefined) {
"use s... |
example/examples/PolygonCreator.js | wannyk/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView, {
MAP_TYPES,
Polygon,
ProviderPropType,
} from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE ... |
src/routes.js | briceth/reactBlog | // import React, { Component } from 'react';
// import { Router, Route, IndexRoute, browserHistory } from 'react-router'
// import { Provider } from 'react-redux'
// import App from './components/app';
// import PostsIndex from './components/postsIndex';
// import PostNew from './components/postNew';
//
//
// //import ... |
src/containers/NotFound/NotFound.js | AndriyShepitsen/chicago-business-redux | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
src/components/project/test.js | ianmcgregor/mcgregor.codes | import React from 'react';
import {render} from 'enzyme';
import {MemoryRouter} from 'react-router-dom';
import {LinkStub} from '../../../test/helpers';
import Project from './';
const props = {
type: 'ContentfulProject',
__typename: 'ContentfulProject',
id: 'c2OLhcgLiesoUqs48yMa0co',
title: 'Google — ... |
src/components/tags.js | nbzwt/zyzPress | 'use strict';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import request from '../utils/http';
import { browserHistory, Router, Route, IndexRoute, Link } from 'react-router'
class Tags extends Component {
constructor() {
super();
this.state = {
tags: [],
}
reque... |
examples/dynamic-segments/app.js | cpojer/react-router | var React = require('react');
var Router = require('react-router');
var { Route, Redirect, RouteHandler, Link } = Router;
var App = React.createClass({
render () {
return (
<div>
<ul>
<li><Link to="user" params={{userId: "123"}}>Bob</Link></li>
<li><Link to="user" params={{userI... |
fields/types/cloudinaryimage/CloudinaryImageFilter.js | codevlabs/keystone | import classNames from 'classnames';
import React from 'react';
import { SegmentedControl } from 'elemental';
var PasswordFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || true,
};
},
toggleChecked (checked) {
this.setState({
checked: checked,
});
},
renderT... |
nextApp/hoc/global.js | liximomo/toolpages | import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import { createTheme } from '../theme/normal';
export default function injectGlobal(WrappedComponent, getInitProps, withRef = false) {
return class GlobalComponent ... |
packages/material-ui/src/internal/svg-icons/CheckBox.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './createSvgIcon';
/**
* @ignore - internal component.
*/
export default createSvgIcon(
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" />,
'CheckBox',
);
|
app/components/StaticMap.js | mapbox/osm-comments-frontend | import React from 'react';
const StaticMap = React.createClass({
render: function() {
var config = this.props.config;
var lat = this.props.lat;
var lng = this.props.lng;
var zoom = this.props.zoom;
var mapURL = config.STATIC_MAPS_BASE + lng + "," + lat + ',' + zoom + '/500x... |
packages/material-ui-icons/src/Battery90.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h10V5.33z" /><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74... |
zt/bnsd/js/jquery-1.7.1.min.js | linmingling/demo | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
modules/__tests__/pushState-test.js | batmanimal/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import resetHash from './resetHash'
import execSteps from './execSteps'
import Router from '../Router'
import Route from '../Route'
describe('pushState', function () {
beforeEach(resetHash)
let node
beforeEach(function () {
node = d... |
src/svg-icons/maps/local-drink.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalDrink = (props) => (
<SvgIcon {...props}>
<path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.... |
src/components/GithubButton/GithubButton.js | hank7444/react-redux-universal-hot-example | import React from 'react';
const GithubButton = (props) => {
const {user, repo, type, width, height, count, large} = props;
let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`;
if (count) src += '&count=true';
if (large) src += '&size=large';
return (
<iframe
src=... |
assets/search-employee-view/components/MessageComponent.js | janta-devs/nyumbani | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Actions from '../../DataStore/Actions';
import MessageTable from './MessageTable';
function mapStateToProps( state ){
return {
Messages: state.Messages,
SentMessages: state.Sen... |
src/components/AppShopCart.js | wqzwh/react-phone | require('styles/AppShopCart.css');
import React from 'react';
import {Link} from 'react-router';
class AppShopCart extends React.Component {
render() {
return (
<div className="shopCart">
<nav className="nav">
<div className="nav-container">
<Link to="/"><span className="nav-back"></span></Link>
... |
es2015/controls/button/button._test_.js | wearekuva/oui | import test from 'ava'
import React from 'react'
import {shallow} from 'enzyme'
import sinon from 'sinon';
import Button from './button'
test('renders correct label', t => {
const label = 'A label'
const wrapper = shallow(<Button label={label}/>)
t.is( wrapper.text(), label )
});
test('click event fires',... |
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js | guiquanz/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import classNames from 'classnames';
import DialogStore from 'stores/DialogStore';
export default React.createClass({
mixins: [PureRenderMixin],
getInitialState() {
return {
typing: null,
show: false
};
},
compon... |
public/js/jquery.min.js | KouKs/Trinec | /*! 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/components/Github/Feed/DetailPush.js | jseminck/react-native-github-feed | import React from 'react';
import { Text, View, Image, ScrollView, ListView } from 'react-native';
import moment from 'moment';
export default class DetailComment extends React.Component {
static propTypes = {
eventDetail: React.PropTypes.object.isRequired
}
constructor(props) {
super(prop... |
examples/complex/src/components/repo/data.js | rocjs/roc-package-web-app-react | import React, { Component } from 'react';
import styles from './style.css';
export default class RepoData extends Component {
static propTypes = {
city: React.PropTypes.object,
list: React.PropTypes.array
};
render() {
const repos = [];
Object.keys(this.props).forEach((re... |
react-js/books/src/containers/book_list.js | vanyaland/react-demos | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { selectBook } from '../actions/index';
import { bindActionCreators } from 'redux';
class BookList extends Component {
renderList() {
return this.props.books.map((book) => {
return (
<li
key={book.ti... |
app/containers/App/index.js | ddobby94/szakdoge_admin | import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import styled from 'styled-components';
import {
setUserToken,
getUserData,
getCompanyData,
setLocationHelper,
} from './actions';
import {
getToken,
getUser,
makeSelectLoading,
getWorkers,
getCars,
... |
ajax/libs/rxjs/2.3.2/rx.all.compat.js | simudream/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/components/pages/tasks/TaskListItem.js | juandjara/open-crono | import React, { Component } from 'react';
import Icon from 'react-toolbox/lib/font_icon/FontIcon'
import IconButton from 'react-toolbox/lib/button/IconButton'
import styled from 'styled-components'
import {Link} from 'react-router'
import Initials from './Initials'
const SpaceBetween = styled.div`
display: flex;
j... |
packages/material-ui-icons/src/ViewCarousel.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>
, 'ViewCarousel');
|
gulpfile.babel.js | Dangku/black-screen | //TODO: Use gulp 4.
import gulp from "gulp";
import gulpLoadPlugins from "gulp-load-plugins";
import runSequence from "run-sequence";
const $ = gulpLoadPlugins();
let watching = false;
gulp.on("stop", () => {
if (!watching) {
process.nextTick(() => process.exit(0));
}
});
function onError(err) {
... |
ajax/libs/preact-compat/2.0.0/preact-compat.js | wout/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('proptypes'), require('preact')) :
typeof define === 'function' && define.amd ? define(['proptypes', 'preact'], factory) :
(global.preactCompat = factory(global.PropTypes,global.preact));
}(t... |
app/webroot/js/devoops/jquery/jquery.min.js | cyberiaVirtual/acl_management | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
projects/ILAFB-admin-fe/src/pages/user/list.js | AidanDai/graduation-design | import 'react-hot-loader/patch'
import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import Home from './list.page'
let ele = document.querySelector('#content')
ReactDOM.render(
<AppContainer>
<Home/>
</AppContainer>,
ele
)
if (module.hot) {
module.hot.acc... |
src/__tests__/Offcanvas.spec.js | reactstrap/reactstrap | /* eslint-disable jsx-a11y/no-noninteractive-tabindex */
import React from 'react';
import { mount, shallow } from 'enzyme';
import { Offcanvas, OffcanvasBody, OffcanvasHeader, OffcanvasFooter, Button } from '../';
import { keyCodes } from '../utils';
describe('Offcanvas', () => {
let isOpen;
let toggle;
before... |
front/src/Views/Pages/Events/index.js | enow-dev/enow | import React from 'react';
import { withStyles } from 'material-ui/styles';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Switch, Route, withRouter } from 'react-router-dom';
import Card, { CardHeader } from 'material-ui/Card';
import Grid from 'material-ui/Grid';
import { ... |
actor-apps/app-web/src/app/components/modals/AddContact.react.js | liuzwei/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import addons from 'react/addons';
import ReactMixin from 'react-mixin';
import { Styles, TextField, FlatButton } from 'material-ui';
import AddContactStore from 'stores/AddContactStore';
import AddContactActionCreators from 'actions... |
examples/async/index.js | kaezarrex/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementByI... |
fixtures/react_native_windows_e2e_app/react-navigation-stub.js | callstack-io/haul | // createAppContainer, createBottomTabNavigator, NavigationActions
import React from 'react';
import { View, TouchableOpacity, Text } from 'react-native';
export const NavigationActions = {};
export function createBottomTabNavigator(config, options) {
class BottomTabNavigator extends React.Component {
sta... |
examples/cra-kitchen-sink/src/stories/button.stories.js | storybooks/react-storybook | /* eslint-disable react/destructuring-assignment */
import React from 'react';
import { action } from '@storybook/addon-actions';
import { withInfo } from '@storybook/addon-info';
import { Button } from '@storybook/react/demo';
import Container from '../components/Container';
const InfoButton = () => (
<span
st... |
packages/material-ui/src/Table/TablePaginationActions.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft';
import KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight';
import withTheme from '../styles/withTheme';
import IconButton from '../IconButton';
/**
* @ignore - intern... |
client/app/scripts/charts/node-shape-heptagon.js | paulbellamy/scope | import React from 'react';
import classNames from 'classnames';
import { nodeShapePolygon } from '../utils/node-shape-utils';
import {
getMetricValue,
getMetricColor,
getClipPathDefinition,
renderMetricValue,
} from '../utils/metric-utils';
import {
NODE_SHAPE_HIGHLIGHT_RADIUS,
NODE_SHAPE_BORDER_RADIUS,
... |
packages/material-ui-icons/src/PermIdentitySharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 7c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zm6 5H6v-.99c.2-.72 3.3-2.01 6-2.01s5.8 1.29... |
Realization/frontend/czechidm-core/src/components/basic/LabelWrapper/LabelWrapper.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Joi from 'joi';
//
import AbstractFormComponent from '../AbstractFormComponent/AbstractFormComponent';
import Tooltip from '../Tooltip/Tooltip';
/**
* Form label decorator.
*
* @author Vít Švanda
* @author Ra... |
ajax/libs/core-js/1.2.6/library.js | jdh8/cdnjs | /**
* core-js 1.2.6
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
src/parser/priest/discipline/CHANGELOG.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Oratio, Reglitch, Zerotorescue, niseko, Khadaj, blazyb, Adoraci, Tiphess } from 'CONTRIBUTORS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import ItemLink from 'common/ItemLink';
import ITEMS from 'common/ITEMS';
import { change, date } from 'commo... |
src/Parts/TablePart/index.js | sqhtiamo/zaro | import React, { Component } from 'react';
import { PropTypes } from 'prop-types';
import styles from './style';
import authFunc from '../../utils/auth';
import Loading from '../../Components/Loading';
import {
Table,
TableRow,
TableRowColumn,
TableHeaderRow,
Pagination,
Container,
Button
} from '../../... |
test/PaginationSpec.js | leozdgao/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Pagination from '../src/Pagination';
describe('Pagination', function () {
it('Should have class', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Pagination>Item content</Pagination>
);
assert.... |
ajax/libs/onsen/2.0.0-alpha.13/js/angular-onsenui.min.js | BitsyCode/cdnjs | /*! angular-onsenui.js for onsenui - v2.0.0-alpha.13 - 2015-11-10 */
!function(module){try{module=angular.module("templates-main")}catch(err){module=angular.module("templates-main",[])}module.run(["$templateCache",function($templateCache){"use strict";$templateCache.put("templates/sliding_menu.tpl",'<div class="onsen-s... |
app/components/Toggle/index.js | 54vanya/ru-for-you-front | /**
*
* 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/components/Dropdown.js | bradparks/elemental | var React = require('react/addons');
var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;
var blacklist = require('blacklist');
var classNames = require('classnames');
var Button = require('./Button');
module.exports = React.createClass({
displayName: 'Dropdown',
propTypes: {
alignRight: React.PropTypes... |
src/Input.js | pieter-lazzaro/react-bootstrap | import React from 'react';
import InputBase from './InputBase';
import * as FormControls from './FormControls';
import deprecationWarning from './utils/deprecationWarning';
class Input extends InputBase {
render() {
if (this.props.type === 'static') {
deprecationWarning('Input type=static', 'StaticText');
... |
src/components/NotificationSettings/NotificationSettings.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, FormattedMessage } from 'react-intl';
import { isPushAvailable } from '../../core/helpers';
import FormValidation from '../FormValidation';
import Form from '../Form';
import FormField from '../FormField';
import Label from '../Labe... |
ajax/libs/jquery/1.4.0/jquery.min.js | jtrussell/cdnjs | /*!
* jQuery JavaScript Library v1.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://docs.jquery.com/License
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL License... |
app/javascript/mastodon/features/bookmarked_statuses/index.js | dunn/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchBookmarkedStatuses, expandBookmarkedStatuses } from '../../actions/bookmarks';
import Column from '../ui/components/column';
import ColumnHeader... |
The-Vast-World-of-Vue.js-0.12/11.Props/vue.js | luisedware/Learning-Vue.js | /*!
* Vue.js v1.0.16
* (c) 2016 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vue = factory());
}(this, function () {... |
bin/target/work/plugins/jquery-1.11.1/web-app/js/jquery/jquery-1.11.1.js | rararawson/Grails-DMS-W-OverWrite | /*!
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/
(function( global, factory ) {
if ... |
examples/huge-apps/routes/Messages/components/Messages.js | nauzethc/react-router | import React from 'react';
class Messages extends React.Component {
render () {
return (
<div>
<h2>Messages</h2>
</div>
);
}
}
export default Messages;
|
src/app/core/atoms/icon/icons/wizard.js | blowsys/reservo | import React from 'react'; const Wizard = (props) => <svg {...props} viewBox="0 0 48 48"><g><path d="M23.318959,10.119007L25.422984,11.421012 27.728,10.420018 27.126981,12.82403 28.830001,14.728025 26.324971,14.928038 25.023017,17.132021 24.020993,14.828032 21.515962,14.327024 23.419972,12.724023z M17.608941,8.9170095C... |
docs/src/pages/demos/expansion-panels/CustomizedExpansionPanel.js | Kagami/material-ui | import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import MuiExpansionPanel from '@material-ui/core/ExpansionPanel';
import MuiExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';
import MuiExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails';
import Typog... |
node_modules/material-ui/svg-icons/image/remove-red-eye.js | knguyen1/kylecodes | '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... |
ajax/libs/rxjs/2.3.11/rx.js | cdnjs/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... |
packages/mineral-ui-icons/src/IconStayCurrentPortrait.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconStayCurrentPortrait(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {.... |
src/icons/ChangeHistoryIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class ChangeHistoryIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 15.55L36.78 36H11.22L24 15.55M24 8L4 40h40L24 8z"/></svg>;}
}; |
test/FormSpec.js | apkiernan/react-bootstrap | import React from 'react';
import $ from 'teaspoon';
import Form from '../src/Form';
import FormGroup from '../src/FormGroup';
describe('<Form>', () => {
it('should support horizontal', () => {
$(
<Form horizontal className="my-form">
<FormGroup />
</Form>
)
.shallowRender()
... |
src/services/BaseService.js | stormpath/stormpath-sdk-react | import React from 'react';
import utils from '../utils';
const validHttpStatuses = [200, 201, 202, 204]
var jsonContentEncoder = {
contentType: 'application/json; charset=utf-8',
encode: function (body) {
return JSON.stringify(body);
}
};
var formContentEncoder = {
contentType: 'application/x-www-form-ur... |
information/blendle-frontend-react-source/app/modules/premiumSignup/components/ResetPassword/index.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import ResetPasswordView from 'components/login/ResetPassword';
import CSS from './styles.scss';
const ResetPassword = (props) => {
const { route, onClickLogin } = props;
return (
<div className={CSS.resetPassword}>
<ResetPasswordView showBa... |
client/src/javascript/components/icons/FolderOpenSolid.js | stephdewit/flood | import React from 'react';
import BaseIcon from './BaseIcon';
export default class FolderOpenSolid extends BaseIcon {
render() {
return (
<svg className={`icon icon--folder ${this.props.className}`} viewBox={this.getViewBox()}>
<path d="M58.61,33.58c0-1.3-1.47-1.62-2.51-1.62H21.84a11.36,11.36,0,0,... |
client/src/components/FormWiget/KeywordTypeSelect.js | Nonsoft/crdweb | import React from 'react';
import PropTypes from 'prop-types';
import { Form, Select } from 'antd';
const Option = Select.Option;
const FormItem = Form.Item;
const KeywordTypeSelect = (props) => (
<FormItem label={props.label}>
{props.getFieldDecorator(props.name, {
initialValue: "0",
})(
<Select... |
src/parser/warlock/affliction/modules/features/DotUptimes/CorruptionUptime.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import UptimeBar from ... |
examples/docs/src/Containers/Cards.js | react-material-design/react-material-design | import React from 'react';
import _ from 'lodash';
import jsxToString from 'jsx-to-string';
import Playground from 'component-playground';
import { Button, Card, CardActions, CardMedia, CardMediaItem, CardSupportingContent, CardTitle } from 'react-material-design';
import componentDoc from '../docs/componentDoc.json';
... |
ajax/libs/alloyeditor/2.11.15/alloy-editor-no-ckeditor.min.js | cdnjs/cdnjs | !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"u... |
src/components/Home.js | odarino/odarino.github.io | import React, { Component } from 'react';
import { withRouter } from 'react-router';
class Home extends Component {
componentDidMount() {
if(this.props.location.pathname.length === 1) {
this.props.history.push('/home')
}
}
render() {
return (
<div className=... |
ajax/libs/angular.js/0.10.1/angular-scenario.js | juliusrickert/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
apps/marketplace/pages/BriefOutcomeChoicePage.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import BriefOutcomeChoice from 'marketplace/components/BriefOutcomeChoice/BriefOutcomeChoice'
const BriefOutcomeChoicePage = () => (
<div className="row">
<div className="col-xs-12">
<BriefOutcomeChoice />
</div>
</div>
)
export default BriefOutcomeChoicePage
|
ajax/libs/yui/3.10.2/scrollview-base/scrollview-base.js | wormful/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/__tests__/Form.spec.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import { shallow } from 'enzyme';
import { Form } from '../';
describe('Form', () => {
it('should render with "form" tag', () => {
const wrapper = shallow(<Form>Yo!</Form>);
expect(wrapper.type()).toBe('form');
});
it('should render children', () => {
const wrapper = shal... |
src/Information.js | arunchaganty/briefly | import React, { Component } from 'react';
import { Panel, Button, Glyphicon } from 'react-bootstrap';
class InformationComponent extends Component {
render() {
let done = true;
let submitButton = (done) ? (
<Button bsSize="large" bsStyle="success"><Glyphicon glyph="ok" /> Submit</Button>
) : "";... |
blueocean-material-icons/src/js/components/svg-icons/navigation/check.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NavigationCheck = (props) => (
<SvgIcon {...props}>
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/>
</SvgIcon>
);
NavigationCheck.displayName = 'NavigationCheck';
NavigationCheck.muiName = 'SvgIcon';
export default NavigationC... |
ui/src/containers/Visualisations/TemplateStreamLearnerInteractionsByDateAndVerb/Viewer.js | LearningLocker/learninglocker | import React from 'react';
import PropTypes from 'prop-types';
import SourceResults from 'ui/containers/VisualiseResults/SourceResults';
import ColumnChartResults from 'ui/containers/VisualiseResults/ColumnChartResults';
/**
* @param {string} props.visualisationId
* @param {boolean} props.showSourceView
*/
const V... |
__tests__/index.ios.js | Manuelandro/Universal-Commerce | 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/routes/auth/components/Login.js | lf2941270/react-zhihu-daily | import React from 'react'
import PropTypes from 'prop-types'
import Header from 'components/Header'
export const Login = (props) => (
<div className="login-wrap">
<Header></Header>
</div>
)
Login.propTypes = {
}
export default Login
|
Examples/UIExplorer/AccessibilityAndroidExample.android.js | bistacos/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,
... |
app/app.js | Royten/fashgame | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
ajax/libs/rxjs/4.0.2/rx.lite.extras.js | iwdmb/cdnjs | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExports ... |
Realization/frontend/czechidm-core/src/components/basic/Fab/Fab.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
//
import Fab from '@material-ui/core/Fab';
import { makeStyles } from '@material-ui/core/styles';
//
import * as Utils from '../../../utils';
import AbstractComponent from '../AbstractComponent/AbstractComponent';
/**
* Fab decor... |
app/js/pages/Process_movie.js | arcsecw/zhaiyao | import React from 'react';
import {
Container,
Input,
FormGroup,
ButtonToolbar,
Tabs,
Button,
Item,
ModalTrigger,
AvgGrid,
Grid,
Form,
Article,
Panel,
Thumbnails,
Thumbnail,
Col,
Badge
} from 'amazeui-react';
//import Player from '../components/player/Player'
import ReactPlayer from '... |
client/components/Login.js | imraan7/Gaimed_Evenementen | import React from 'react'
import { connect } from 'react-redux'
import { Form, actions } from 'react-redux-form'
import { Link, browserHistory } from 'react-router'
import { Button, Input } from 'rebass'
import app from '../feathers'
class Login extends React.Component {
state = {
email : "",
pass... |
src/screens/Shared/ImagesViewer.js | alphasp/pxview | import React, { Component } from 'react';
import { StyleSheet, View, StatusBar } from 'react-native';
import { connect } from 'react-redux';
import PXHeader from '../../components/PXHeader';
import PXTabView from '../../components/PXTabView';
import PXPhotoView from '../../components/PXPhotoView';
import HeaderTextTitl... |
components/Spinner/styles.js | haaswill/open-wallet-app | import { StyleSheet } from 'react-native';
export default StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center'
}
});
|
ui/src/data_explorer/components/NoDataNodeError.js | brianbaker/chronograf | import React from 'react'
import ClusterError from 'shared/components/ClusterError'
import PanelHeading from 'shared/components/PanelHeading'
import PanelBody from 'shared/components/PanelBody'
import errorCopy from 'hson!shared/copy/errors.hson'
const NoDataNodeError = React.createClass({
render() {
return (
... |
client/src/javascript/components/modals/settings-modal/UITabSortableDetailColumns.js | stephdewit/flood | import React from 'react';
import SortableList from '../../general/SortableList';
class UITabSortableDetailColumns extends React.PureComponent {
getLockedIDs() {
if (this.props.torrentListViewSize === 'expanded') {
return ['name', 'eta', 'downloadRate', 'uploadRate'];
}
return [];
}
render()... |
l12_firebase/__tests__/index.android.js | kobkrit/learn-react-native | 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 />
);
});
|
node_modules/react-icons/md/border-vertical.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdBorderVertical = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m25 21.6v-3.2h3.4v3.2h-3.4z m0 13.4v-3.4h3.4v3.4h-3.4z m0-26.6v-3.4h3.4v3.4h-3.4z m6.6 6.6v-3.4h3.4v3.4h-3.4z m0-10h3.4v3.4h-3.4v-3.4z m0 16.6v-3.2h3.4v3.2h-3.... |
src/components/board/board.js | greaveselliott/rock-paper-scissors | import React from 'react'
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import './board.scss';
import HandSignalSelection from '../hand-signal-selection';
import Heading from '../heading';
import Button from '../button';
import { decide_winner, restart_game } from '../../logic/actions';
co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.