path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
admin/client/Signin/components/Alert.js | danielmahon/keystone | /**
* Renders an Alert. Pass either an isInvalid and invalidMessage prop, or set
* the signedOut prop to true to show the standard signed out message
*/
import React from 'react';
import { Alert } from '../../App/elemental';
const AlertView = function (props) {
if (props.isInvalid) {
return <Alert key="error" c... |
ajax/libs/6to5/3.6.0/browser.js | rteasdale/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
src/routes.js | ThatCheck/ReactProjectRaspberrySchool | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Chat,
Home,
Widgets,
About,
Login,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default (store) ... |
app/Pages/SettlementViewNew/CouponInfo/index.js | jd-daojia/DaojiaRN | /* @flow */
import React, { Component } from 'react';
import {
View,
Text,
} from 'react-native';
import UseCouponTip from './UseCouponTip'
import CouponList from './CouponList'
export default class CouponInfo extends Component {
/**
* [supportCoupon 是否支持使用优惠券,或者账号是否存在优惠券]
* @method supportCoupon
* @p... |
src/components/nonuse/listTesting.js | gordongordon/hom | import React from 'react'
import { List , Card, Stepper, Picker, SwipeAction, DatePicker, Badge, Flex, InputItem, WhiteSpace, Button, SegmentedControl} from 'antd-mobile';
import { createForm } from 'rc-form';
import moment from 'moment';
import 'moment/locale/zh-cn';
const Item = List.Item;
const Brief = Item.Brief;
... |
packages/components/src/Status/Status.stories.js | Talend/ui | import React from 'react';
import { action } from '@storybook/addon-actions';
import { Status } from './Status.component';
const cancelAction = {
label: 'cancel',
icon: 'talend-cross',
onClick: action('onCancel'),
bsSize: 'small',
};
const deleteAction = {
label: 'delete',
icon: 'talend-cross',
onClick: actio... |
app/routes.js | sachinmour/newedenfaces-react | import React from 'react';
import {Route} from 'react-router';
import App from './components/App';
import Home from './components/Home';
import Stats from './components/Stats';
import Character from './components/Character';
import CharacterList from './components/CharacterList';
import AddCharacter from './components/... |
code/frontend/src/components/AdminPanel/Tabs/Skills.js | CPSC319-2017w1/coast.the-terminal | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import PanelWrapper from '../Panel';
import * as TYPES from '../../../constants/input-types.js';
import { addNewRow } from '../../../actions/add-tables-actions.js';
import { editRow } from '../../../actions/edit-tables... |
packages/ndla-icons/src/license/Publicdomain.js | netliferesearch/frontend-packages | /**
* Copyright (c) 2017-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
// N.B! AUTOGENERATED FILE. DO NOT EDIT
import React from 'react';
import Icon from '../Icon';
const Publicdomain = props => (
<Icon
... |
examples/pinterest/app.js | ksivam/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, IndexRoute, Link } from 'react-router'
const history = useBasename(createHistory)({
basename: '/pinterest'
})
const PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekit... |
src/App.js | dyaroman/react-hello-world | import React, { Component } from 'react';
import allItems from './components/allItems';
import TodoItem from './components/TodoItem';
import NewTodoItem from './components/NewTodoItem';
class App extends Component {
constructor(props){
super(props);
this.addEvent = this.addEvent.bind(this);
}
getInitialS... |
frontend/src/components/SubscriptionItem.js | OpenCollective/opencollective-website | import React, { Component } from 'react';
import formatCurrency from '../lib/format_currency';
import moment from 'moment';
export default class SubscriptionItem extends Component {
constructor(props) {
super(props);
this.state = {
opened: false
};
}
render() {
const { subscription, i18n... |
packages/web/src/components/result/addons/ResultListImage.js | appbaseio/reactivesearch | import React from 'react';
import types from '@appbaseio/reactivecore/lib/utils/types';
import { Image } from '../../../styles/ListItem';
const ResultListImage = ({ src, small, ...props }) => <Image src={src} small={small} {...props} />;
ResultListImage.propTypes = {
src: types.stringRequired,
small: types.bool,
};
... |
example/app.js | jeongsd/react-pointerlock | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import PointerLock from 'react-pointerlock';
import './app.css';
class App extends Component {
constructor() {
super();
this.state = {
x: 50,
y: 50,
isOnPointerLock: false,
};
this.onMouseMove = this.onM... |
src/containers/TutorialsPage/TutorialsPage/ProposeTopicDialog/index.js | ReactPoland/react-community | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Dialog from 'material-ui/Dialog';
// import FlatButton from 'material-ui/FlatButton';
// import _isEmpty from 'lodash/isEmpty';
// import _startsWith from 'lodash/startsWith';
import ProposeTopicBody from './ProposeTopicBody';
class P... |
js/jquery.js | LoganHollins/SeaHawks | /*! 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... |
tests/components/ErrorsTest.js | flexiform/flexiform-fill-ui | /**
* Copyright 2016 ReSys OÜ
*
* 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... |
src/components/Footer.js | angeloocana/angeloocana | import React from 'react';
import PropTypes from 'prop-types';
import Gravatar from 'react-gravatar';
import HeartIcon from './HeartIcon';
import FaGithub from 'react-icons/lib/fa/github';
import A from './A';
import styled from 'styled-components';
import Ca from './flags/Ca';
const Link = styled(A)`
display: inlin... |
src/svg-icons/image/rotate-90-degrees-ccw.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageRotate90DegreesCcw = (props) => (
<SvgIcon {...props}>
<path d="M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26C17.61 4.88 15.3 4 13 4V.76L8.7... |
assets/rest_framework_swagger/lib/jquery-1.8.0.min.js | mercycorps/TolaTables | /*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
src/components/App.js | laurentzziu/color-gems-react | import React, { Component } from 'react';
import autoBind from 'react-autobind';
import { settings } from '../settings';
import Icon from 'antd/lib/icon';
import notification from 'antd/lib/notification';
import 'antd/lib/notification/style/css';
import Header from './Header';
import HeaderBanner from './HeaderBanne... |
jenkins-design-language/src/js/components/material-ui/svg-icons/navigation/close.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NavigationClose = (props) => (
<SvgIcon {...props}>
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</SvgIcon>
);
NavigationClose.displayName = 'NavigationClose';
NavigationCl... |
React/client/components/App.js | iha2/ReactInit | import React, { Component } from 'react';
import ReactDOM from "react-dom";
import List from './List';
import { Button } from 'react-bootstrap';
import '../stylesheets/App.less';
export default class App extends Component {
constructor(props) {
super(props);
window.React = React;
this.state = {
te... |
public/js/components/SubmitButton.js | davejtoews/cfl-power-rankings | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
module.exports = class extends React.Component {
static contextTypes = {
feathersApp: PropTypes.object,
login: PropTypes.bool
};
state = {
submission: {
user: this.props.userId,
... |
src/components/HeaderStrip/index.js | bhargav175/resume | import React from 'react';
import styles from './style.scss';
class HeaderStrip extends React.Component{
render(){
return <div className={styles.root}>Hi There! I am Bhargav</div>;
}
}
export default HeaderStrip; |
src/components/Paragraph/Paragraph.js | Ciunkos/ciunkos.com | import React from 'react'
import styled from 'styled'
export default props => <styled.Paragraph tag="p" {...props} />
|
lib/Calendar.js | pvsrivathsa/react-widgets | 'use strict';
var babelHelpers = require('./util/babelHelpers.js');
exports.__esModule = true;
var _VIEW, _OPPOSITE_DIRECTION, _MULTIPLIER;
var _react = require('react');
var _react2 = babelHelpers.interopRequireDefault(_react);
var _classnames = require('classnames');
var _classnames2 = babelHelpers.interopRequ... |
src/app/components/ExampleFileSelector.js | skratchdot/audio-editor | import React, { Component } from 'react';
import { Row, Col, Input, Button, Glyphicon } from 'react-bootstrap';
import {
loadExampleFile,
setExamples,
setRandomGroupAndFile,
setRandomFile
} from '../actions/examples';
import { connect } from 'react-redux';
import random from 'lodash.random';
import akwf from '.... |
extensions/cms/components/AddToBody.js | axax/lunuc | import React from 'react'
import ReactDOM from 'react-dom'
class AddToBody extends React.Component {
constructor(props) {
super(props)
}
render() {
return ReactDOM.createPortal(this.props.children,
document.body
)
}
}
export default AddToBody
|
src/mui/detail/EditActions.js | RestUI/rest-ui | import React from 'react';
import PropTypes from 'prop-types';
import { CardActions } from 'material-ui/Card';
import { ListButton, ShowButton, DeleteButton, RefreshButton } from '../button';
const cardActionStyle = {
zIndex: 2,
display: 'inline-block',
float: 'right',
};
const EditActions = ({ basePath, ... |
geonode/contrib/monitoring/frontend/src/components/molecules/total-requests/index.js | kartoza/geonode | import React from 'react';
import PropTypes from 'prop-types';
import CircularProgress from 'material-ui/CircularProgress';
import HoverPaper from '../../atoms/hover-paper';
import styles from './styles';
class TotalRequests extends React.Component {
static propTypes = {
requests: PropTypes.number,
}
stati... |
Console/app/node_modules/antd/es/table/SelectionBox.js | RisenEsports/RisenEsports.github.io | 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-runtime/helpers/inherits';
import React from 'react';
import Checkbox f... |
src/components/users/ProfileImage.js | zebras-filming-videos/streamr-web | import React from 'react'
import cx from 'classnames'
import LoadImage from '../common/LoadImage'
export default ({
image
}) => (
<div className={cx('profile-image')}>
<LoadImage src={image} />
</div>
)
|
src/client/components/InputField.js | joerx/expensely | import React from 'react';
import parseInput from '../helpers/parseInput';
// Presentational component
// - onSubmit: fn({item, amount})
class InputField extends React.Component {
constructor(props) {
super(props);
this.state = {valid: true};
}
render() {
const formGroupClass = [
'form-group',... |
app/javascript/mastodon/features/ui/components/image_loader.js | tri-star/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { LoadingBar } from 'react-redux-loading-bar';
import ZoomableImage from './zoomable_image';
export default class ImageLoader extends React.PureComponent {
static propTypes = {
alt: PropTypes.string,
s... |
react/ClearIcon/ClearIcon.js | seek-oss/seek-style-guide | import svgMarkup from './ClearIcon.svg';
import React from 'react';
import Icon from '../private/Icon/Icon';
export default function ClearIcon(props) {
return <Icon markup={svgMarkup} {...props} />;
}
ClearIcon.displayName = 'ClearIcon';
|
projects/web-client/source/web/scripts/yui-3.3.0-dependencies.js | deas/alfresco-community-edition | /*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.3.0
build: 3167
*/
if(typeof YUI!="undefined"){YUI._YUI=YUI;}var YUI=function(){var c=0,f=this,b=arguments,a=b.length,e=function(h,g){return(h&&h.hasOwnProperty&&(h instanc... |
src/galaxy/store/hover.js | digizeph/pm | import React from 'react';
import eventify from 'ngraph.events';
import appEvents from '../service/appEvents.js';
import scene from './scene.js';
import getBaseNodeViewModel from './baseNodeViewModel.js';
export default hoverStore();
function hoverStore() {
var store = {};
eventify(store);
appEvents.nodeHover... |
web/index.js | mrcnc/spatialconnect-server | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, combineReducers } from 'redux';
import thunk from 'redux-thunk';
import { createLogger } from 'redux-logger';
import { Router, Route, IndexRoute, browserHistory } from 'react-rou... |
app/components/Projects.js | DMXL/dm-react-resume | import React from 'react';
import ProjectItem from './ProjectItem'
const Projects = props => {
const getProjects = props.data.map(function(item, index) {
return (<ProjectItem key={index} data={item} />);
});
return (
<div className="projects section">
<div className="title">
... |
node_modules/case-sensitive-paths-webpack-plugin/demo/src/AppRoot.component.js | okristian1/react-info | import React, { Component } from 'react';
export default class AppRoot extends Component {
// we can't use `connect` in this component, so must do naiively:
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
<div>
<h1>This is just an empty demo</h1>
... |
packages/material-ui-icons/src/ConfirmationNumber.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><defs><path id="a" d="M0 0h24v24H0z" /></defs><path d="M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-... |
ajax/libs/6to5/1.14.15/browser.js | mohitbhatia1994/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
src/svg-icons/av/fiber-pin.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberPin = (props) => (
<SvgIcon {...props}>
<path d="M5.5 10.5h2v1h-2zM20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM9 11.5c0 .85-.65 1.5-1.5 1.5h-2v2H4V9h3.5c.85... |
src/assets/scripts/components/Frame.js | curlybracesco/pablo | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
export default class Frame extends Component {
buildLinkElements(stylesheetHrefs) {
return stylesheetHrefs.map((styleHref) => {
return <link href={styleHref} rel="stylesheet" />
});
}
setFrameStyles(fra... |
assets/js/vendor/jquery/jquery-1.12.4.min.js | Martaver/martaver.github.io | /*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu... |
frontend/src/index.js | tdv-casts/website | // @flow
import injectTapEventPlugin from 'react-tap-event-plugin';
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom'
import App from './App';
import './index.css';
injectTapEventPlugin();
ReactDOM.render(
(
<BrowserRouter>
<App />
... |
builtin/admin/src/graph/Inspector.js | go-tin/tin | import React, { Component } from 'react';
import './Inspector.css';
class Inspector extends Component {
render() {
const nodeId = this.props.node ? this.props.node.id : "";
return (
<nav className="panel">
<p className="panel-heading">
node inspector
</p>
<div classNam... |
simpleapp/app/component/home.js | ladanv/learn-react-js | import React from 'react';
const Home = () => (
<div></div>
);
export default Home;
|
src/components/ViewData/DataCatalogList.js | RegOpz/RegOpzWebApp | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { bindActionCreators, dispatch } from 'redux';
import _ from 'lodash';
import DatePicker from 'react-datepicker';
import moment from 'moment';
require('react-datepicker/dist/react-datepicker.css');
... |
src/Affix/test/AffixSpec.js | suitejs/suite | import React from 'react';
import ReactDOM from 'react-dom';
import Affix from '../Affix';
import { getDOMNode, createTestContainer } from '@test/testUtils';
import { getOffset } from 'dom-lib';
describe('Affix', () => {
it('Should render a button', () => {
const instance = getDOMNode(
<Affix>
<but... |
js/source/containers/main_container.js | easy-updates-manager/easy-updates-manager | import React, { Component, Fragment } from 'react';
import { getOptions } from '../actions/get_options';
import { saveOptions } from '../actions/save_options';
import { connect } from 'react-redux';
import AutomaticUpdates from './automatic_updates';
import DisableUpdates from './disable_updates';
import Logs from './l... |
src/imports/ui/builder/components/wizard/NextQuestionButton.js | hwillson/meteor-recommendation-builder | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Button } from 'react-bootstrap';
class NextQuestionButton extends Component {
render() {
return (
<Button
ref={(button) => { this.nextQuestionButton = button; }}
bsStyle="link"
className="next-quest... |
src/Accordion.js | zanjs/react-bootstrap | import React from 'react';
import PanelGroup from './PanelGroup';
const Accordion = React.createClass({
render() {
return (
<PanelGroup {...this.props} accordion>
{this.props.children}
</PanelGroup>
);
}
});
export default Accordion;
|
public/js/cat_source/es6/components/segments/SegmentTarget.js | Ostico/MateCat | /**
* React Component .
*/
import React from 'react'
import EditArea from './Editarea'
import TagUtils from '../../utils/tagUtils'
import CursorUtils from '../../utils/cursorUtils'
import Customizations from '../../utils/customizations'
import SegmentConstants from '../../constants/SegmentConstants'
import SegmentSt... |
source/app/profile/authentication.js | SonofNun15/react-on-rails-ui | import React from 'react'
import { connect } from 'react-redux'
import { push } from 'react-router-redux'
// With inspiration from Josh Geller (https://github.com/joshgeller/react-redux-jwt-auth-example)
export function requireAuthentication(Component) {
class AuthenticatedComponent extends React.Component {
com... |
ajax/libs/core-js/0.9.18/core.js | zhangbg/cdnjs | /**
* core-js 0.9.18
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/*****... |
src/app/components/pages/spreadsheet/RoomStatusIcon.js | PinkFLoyd92/softwareII | import React from 'react';
import Avatar from 'material-ui/Avatar';
import { primaryColor700 } from '../../../../TabubaTheme'
import { yellow500, lightBlueA400, grey400 } from 'material-ui/styles/colors'
import * as ReservationStatus from '../../../../../constants/ReservationStatus.js';
class RoomStatusIcon extends R... |
src/svg-icons/action/motorcycle.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionMotorcycle = (props) => (
<SvgIcon {...props}>
<path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2... |
ajax/libs/rxjs/4.0.1/rx.lite.js | seogi1004/cdnjs | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExpor... |
app/modules/mePage/profile/index.js | theseushu/runcai | import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { currentUserSelector } from 'modules/data/ducks/selectors';
import { logout } from 'api/logout';
import Profile from './profile';
export default connect(
(state) => ({ user: currentUserSelector(state) }),
(dispatch) => bind... |
src/views/Bundle.js | STMU1320/dedao-demo | import React from 'react'
class Bundle extends React.Component {
state = {
// short for "module" but that's a keyword in js, so "mod"
mod: null,
};
componentWillMount () {
this.load(this.props)
}
componentWillReceiveProps (nextProps) {
if (nextProps.load !== this.props.load) {
this.lo... |
src/index.js | renesansz/react-chat | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/containers/DevTools.js | tylergraf/react-twitter | 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-w">
<LogMonitor />
... |
packages/strapi-admin/files/public/app/containers/HomePage/index.js | skelpook/strapi | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a neccessity for you then you can refactor it and remove
* the ... |
Rosa_Madeira/Cliente/src/components/common/CardSection.js | victorditadi/IQApp | import React from 'react';
import { View } from 'react-native';
const CardSection = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
);
};
const styles = {
containerStyle: {
borderBottomWidth: 1,
padding: 5,
backgroundColor: "#d9d9d9",
justifyCont... |
src/Base/pages/Page404.js | jirkae/hobby_hub | import React from 'react';
const Page404 = () => {
return (
<div className="homepage">
404
</div>
);
};
export default Page404;
|
client/components/Main.js | dimitardanailov/reduxstagram | import React from 'react';
import { Link } from 'react-router';
const Main = React.createClass({
render() {
return (
<div>
<h1>
<Link to="/">Reduxstragram</Link>
</h1>
{React.cloneElement(this.props.children, this.props)}
</div>
);
}
});
export default Main; |
src/index.js | rchanou/react-boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import './css/base.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/svg-icons/communication/dialpad.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationDialpad = (props) => (
<SvgIcon {...props}>
<path d="M12 19c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-... |
packages/material-ui-icons/src/TextRotateUpTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path fill="none" d="M0 0h24v24H0V0z" /><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M18 4l-3 3h2v13h2V7h2l-3-3zm-6.2 11.5v-5l2.2-.9V7.5L3 12.25v1... |
renderer/components/Syncing/Tutorials.js | LN-Zap/zap-desktop | import React from 'react'
import { Flex } from 'rebass/styled-components'
import { FormattedMessage } from 'react-intl'
import { Button, Text } from 'components/UI'
import messages from './messages'
const Tutorials = props => (
<Flex alignItems="center" flexDirection="column" justifyContent="center" {...props}>
... |
webpack/base.js | lyef/lyef-redux-boilerplate | import webpack from 'webpack';
import path from 'path';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
const config = {
entry: [
path.join(__dirname, '../', 'src', 'app'),
],
output: {
path: path.join(__dirname, '../', 'dis... |
ajax/libs/react-instantsearch/5.0.2/Connectors.js | jonobr1/cdnjs | /*! ReactInstantSearch 5.0.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :... |
src/components/LifeCycleHelper.js | nchathu2014/reactApp | import React from 'react';
export default class LifeCycleHelper extends React.Component{
constructor(){
console.log("constructor");
super();
this.state={
name:"Nuwan"
}
}
componentWillMount(){
console.log("componentWillMount");
}
componentDidMount(){
console.log("componentDidMount");
}
compon... |
app/javascript/mastodon/features/lists/index.js | WitchesTown/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compo... |
docs/app/Examples/elements/Step/Content/StepExampleIcon.js | shengnian/shengnian-ui-react | import React from 'react'
import { Icon, Step } from 'shengnian-ui-react'
const StepExampleIcon = () => (
<Step.Group>
<Step>
<Icon name='truck' />
<Step.Content>
<Step.Title>Shipping</Step.Title>
<Step.Description>Choose your shipping options</Step.Description>
</Step.Content>
... |
src/components/CountdownClock.js | neontribe/spool | import React, { Component } from 'react';
import styles from './css/CountdownClock.module.css';
export default class CountdownClock extends Component {
static propTypes = {
seconds: React.PropTypes.number,
onComplete: React.PropTypes.func
}
static defaultProps = {
seconds: 3,
... |
editor/components/FloatBar.js | conundrumer/chroma-tone | import React from 'react'
import PureComponent from 'react-pure-render/component';
import classNames from 'classnames'
import FloatPaper from './FloatPaper'
import Toolbar from './Toolbar'
export default class FloatBar extends PureComponent {
render() {
let closed = this.props.closed;
return (
<div cl... |
src/Parser/Hunter/BeastMastery/Modules/Features/AlwaysBeCasting.js | enragednuke/WoWAnalyzer | import React from 'react';
import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellLink from 'c... |
src/routes.js | VincentCordobes/react-app | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import Home from './containers/Home';
import Cart from './containers/Cart';
import NotFound from './containers/NotFound';
/**
* Our routes here
*/
export default (
<Route path="/" name="Bookstore" compo... |
src/svg-icons/action/dns.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDns = (props) => (
<SvgIcon {...props}>
<path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v... |
js/components/category/index.js | phamngoclinh/PetOnline_vs2 |
import React, { Component } from 'react';
import { Image, AsyncStorage } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Text, Button, Icon, Grid, Col, InputGroup, Input } from 'native-base';
import... |
website/src/react-native/404.js | adamjmcgrath/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict... |
src/svg-icons/action/system-update-alt.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSystemUpdateAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/>
... |
www/src/components/survey/questionTypes/MultipleQuestion.js | cygwin255/SimpleSurvey | import 'styles/styles.css'
import React from 'react'
import { Field, FieldArray } from 'redux-form'
import RenderValidationField from 'components/survey/RenderValidationField'
import { required } from 'redux-form-validators'
import RenderMultipleQuestionOptions from 'components/survey/RenderMultipleQuestionOptions'
co... |
frontend/src/components/thread/moderation/posts/split.js | 1905410/Misago | /* jshint ignore:start */
import React from 'react';
import Button from 'misago/components/button'; // jshint ignore:line
import Form from 'misago/components/form';
import FormGroup from 'misago/components/form-group'; // jshint ignore:line
import CategorySelect from 'misago/components/category-select'; // jshint ignor... |
library/grunt/node_modules/grunt-legacy-log/node_modules/underscore.string/test/test_underscore/vendor/jquery.js | Incunabula01/Neue-Portfolio | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
server/sonar-web/src/main/js/components/charts/__tests__/treemap-test.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/client/components/logo.js | berkeley-homes/near-miss-positive-intervention | import React from 'react'
const Logo = () => {
return (
<div>
<img src='' alt='Logo' />
</div>
)
}
export default Logo
|
src/routes/savoringYourPet/SavoringYourPet.js | goldylucks/adamgoldman.me | // @flow
/* eslint-disable react/no-unescaped-entities */
import React from 'react'
import axios from 'axios'
import withStyles from 'isomorphic-style-loader/lib/withStyles'
import MessengerFixed from './MessengerFixed'
import testimonials from './testimonialsData'
import FAQContainer from './FAQContainer'
import Mob... |
tests/components/Header/Header.spec.js | 38Slava/redux-webrtc | import React from 'react'
import { Header } from 'components/Header/Header'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header/>)
})
it('Renders a welcome message', () => {
c... |
src/js/components/CalculatorButton/CalculatorButtonContainer.react.js | ali404/calculator-on-steroids | import React from 'react'
import Base from '../_helpers/BaseComponent'
import CalculatorButton from './CalculatorButton.react'
import CalculatorActions from '../../actions/CalculatorActions'
export default class CalculatorButtonContainer extends Base {
constructor(props) {
super(props)
this._bin... |
ajax/libs/maple.js/1.2.4/maple-polyfill.min.js | holtkamp/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;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.babel=e()}}(function(){var e,t,n;return function r(e,t,... |
springboot/GReact/src/main/resources/static/app/components/forms/inputs/MaskedInput.js | ezsimple/java | import React from 'react'
import 'script-loader!jquery.maskedinput/src/jquery.maskedinput.js'
export default class MaskedInput extends React.Component {
componentDidMount() {
var options = {};
if (this.props.maskPlaceholder) options.placeholder = this.props.maskPlaceholder;
$(this.refs.input).mask(th... |
client/src/components/pages/admin/ManageServicesPage.js | 15thnight/15thnight | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { getServices } from 'actions';
class ManageServices extends React.Component {
componentWillMount() {
this.props.getServices();
}
render() {
let services = this.props.services |... |
components/chronicle/ChronicleHeader.js | yudazilian/VisualJusticeTW | import React from 'react';
import ReactDom from 'react-dom';
import { RedRibbon } from '../common/githubRibbon';
export default class ChronicleHeader extends React.Component {
render() {
return (
<header className="col-md-12">
<div>
<img id="Logo" src="./src/chronicle.png"/>
<RedRibbon />
</... |
src/svg-icons/image/iso.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageIso = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z"/>
... |
ftplugin/javascript/jshint/node_modules/react-tools/vendor/fbtransform/visitors.js | ssidorchick/jshint.vim | /*global exports:true*/
var es6ArrowFunctions = require('jstransform/visitors/es6-arrow-function-visitors');
var es6Classes = require('jstransform/visitors/es6-class-visitors');
var es6Destructuring = require('jstransform/visitors/es6-destructuring-visitors');
var es6ObjectConciseMethod = require('jstransform/visitors/... |
packages/material-ui-icons/lib/esm/NoMeetingRoomOutlined.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 5v3.88l2 2V6h3v7.88l2 2V4h-5V3H6.12l2 2zM2.41 2.13 1 3.54l4 4V19H3v2h11v-4.46L20.46 23l1.41-1.41L2.41 2.13zM12 19H7V9.54l5 5V19z"
}), 'NoMeetingRoomOutl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.