path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
webapp/app/components/DatePicker/index.js | EIP-SAM/SAM-Solution-Node-js | //
// DateFormGroup in form for page SaveCreation
//
import React from 'react';
import { Glyphicon } from 'react-bootstrap';
import 'components/DatePicker/styles.css';
const Datepicker = require('react-bootstrap-date-picker');
const moment = require('moment');
/* eslint-disable react/prefer-stateless-function */
exp... |
src/page/waiqin/SignHistoryPage.js | KmKm007/oa | import React from 'react'
import MenuHeaderContainer from '../../containers/MenuHeaderContainer'
import createHistory from 'history/createHashHistory'
import { connect } from 'react-redux'
import actions from '../../Redux/actions'
import { showLocation } from '../../middleWares/wxSDK'
import SignHistoryContainer from '... |
test/syntax_test_react_class_OLD.js | cesarandreu/babel-sublime | // SYNTAX TEST "Packages/babel-sublime/JavaScript (Babel).tmLanguage"
import React from 'react';
//^^^^ keyword.operator.module
//<- source.js
// ^^^^^ variable.other.readwrite
// ^^^^ keyword.operator.module
// ^^^^^^^ string.quoted
// ^ string.quoted punctuation.definition... |
client/test/helpers/shallowRenderHelper.js | andybryant/scalack | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/components/Link/Link.js | taekungngamonosus/monoreact | import React from 'react';
import PropTypes from 'prop-types';
import history from '../../history';
function isLeftClickEvent(event) {
return event.button === 0;
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}
class Link extends React.Component {... |
example/src/containers/App.js | jfairbank/redux-resource | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Content from '../components/Content';
import Input from '../components/Input';
import * as actions from '../actions';
export const App = ({ actions, fetching, error, user }) => (
<div>
<Content {.... |
src/js/components/link__row/index.js | Arlefreak/web_client.afk | import PropTypes from 'prop-types';
import React from 'react';
import Isvg from 'react-inlinesvg';
const LinkRow = ({ name , link, category }) => (
<li>
<a href={ link }>
<Isvg
src= { category.image }
uniquifyIDs={false}
>
<img
... |
src/examples/Step5.js | mpusinhol/react-stepzilla | 'use strict';
import React, { Component } from 'react';
import Promise from 'promise';
export default class Step5 extends Component {
constructor(props) {
super(props);
this.state = {
saving: false
};
this.isValidated = this.isValidated.bind(this);
}
componentDidMount() {}
componentW... |
app/javascript/mastodon/features/ui/util/react_router_helpers.js | cybrespace/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import ColumnLoading from '../components/column_loading';
import BundleColumnError from '../components/bundle_column_error';
import BundleContainer from '../containers/bundle_container';
// Small wrapper t... |
src/routes/About.js | ueno-llc/starter-kit | import React, { Component } from 'react';
import Segment from 'components/segment';
import Helmet from 'react-helmet';
export default class About extends Component {
render() {
return (
<div>
<Helmet title="About" />
<Segment>
<h1>About</h1>
</Segment>
</div>
);
... |
tnoodle-ui/src/CubingIcon.js | cubing/tnoodle | import _ from 'lodash';
import React from 'react';
export default function(props) {
let { title, ...rest } = props;
let className = "cubing-icon " + _.toPairs(rest).map(([k, v]) => `${k}-${v}`).join(" ");
return <span className={className} title={title} />;
};
|
src/components/common/formatting.js | Pavel-DV/ChronoMint | import React from 'react'
import numeral from 'numeral'
import moment from 'moment'
export const NumberFormatBasic = ({val}) => (
<span>{basicNumberFormat(val, 0)}</span>
)
export const NumberFormatDecimal = ({val}) => (
<span>{basicNumberFormat(val, 2)}</span>
)
export const currency = (val, symbol = '€') => (
... |
server/sonar-web/src/main/js/apps/account/components/Account.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info 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, o... |
packages/neos-ui/src/Containers/App.js | neos/neos-ui | import React from 'react';
import PropTypes from 'prop-types';
import FlashMessages from './FlashMessages/index';
const App = ({globalRegistry, menu}) => {
const containerRegistry = globalRegistry.get('containers');
const Modals = containerRegistry.get('Modals');
const PrimaryToolbar = containerRegistry.... |
src/interface/RootLocalizationProvider.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { setupI18n } from '@lingui/core';
import { I18nProvider } from '@lingui/react';
import LocalizationLoader from './LocalizationLoader';
export const i18n = setupI18n();
class RootLocalizationProvider extends React.PureComponent {
static propType... |
src/components/Launcher.react.js | luigiplr/area51-launcher | import React from 'react'
import path from 'path'
import shell from 'shell'
import Progress from './Progress'
import sweetAlert from 'sweetalert'
import {
spawn
}
from 'child_process'
import {
getCurrentWindow
}
from 'remote'
var updated = 0;
export default class LUNCH extends React.Component {
handelClick() {
... |
node_modules/react-router-dom/node_modules/react-router/es/StaticRouter.js | danshapiro-optimizely/bandwidth | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/components/App/withApp.js | chengjianhua/book-share | import invariant from 'invariant';
import React, { Component } from 'react';
import hoistStatics from 'hoist-non-react-statics';
import { appShape } from './propTypes';
function getDisplayName(WrappedComponent) {
return WrappedComponent.displayName || WrappedComponent.name || 'Component';
}
export default function... |
examples/ModalNoTrigger.js | chris-gooley/react-materialize | import React from 'react';
import Modal from '../src/Modal';
import Button from '../src/Button';
export default
<div>
<Button onClick={() => {
$('#foo').modal('open');
}}>Show Modal</Button>
<Modal
id='foo'
header='Modal Header'>
Lorem ipsum dolor sit amet
</Modal>
</div>;
|
web/containers/Toast.js | marsoln/temptation | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { closeToast } from '../actions/toast'
import ToastLayer from '../components/Toast'
let itv = -1
const TIME_SPAN = 2200
class Toast extends React.Component {
static defaultProps = {
className: undefined,
... |
modules/gui/src/widget/toolbar/toolbarButton.js | openforis/sepal | import {Button} from 'widget/button'
import {Context} from './context'
import PropTypes from 'prop-types'
import React from 'react'
import styles from './toolbar.module.css'
export class ToolbarButton extends React.Component {
render() {
const {className, icon, label, tooltip, tooltipDelay, tooltipPlacemen... |
src/components/JobTitle/JobTitlePageProvider.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import R from 'ramda';
import { createStructuredSelector } from 'reselect';
import { withProps, lifecycle, compose, setStatic } from 'recompose';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Switch, Route, Redi... |
frontend/component/TopicList.js | honggzb/practise_node | import React from 'react';
import {Link} from 'react-router';
import {getTopicList} from '../lib/client';
export default class TopicList extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
componentDidMount() {
this.updateList({
tags: this.props.location.query.tags... |
src/containers/Root.js | mattyao1984/react-redux-starterkit | import React from 'react';
import createReactClass from 'create-react-class';
import {Provider} from 'react-redux';
import {Router} from 'react-router';
import routes from '../routes';
const Root = createReactClass({
render() {
const {store, history} = this.props;
if (!this.props) {
return null;
}... |
examples/dynamic-segments/app.js | Jastrzebowski/react-router | import React from 'react';
import { history } from 'react-router/lib/HashHistory';
import { Router, Route, Link, Redirect } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/user/123">Bob</Link></li>
<li><Link to="/user/abc">Sally</... |
node_modules/._react-slick@0.14.7@react-slick/src/arrows.js | angustas/company | 'use strict';
import React from 'react';
import classnames from 'classnames';
import Helpers from './mixins/helpers';
export var PrevArrow = React.createClass({
clickHandler: function (options, e) {
if (e) { e.preventDefault(); }
this.props.clickHandler(options, e);
},
render: function () {
var pre... |
src/js/components/Users/StudentDash.js | ClubExpressions/poc-expression.club | import React from 'react';
import {RoleAware} from '../../components'
import {Alert} from 'react-bootstrap';
export default class StudentDash extends RoleAware {
constructor(props) {
super(props);
}
authorizedRoles() {
return ["students"];
}
render() {
return this.renderWithRole(() => {
... |
4.React-Router/src/components/posts-show.js | Branimir123/Learning-React | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { getPost, deletePost } from '../actions';
import { Link } from 'react-router-dom';
class PostsShow extends Component{
componentDidMount() {
const { id } = this.props.match.params;
this.props.getPost();
}
... |
src/script/ChannelDetails.js | phuongnd11/frequency-poc | import React from 'react';
function ChannelDetails() {
return (
<div className="col-md-12">
<div className="row">
<div className="col-md-3">image here</div>
<div className="col-md-9">
<div className="title">people are amazing</div>
<div className="desc">The best video ev... |
src/routes/login/index.js | chaoming56/react-blog | import React from 'react'
import { qnfetch, apiURL } from 'assets/utils/request'
import TextField from 'material-ui/TextField'
import RaisedButton from 'material-ui/RaisedButton'
import { browserHistory } from 'react-router'
import { login } from 'modules/app_bar'
import { connect }from 'react-redux'
import setTitle fr... |
src/components/Photo.js | edwinwright/react-project | import React from 'react';
const Photo = ({ photo }) => (
<div>
<div>{photo.title}</div>
<img src={photo.thumbnailUrl} />
</div>
);
// TODO: Add propTypes
export default Photo
// TODO: This should be a nested route maybe
// but we could get the photo data from the store once we have Redux
|
front_end/front_end_app/src/client/todos/index.react.js | Horizon-Framework/horizon | import Buttons from './buttons.react';
import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import NewTodo from './newtodo.react';
import React from 'react';
import ToCheck from './tocheck.react';
import Todos from './todos.react';
export default class Index extends ... |
example/components/wrap.js | travi/hapi-react-router | import React from 'react';
import {node} from 'prop-types';
import AppBar from 'material-ui/AppBar';
import {Link} from 'react-router';
export default function Wrap({children}) {
return (
<div id="wrap">
<AppBar title="Example" />
<nav>
<ul>
<li><Link to="/">Home</Link></li>
... |
static/src/index.js | cas-x/cas-server | /**
* @Author: BingWu Yang <detailyang>
* @Date: 2016-03-11T19:48:51+08:00
* @Email: detailyang@gmail.com
* @Last modified by: detailyang
* @Last modified time: 2016-04-21T00:23:52+08:00
* @License: The MIT License (MIT)
*/
import React from 'react';
import ReactDOM from 'react-dom';
import { hashHistory } from '... |
src/router.js | janimattiellonen/restdb-test | import React from 'react';
import { Router, Route, IndexRoute } from 'react-router';
import RestDbAppContainer from './components/smart/RestDbAppContainer';
import HomeContainer from './components/smart/HomeContainer';
export function createRouter({ store, history }) {
function checkFetcher(nextState, replaceSt... |
www/ui/documentation/import-declaration.js | ForbesLindesay/cabbie | import React from 'react';
import Keyword from './keyword';
import String from './string';
import Mode from '../mode';
function ImportSpecifier({local, exportKey}) {
if (exportKey === 'default') {
return <span>{local}</span>;
}
if (exportKey === local) {
return <span>{'{' + local + '}'}</span>;
}
ret... |
packages/arwes/src/ThemeProvider/sandbox.js | romelperez/ui | import React from 'react';
import createTheme from '../tools/createTheme';
import withStyles from '../tools/withStyles';
import ThemeProvider from './index';
const MyColor = withStyles(theme => ({
root: {
width: 300,
height: 120,
transition: `background-color ${theme.animTime}ms ease-out`,
background... |
src/components/paper-input.js | sballesteros/gallery | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
export default class PaperInput extends React.Component {
constructor(props) {
super(props);
this._value = props.value || props.defaultValue || '';
this.state = {
touched: false,
dirty: !!this.... |
actor-apps/app-web/src/app/components/common/AvatarItem.react.js | zwensoft/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import React from 'react';
import classNames from 'classnames';
class AvatarItem extends React.Component {
static propTypes = {
className: React.PropTypes.string,
image: React.PropTypes.string,
placeholder: React.PropTypes.string.isRequired,
... |
node_modules/semantic-ui-react/dist/es/elements/Step/StepContent.js | SuperUncleCat/ServerMonitoring | import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { childrenUtils, createShorthand, customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
import StepDescription from './StepDescription';
import... |
examples/react/app/search.js | tcurdt/xstatic | import React from 'react'
import { render } from 'react-dom'
render(
<div>
<h3>HEADING</h3>
</div>
, document.getElementById('root'))
|
App/Client/node_modules/react-router/es6/Redirect.js | qianyuchang/React-Chat | 'use strict';
import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './PatternUtils';
import { falsy } from './PropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropT... |
addons/info/src/components/Story.js | jribeiro/storybook | /* eslint no-underscore-dangle: 0 */
import React from 'react';
import PropTypes from 'prop-types';
import global from 'global';
import marksy from 'marksy';
import PropTable from './PropTable';
import Node from './Node';
import { baseFonts } from './theme';
import { Pre } from './markdown';
global.STORYBOOK_REACT_... |
node_modules/react-bootstrap/es/Form.js | ivanhristov92/bookingCalendar | 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 ... |
code/workspaces/web-app/src/components/app/SideBarNavigation.js | NERC-CEH/datalab | import React from 'react';
import { withStyles } from '@material-ui/core';
const style = () => ({
projectNavigation: {
display: 'flex',
width: '100%',
flexGrow: '1',
},
contentArea: {
display: 'flex',
width: '100%',
height: '100%',
overflow: 'auto',
},
});
function SideBarNavigatio... |
src/map/js/components/LayerPanel/LayerGroup.js | wri/gfw-water | import React from 'react';
let closeSymbolCode = 9660,
openSymbolCode = 9650;
/**
* Get count of active layers in this group
* @param {array} activeLayers - array of keys for the active layers
* @param {array} children - This groups child components, which are layer checkboxes or null
* @return {number} count
*/
... |
packages/react/src/components/FileUploader/FileUploader-story.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
/* eslint-disable no-console */
import React from 'react';
import { action } from '@storybook/addon-actions';
import {
withKnobs,
array,... |
resources/assets/js/components/admin/ListItemArchivedGroup.js | jrm2k6/i-heart-reading | import React, { Component } from 'react';
class ListItemArchivedGroup extends Component {
constructor(props) {
super(props);
this.state = {
hovering: false
};
}
render() {
const { id, name, nickname, grade, teacher, students } = this.props.group;
const teacherContent = (teacher != nul... |
com/jessewarden/contacts/toolbar/NewContactHeader.js | JesterXL/react-bootstrap-express-cassandra-contacts | import React from 'react';
import ReactDOM from 'react-dom';
import EventBus from '../EventBus';
import StyleConstants from '../StyleConstants';
import {Router, Route, Link, hashHistory} from 'react-router';
import DoneButton from './DoneButton';
class NewContactHeader extends React.Component
{
constructor(props)
{
... |
packages/ui-toolkit/src/form/checkbox.js | yldio/joyent-portal | import styled from 'styled-components';
import React from 'react';
import PropTypes from 'prop-types';
import remcalc from 'remcalc';
import BaseInput from './base/input';
import BaseToggle from './base/toggle';
const Li = styled.li`
list-style-type: none;
display: flex;
align-items: center;
display: flex;
... |
blueocean-material-icons/src/js/components/svg-icons/action/account-box.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionAccountBox = (props) => (
<SvgIcon {...props}>
<path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1H6v-1z"/>
... |
packages/node_modules/@webex/widget-recents/src/components/UserProfileAvatar.js | adamweeks/react-ciscospark-1 | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {Avatar, MenuContent, Menu, MenuItem, MenuOverlay} from '@momentum-ui/react';
import PresenceAvatar from '@webex/react-container-presence-avatar';
import styles from './UserProfileAvatar.css';
const propTypes... |
docs/src/pages/system/palette/Color.js | lgollut/material-ui | import React from 'react';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
export default function Color() {
return (
<Typography component="div" variant="body1">
<Box color="primary.main">primary.main</Box>
<Box color="secondary.main">secondary.main</B... |
packages/lore-hook-forms-material-ui/src/index.js | lore/lore-forms | /* eslint no-param-reassign: "off" */
import React from 'react';
import _ from 'lodash';
import formLoader from './loaders/forms';
import defaultFormConfig from './config';
export { defaultFormConfig as config };
export { default as CreateOptimisticBlueprint } from './blueprints/create/Optimistic';
export { default ... |
src/js/components/icons/base/Restroom.js | odedre/grommet-final | /**
* @description Restroom SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @p... |
src/server.js | edmcouncil/specsite | /* @flow */
import path from 'path';
import morgan from 'morgan';
import express from 'express';
import compression from 'compression';
import helmet from 'helmet';
import hpp from 'hpp';
import favicon from 'serve-favicon';
import React from 'react';
import { renderToString, renderToStaticMarkup } from 'react-dom/ser... |
src/elements/image.js | bokuweb/re-bulma | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from '../../build/styles';
import { getCallbacks } from '../helper/helper';
export default class Image extends Component {
static propTypes = {
style: PropTypes.object,
className: PropTypes.string,
src: PropTypes.... |
front/app/app/pages/portal/PortalChannelPage.js | nudoru/React-Starter-2-app | import React from 'react';
import { history } from 'react-router-dom';
import Lorem from '../../utils/Lorem';
import { connect } from 'react-redux';
import { CardMasonry33Group } from '../../rh-components/rh-Card';
import { NeutralButton } from '../../rh-components/rh-Button';
import { Col, Row } from '../../rh-compone... |
js/components/SearchBar/SearchBar.js | xuorig/insyto | import React from 'react';
import Relay from 'react-relay';
import 'babel/polyfill';
import styles from './SearchBar.css';
import _ from 'underscore';
import FilterBox from './FilterBox'
var FILTER_BOX_STATES = {
OPENED: 'open',
CLOSED: 'closed',
}
class SearchBar extends React.Component {
constructor() {
s... |
examples/auth-with-shared-root/components/PageTwo.js | bs1180/react-router | import React from 'react'
const PageOne = React.createClass({
render() {
return <h2>Page Two! Wooo!</h2>
}
})
export default PageOne
|
fixtures/ssr/src/index.js | rickbeerendonk/react | import React from 'react';
import {createRoot} from 'react-dom';
import App from './components/App';
let root = createRoot(document, {hydrate: true});
root.render(<App assets={window.assetManifest} />);
|
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/steps/index.js | bhathiya/test | 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 PropTypes ... |
docs/app/Examples/elements/List/Variations/ListExampleAnimated.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Image, List } from 'semantic-ui-react'
const ListExampleAnimated = () => (
<List animated verticalAlign='middle'>
<List.Item>
<Image avatar src='http://semantic-ui.com/images/avatar/small/helen.jpg' />
<List.Content>
<List.Header>Helen</List.Header>
</... |
src/web/containers/PatientSelect/__mocks__/Header.js | asha-nepal/AshaFusionCross | /**
* Copyright 2017 Yuichiro Tsuchiya
*
* 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 agr... |
src/containers/Shoppingcart/container/CompleteBuyTicketInfo.js | MeetDay/dreampark-web | import React from 'react';
import Cookies from 'universal-cookie';
import { Helmet } from 'react-helmet';
import PropTypes from 'prop-types';
import superagent from 'superagent';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { asyncConnect } from 'redux-async-connect';
import { bind... |
src/svg-icons/notification/wifi.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationWifi = (props) => (
<SvgIcon {...props}>
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9... |
src/mixins/helpers.js | jordansexton/react-slick | 'use strict';
import React from 'react';
import ReactTransitionEvents from 'react/lib/ReactTransitionEvents';
import {getTrackCSS, getTrackLeft, getTrackAnimateCSS} from './trackHelper';
import assign from 'object-assign';
var helpers = {
initialize: function (props) {
var slideCount = React.Children.count(prop... |
test/integration/scss-fixtures/compilation-and-prefixing/pages/_app.js | flybayer/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.scss'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
src/js/components/catalog/app-catalog.js | SteveHoggNZ/react-flux-shopping-cart | import React from 'react';
import AppStore from '../../stores/app-store';
import CatalogItem from './app-catalogitem';
import StoreWatchMixin from '../../mixins/StoreWatchMixin';
function getCatalog(){
return { items: AppStore.getCatalog() }
}
const Catalog = (props) => {
let items = props.items.map( item => {
... |
app/components/Case/Post.js | pacmessica/hackathon-frontend | import React from 'react';
import PropTypes from 'prop-types';
import styles from './Case.scss';
import htmlToText from 'app/common/parser';
export class Post extends React.Component {
constructor() {
super();
this.state = {
hidden: true,
};
}
toggleHidden = () => {
... |
src/pages/Admin/Dashboard/Dashboard.js | muhammadsayuti/releasify-server | import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import Table from '@material-ui/core/Table'
import TableRow from '@material-ui/core/TableRow'
import TableBody from '@material-ui/core/TableBody'
import TableCell from '@material-ui/core/TableCell'
import TableHead from '@material-... |
frontend/src/Album/Details/AlbumDetailsPageConnector.js | lidarr/Lidarr | import { push } from 'connected-react-router';
import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import NotFound from ... |
app/javascript/mastodon/features/ui/components/modal_root.js | mhffdq/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import BundleContainer from '../containers/bundle_container';
import BundleModalError from './bundle_modal_error';
import ModalLoading from './modal_loading';
import ActionsModal from './actions_modal';
import MediaModal from './media_modal';
import VideoMo... |
frontend/src/containers/Indexing/index.js | webrecorder/webrecorder | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import { basename } from 'path';
import Modal from 'components/Modal';
import './style.scss';
const { ipcRenderer } = window.require('electron');
class Ind... |
docs/src/app/components/pages/components/Stepper/VerticalNonLinearStepper.js | matthewoates/material-ui | import React from 'react';
import {
Step,
Stepper,
StepButton,
StepContent,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* A basic vertical non-linear implementation
*/
class VerticalNonLinear extends React.Component {... |
ajax/libs/react-instantsearch/4.1.0/Dom.js | extend1994/cdnjs | /*! ReactInstantSearch 4.1.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ===... |
src/svg-icons/content/drafts.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentDrafts = (props) => (
<SvgIcon {...props}>
<path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>... |
admin/client/Signin/components/Brand.js | michaelerobertsjr/keystone | /**
* Renders a logo, defaulting to the Keystone logo if no brand is specified in
* the configuration
*/
import React from 'react';
const Brand = function (props) {
// Default to the KeystoneJS logo
let logo = { src: `${Keystone.adminPath}/images/logo.png`, width: 205, height: 68 };
if (props.logo) {
// If th... |
src/containers/DevToolsWindow.js | adammockor/fridge | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
export default createDevTools(
<LogMonitor />
);
|
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/Alert.js | brett-harvey/Smart-Contracts | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import classNames from 'classnames';
import React from 'react';
import uncontrollable fro... |
src/svg-icons/image/tune.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTune = (props) => (
<SvgIcon {...props}>
<path d="M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"/>
</SvgIcon>
);
ImageTune = pure... |
src/App.js | ibsukru/pizzaStore | import './App.css'
import React from 'react'
import { Order } from './components'
import { store, client, Provider } from './reducers'
const App = () => (
<Provider store={store} client={client}>
<main>
<Order />
</main>
</Provider>
)
export default App
|
src/components/tcomb/TextInput.js | OlivierVillequey/hackathon | /**
* Text Input template for tcomb
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import { View } from 'react-native';
// Components
import { FormInput, FormLabel, FormValidationMessage } from '@ui/';
/* Component ================================... |
docs/src/pages/components/chips/ChipsArray.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Chip from '@material-ui/core/Chip';
import Paper from '@material-ui/core/Paper';
import TagFacesIcon from '@material-ui/icons/TagFaces';
const useStyles = makeStyles((theme) => ({
root: {
display: 'flex',
justifyContent:... |
src/components/Message.js | mleonard87/chapp-client | import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
export default React.createClass({
userInitials: function() {
const names = this.props.message.get('author').split(' ');
var initials = '';
for (var i in names) {
initials += names[i].substr(0, 1).toUpperCase()... |
stories/appBar.js | JAdshead/j-react-ui | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';
import { action } from '@storybook/addon-actions';
import { AppBar, Button } from 'j-react-ui';
const navBarStory = storiesOf('AppBar', module)
const Nav = () => (
<ul>
<li>Button</li>
... |
src/Type/StringType.js | reactmob/dos-filter | import React from 'react';
import AbstractType from './AbstractType';
const FILTER_EQUAL = 'EQUAL';
const FILTER_NOT_EQUAL = 'NOT_EQUAL';
const FILTER_EMPTY = 'EMPTY';
const FILTER_NOT_EMPTY = 'NOT_EMPTY';
const FILTER_CONTAINS = 'CONTAINS';
const FILTER_NOT_CONTAINS = 'NOT_CONTAINS';
const FILTER_STARTS_WITH = 'STAR... |
src/routes/register/index.js | FamilyPlanerTeam/family-planner | /**
* 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 Layout from '../../co... |
Realization/frontend/czechidm-core/src/content/identity/IdentityDelegationDefinitionRoutes.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import * as Utils from '../../utils';
import { DelegationDefinitionManager } fr... |
examples/real-world/containers/Root.js | kdepp/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from '../store/configureStore';
import App from './App';
import UserPage from './UserPage';
import RepoPage from './RepoPage';
const store = configureStore();
export de... |
src/app/views/savedRecipes.js | webcoding/soapee-ui | import _ from 'lodash';
import React from 'react';
import Reflux from 'reflux';
import { Link } from 'react-router';
import meStore from 'stores/me';
import meActions from 'actions/me';
import RecipeListItem from 'components/recipeListItem';
import Spinner from 'components/spinner';
export default React.createClas... |
app/components/Accounts/Proxy.js | aaroncox/vessel | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Button, Checkbox, Divider, Form, Header, Icon, Input, List, Message, Modal, Segment, Table } from 'semantic-ui-react';
import NumericLabel from '../../utils/NumericLabel'
import AccountName from '../global/AccountName';... |
packages/elza-react/src/Label.js | octree-gva/elzajs | import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import withErrors from './utils/withErrors';
/**
* Label
*/
class Label extends React.Component {
static displayName = 'Label';
static propTypes = {
htmlFor: PropTypes.string.isRequired,
className: PropTypes.string,
... |
example/examples/ImageOverlayWithAssets.js | wannyk/react-native-maps | import React, { Component } from 'react';
import { StyleSheet, View, Dimensions } from 'react-native';
import MapView from 'react-native-maps';
import flagPinkImg from './assets/flag-pink.png';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 35.679976;
const ... |
src/shared/routes.js | travi/travi.org-admin | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import {NotFound, Index} from '@travi/admin.travi.org-components';
import Wrap from './views/theme/wrap/component';
import ResourceList from './views/resources/list/connected-list';
import Person from './views/persons/individual/component';
imp... |
packages/stockflux-launcher/src/index.js | owennw/OpenFinD3FC | import React from 'react';
import ReactDOM from 'react-dom';
import { OpenfinApiHelpers } from 'stockflux-core';
import App from './App';
import './index.css';
const mountApp = () => {
ReactDOM.render(<App />, document.getElementById('root'));
};
if (OpenfinApiHelpers.getWindow()) {
OpenfinApiHelpers.useMain(mou... |
client/pages/home/index.js | fdesjardins/webgl | import React from 'react'
import Menu from '-/components/menu'
const Index = () => {
return <Menu />
}
export default Index
|
geonode/contrib/monitoring/frontend/src/components/atoms/hover-paper/index.js | ingenieroariel/geonode | import React from 'react';
import PropTypes from 'prop-types';
import Paper from 'material-ui/Paper';
class HoverPaper extends React.Component {
static propTypes = {
children: PropTypes.node,
style: PropTypes.object,
onClick: PropTypes.func,
}
constructor(props) {
super(props);
this.state ... |
actor-apps/app-web/src/app/components/modals/AddContact.react.js | bensonX/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... |
src/svg-icons/action/today.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToday = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-1V1h-2v2H8V1H6v2H5c-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-2zm0 16H5V8h14v11zM7 10h5v5H7z"/>
</SvgIcon>
);
Ac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.