path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
node_modules/react-router/es6/IndexRoute.js | Maxwelloff/react-football | 'use strict';
import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './PropTypes';
var func = React.PropTypes.func;
/**
* An <IndexR... |
app/jsx/due_dates/DueDateCalendarPicker.js | venturehive/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
client/src/Player.js | jghibiki/Doc | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Iframe from 'react-iframe'
import { withStyles } from '@material-ui/core/styles';
import Host from './Host.js';
import ws_client from './WebSocketClient.js';
import MagicModeMarker from './MagicModeMarker.js';
const styles = theme =... |
examples/dynamic-segments/app.js | dmitrigrabov/react-router | import React from 'react'
import { Router, Route, Link, Redirect } from 'react-router'
import { createHistory, useBasename } from 'history'
const history = useBasename(createHistory)({
basename: '/dynamic-segments'
})
class App extends React.Component {
render() {
return (
<div>
<ul>
<... |
frontend/sections/admin/pre-render/pre-render.js | apostolidhs/wiregoose | import React from 'react';
import { Link } from 'react-router';
import FontAwesome from 'react-fontawesome';
import ListView from '../../../components/list-view/list-view.js';
import Form from '../../../components/pre-render/form.js';
import ResponseTransformation
from '../../../components/pre-render/response-transf... |
spec/components/app_bar.js | VACO-GitHub/vaco-components-library | import React from 'react';
import AppBar from '../../components/app_bar';
const AppBarTest = () => (
<section>
<h5>AppBar</h5>
<br/>
<AppBar title='Title' />
<br/>
<AppBar leftIcon='menu' title='Title' />
<br/>
<AppBar leftIcon='arrow_back' title='Title' rightIcon='close' />
<br/>
... |
webpack/components/extensions/RegistrationCommands/fields/Force.js | Katello/katello | import React from 'react';
import PropTypes from 'prop-types';
import { noop } from 'foremanReact/common/helpers';
import { FormGroup, Checkbox } from '@patternfly/react-core';
import LabelIcon from 'foremanReact/components/common/LabelIcon';
import { translate as __ } from 'foremanReact/common/I18n';
const Force = (... |
src/js/Components/Common/EditableComponent.js | mattgordils/DropSplash | import React, { Component } from 'react';
import 'sass/components/common/input-switch';
import EditOptions from 'Components/Common/EditOptions'
export default class App extends Component {
constructor (props) {
super(props);
this.state = {
editing: false
};
}
editableTag(text) {
var tag = 'h... |
src/js/components/common/emailLink.js | jrnail23/sitterswap-js | import React from 'react'
export default class extends React.Component {
static propTypes = {
displayText: React.PropTypes.string,
emailAddress: React.PropTypes.string.isRequired
}
render () {
return (<a href={'mailto:' + this.props.emailAddress}>{this.props.displayText || this.props.emailAddress}</... |
src/layouts/Header/components/Header.js | dkanas/timelog | import React from 'react'
import LoginButton from './LoginButton'
import AvatarMenu from './AvatarMenu'
import './Header.scss'
const AuthAwareComponent = props => props.isAuthenticated
? <AvatarMenu {...props} />
: <LoginButton />
const Header = props => (
<header className='header__container'>
<h1>Timelog... |
src/svg-icons/maps/local-post-office.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPostOffice = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
MapsLocalPostOff... |
src/routes.js | Ehesp/react-flux-webpack-boilerplate | import React from 'react';
import { Route } from 'react-router';
import { GenerateRoute } from './utils';
export default (
<Route component={ require('./pages/root') }>
{ GenerateRoute({
paths: ['/', '/home'],
component: require('./pages/Home')
}) }
{ GenerateRoute({
paths: ['/account'],
component: ... |
app/javascript/mastodon/features/status/components/action_bar.js | hugogameiro/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from '../../../components/icon_button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
i... |
client/src/index.js | pierrekraemer/modular-react-node-app | import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.css';
import 'font-awesome/css/font-awesome.css';
import { createStore, combineReducers, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunkMiddleware from 'redux-thunk';
import { HashRo... |
src/TaskCreator.js | mitul45/ta-calendar | /**
* Module for adding task, consisting input box for task name,
* and two select fields for duration and start time.
*
* Calls parents addTask method on creation of task
*/
import React from 'react';
import Utils from './Utils'
const START_TIME = Utils.START_TIME;
const END_TIME = Utils.END_TIME;
var TaskCrea... |
src/scripts/components/Nav.js | scyclow/fastcashmoneyplusdotbiz | import React from 'react';
import NavTicker from './NavTicker';
const Nav = ({ colors }) => {
const height = 50;
const style = {
height,
position: 'fixed',
width: '100%',
textAlign: 'center',
fontSize: 21,
color: colors.primary,
backgroundColor: colors.inverse
};
return (
<div ... |
fields/types/Field.js | frontyard/keystone | import classnames from 'classnames';
import evalDependsOn from '../utils/evalDependsOn.js';
import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormNote } from '../../admin/client/App/elemental';
import blacklist from 'blacklist';
import CollapsedFieldLabel from '../compon... |
pages/schedule.js | alexxpan/calwtcrew | import React from 'react';
import Schedule from '../components/Schedule';
import schedule from '../assets/images/schedule.jpg';
const ScheduleComponent = () => (
<div>
<div className="page__header">
2015-2016 Race Schedule and Results
</div>
<Schedule />
<img id="schedule__pic" alt="" src={sche... |
docs/src/pages/demos/dividers/ListDividers.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import List, { ListItem, ListItemText } from 'material-ui/List';
import Divider from 'material-ui/Divider';
const styles = theme => ({
root: {
width: '100%',
maxWidth: '360px',
backgroundColor:... |
packages/material-ui-icons/src/Subject.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z" /></g>
, 'Subject');
|
src/basic/ListItem.js | chaitanya0bhagvan/NativeBase | import React, { Component } from 'react';
import { TouchableHighlight, Platform, TouchableNativeFeedback, View } from 'react-native';
import { connectStyle } from 'native-base-shoutem-theme';
import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames';
import variable from '../theme/variables/platform';
class Li... |
src/svg-icons/editor/format-align-left.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignLeft = (props) => (
<SvgIcon {...props}>
<path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignLeft = pure(EditorFormatAlignL... |
src/layouts/index.js | Thieurom/doanthieu.com | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'gatsby-link';
import Helmet from 'react-helmet';
import styles from './index.module.sass';
import theme from '../shared/prism.css';
const TemplateWrapper = ({ children }) => (
<div>
<Helmet title='Doan Thieu'
... |
examples/sidebar/app.js | birendra-ideas2it/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link } from 'react-router'
import data from './data'
require('./app.css')
const history = useBasename(createHistory)({
basename: '/sidebar'
})
class Category extends React.Component {
render() {
const categ... |
app/javascript/mastodon/features/lists/components/new_list_form.js | ikuradon/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { changeListEditorTitle, submitListEditor } from '../../../actions/lists';
import IconButton from '../../../components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = def... |
src/components/Page1.js | kinseyost/immutable-redux | import React from 'react';
export default function Page1() {
return (
<div>Page 1</div>
);
}
|
src/svg-icons/action/settings-input-component.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputComponent = (props) => (
<SvgIcon {...props}>
<path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.... |
node_modules/react-bootstrap/es/ModalTitle.js | GregSantulli/react-drum-sequencer | 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 ... |
tools/template/index/root/Root.prod.js | SteamerTeam/steamer-react | import React, { Component } from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from '../stores/configureStore';
import IndexWrapper from '../container/index';
let store = configureStore();
export default class Root extends Component {
render() {
... |
packages/app/app/containers/FavoritesContainer/index.js | nukeop/nuclear | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import _ from 'lodash';
import * as SearchActions from '../../actions/search';
import * as FavoritesActions from '../../actions/favorites';
import * as QueueActions from '..... |
plugins/react/server/__test__/components/ComponentB/index.js | pure-ui/styleguide | import React from 'react';
export default () => <div></div>;
|
app/javascript/mastodon/features/ui/components/column_header.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
... |
src/docs/examples/ProgressBar/Example10Percent.js | alopezitrs/ps-react-analo | import React from 'react';
import ProgressBar from 'ps-react/ProgressBar';
/** 10% progress */
export default function Example10Percent() {
return <ProgressBar percent={10} width={150} />
}
|
source/shared/components/controlBar/index.js | gacosta89/knightsTour | import React from 'react';
import { mapX, mapY } from 'shared/util/coords';
import createMessage from 'shared/components/message';
import createButton from 'shared/components/button';
import greyWoodUrl from 'static/grey-wood-texture.jpg';
//styles
const controlBarStyle = {
display: 'flex',
flexDirection: 'column... |
src/esm/components/graphics/icons/italic-icon/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var ItalicIcon = function ItalicIcon(_ref) {
var color = _re... |
src/svg-icons/action/assignment-ind.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentInd = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 ... |
src/index.js | gerCasas/ReduxSimpleStarter | //para importar react al archivo, el return <div>Hola!</div>; es JSX y en realidad regresa JS con referencia al modulo de react.
import _ from 'lodash';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';
// como estamos importando un componente que nos... |
client/src/lab/tasks.js | brandiqa/open-lims | import React from 'react';
import { inject } from 'mobx-react';
import { LAB_ROUTE } from '../config/routes';
import DomainPage from '../templates/domain-page';
import DomainRoutes from '../templates/domain-routes';
import DomainSchema from '../templates/domain-schema';
@inject("stores")
class Tasks extends React.Comp... |
react-native-life/ReactNativeLife/js/Components/WebView/WebViewExample.js | CaMnter/front-end-life | /**
* @author CaMnter
*/
import React from 'react';
import {
StyleSheet,
Text,
TextInput,
TouchableWithoutFeedback,
TouchableOpacity,
View,
WebView,
} from 'react-native';
let HEADER = '#3b5998';
let BGWASH = 'rgba(255,255,255,0.8)';
let DISABLED_WASH = 'rgba(255,255,255,0.25)';
let TEX... |
src/Jumbotron.js | zerkms/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Jumbotron = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: CustomPropTypes.elementType
},
getDefaultProps() {
... |
src/video/VideoListContainer.js | qingweibinary/binary-next-gen | import React, { Component } from 'react';
import shouldPureComponentUpdate from 'react-pure-render/function';
import { connect } from 'react-redux';
import VideoList from './VideoList';
import immutableChildrenToJS from 'binary-utils/lib/immutableChildrenToJS';
import videoSelectors from './VideoSelectors';
@connect(... |
frontend/src/containers/App/index.js | qiubit/luminis | /*
* Copyright (C) 2017 Paweł Goliński
* Copyright (C) 2017 Piotr Wiśniewski
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import React from 'react'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import Drawer fr... |
src/svg-icons/av/not-interested.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvNotInterested = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12... |
packages/component/src/Toast/ExclamationMarkIcon.js | billba/botchat | import PropTypes from 'prop-types';
import React from 'react';
const ExclamationMarkIcon = ({ 'aria-label': ariaLabel, className }) => (
<svg
aria-label={ariaLabel}
className={(className || '') + ''}
height="19"
viewBox="0 0 19 19"
width="19"
xmlns="http://www.w3.org/2000/svg"
>
<path d... |
src/svg-icons/hardware/tablet-android.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTabletAndroid = (props) => (
<SvgIcon {...props}>
<path d="M18 0H6C4.34 0 3 1.34 3 3v18c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V3c0-1.66-1.34-3-3-3zm-4 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z"/>
</SvgIcon... |
fields/components/columns/InvalidColumn.js | Yaska/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var InvalidColumn = React.createClass({
displayName: 'InvalidColumn',
propTypes: {
col: React.PropTypes.object,
},
renderValue () {
return (
<ItemsTableVal... |
node_modules/rc-input-number/es/index.js | prodigalyijun/demo-by-antd | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import classNames from 'classnames';
import mixin from './mixin';
import InputHandle... |
src/docs/components/notification/NotificationDoc.js | grommet/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Notification from 'grommet/components/Notification';
import Button from 'grommet/components/Button';
import Anchor from 'grommet/components/Anchor';
import DocsArticle from '../../../components/DocsArt... |
src/routes/notFound/index.js | GLExperiments/GLExperiments | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import NotFound from './NotFoun... |
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/InputsErrorsDialog.js | Katello/katello | import React from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import { MessageDialog } from 'patternfly-react';
const InputsErrorsDialog = ({
show, showErrorDialog,
}) => (
<MessageDialog
show={show}
title={__('Editing Entitlements')}
seconda... |
packages/generator-react-server/generators/app/templates/components/hello-world.js | davidalber/react-server | import React from 'react';
import {logging} from 'react-server';
const logger = logging.getLogger(__LOGGER__);
export default class HelloWorld extends React.Component {
constructor(props) {
super(props);
this.state = {exclamationCount: 0};
this.handleClick = () => {
logger.info(`Getting more excited! previo... |
src/components/monsters.js | corybuecker/monster-maker | import React from 'react'
import Store from '../store'
import Monster from './monster'
import Actions from '../actions'
export default class Monsters extends React.Component {
constructor(props) {
super(props)
this.state = {
monsters: Store.getAllMonsters(),
}
this.updateState = this.updateStat... |
ui/src/components/category-bar-section/index.js | indraneel/sustainability-dashboard | import React, { Component } from 'react';
import style from './category-bar-section.style.js';
import Paper from 'material-ui/Paper';
class CategoryBarSection extends Component {
constructor(props) {
super(props);
this.toggleAction = this.toggleAction.bind(this);
}
toggleAction(e) {
this.props.hand... |
src/js/components/Button/stories/CustomThemed/ThemedButtons.js | HewlettPackard/grommet | import React from 'react';
import { Box, Button, Grommet, Heading } from 'grommet';
const kindButtonTheme = {
global: {
colors: {
brand: '#ee9933',
'brand-contrast': '#ee993333',
active: '#eecc33',
},
font: { family: 'Arial' },
},
button: {
default: {
color: 'text',
... |
front/src/components/Comment.js | muhammad-awan/financial-news | import React from 'react'
export default function Comment({
_id,
text
// commentBy
}){
return(
<div>
<p>{ text }</p>
</div>
)
} |
client/mailing-lists/controller.js | Kimsangcheon/wp-calypso | /**
* External Dependencies
*/
import omit from 'lodash/omit';
import ReactDom from 'react-dom';
import React from 'react';
import { setSection } from 'state/ui/actions';
/**
* Internal Dependencies
*/
import MainComponent from './main';
export default {
unsubscribe( context ) {
// We don't need the sidebar he... |
src/components/GlobalNav/GlobalNav.story.js | gabe-terrell/acme-freight-webui | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import GlobalNav from './GlobalNav';
import RoleSwitcher from './RoleSwitcher';
const users = [
{
id: 1,
role: 'supplychainmanager',
loggedIn: true,
},
{
id: 2,
role: 'retailstoremanager',
location: 'Austin, TX',
... |
src/components/reflorp.js | tomat/react-reflorp | import React, { Component } from 'react';
import { connect as defaultRefetch } from 'react-refetch';
import { connect as redux } from 'react-redux';
import hoistStatics from 'hoist-non-react-statics';
import { refetchPrefix } from '../ConfigurationHelper';
const defaultMapPropsToEntities = () => ({});
const defaultOpt... |
src/javascripts/components/StatsDisplay.js | nickstanish/visual-audio-js | import React from 'react';
require('./StatsDisplay.css');
export default class StatsDisplay extends React.Component {
componentDidMount() {
const { stats } = this.props;
if (stats) {
this._container.appendChild( stats.domElement );
}
}
shouldComponentUpdate() {
return false;
}
bindRef... |
src/pages/404.js | nickfranciosi/terminal-frontend | import React from 'react'
const NotFoundPage = () => (
<div>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</div>
)
export default NotFoundPage
|
src/index.js | wilsonkv/mock-project | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
// react-md utilizes Google's material icons
import WebFont from 'webfontloader';
WebFont.load({ google: { families: ['Hind:300, 700', 'Material Icons'] } });
impo... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/Nav.js | GoogleCloudPlatform/prometheus-engine | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["className", "cssModule", "tabs", "pills", "vertical", "horizontal", "justified", "fill", "navbar", "card", "tag"];
import React from 'react';
... |
src/Components/Posts/Single.js | AdamSoucie/Ignis | import React from 'react';
import config from '../../lib/config';
import Parser from 'html-react-parser';
import './css/style-single.css';
class Single extends React.Component
{
constructor(props)
{
super(props);
this.state = {
title: '',
content: '',
featuredImage: '',
}
this.ge... |
src/views/pages/tasks/tasks-page.js | r-park/todo-react-redux | import React, { Component } from 'react';
import { List } from 'immutable';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { getNotification, notificationActions } from 'src/notification';
import { getTaskFilter, getVisibleTasks, tasksAction... |
src/frontend/components/Stargates.js | ErdMutter92/Project-Atlantis | import React from 'react';
import Bootstrap from 'react-bootstrap';
import axios from 'axios';
import StargateDataService from '../services/stargate';
import Entry from './stargates/Entry';
var Stargates = React.createClass({
getInitialState: function () {
return {
stargates: []
};
},
componentDidMount: func... |
src/components/CircleProgressBar/index.js | iris-dni/iris-frontend | import React from 'react';
import ReactDOM from 'react-dom';
import styles from './circleprogressbar.scss';
import settings from 'settings';
import ProgressBar from 'progressbar.js';
const CircleProgressBar = React.createClass({
getDefaultProps: () => ({
percentage: 0,
animated: false,
size: 'small',
... |
src/icons/IosPersonaddOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosPersonaddOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<polygon points="416,153 391,153 391,128 377,128 377,153 352,153 352,167 377,167 377,192 391,192 391,167 416,167 ... |
app/components/link/index.js | 12go/client-app | import React from 'react'
import app from '../../app.js'
export default React.createClass({
handleClick(event) {
const { external } = this.props
if (external) return
event.preventDefault()
app.router.navigate(event.target.pathname)
},
render() {
const { path, title } = this.props
ret... |
6-jest-snapshot/component.js | dcamilleri/experiments | import React from 'react'
export default class CustomForm extends React.Component {
constructor (props) {
super(props)
this.renderInput = this.renderInput.bind(this)
}
renderInput ({
type = 'text',
name,
className,
label,
placeholder = ''
}, i) {
return (
<div className='... |
lib/renderers/server.js | jvikraman/advanced-react | import React from 'react';
import ReactDOMServer from 'react-dom/server';
import axios from 'axios';
import StateApi from 'state-api';
import App from 'components/App';
import config from 'config';
const serverRender = async () => {
const resp = await axios.get(`http://${config.host}:${config.port}/data`);
const ... |
src/renderer/ui/components/modals/GoToModal.js | petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL- | import { remote } from 'electron';
import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
import Dialog from './ThemedDialog';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
export default class GoToModal extends Component {
constructor(...... |
fields/components/columns/IdColumn.js | Redmart/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obje... |
src/component/archive/Archive.js | ciyer/outlier | import React, { Component } from 'react';
import { Col, Row } from 'reactstrap';
import { Button, ButtonGroup, ButtonToolbar, FormText } from 'reactstrap';
import { Table } from 'reactstrap';
import { Link } from 'react-router-dom'
import { ReleaseImagesTitled } from '../ReleaseImages';
import { Histogram, BinnedSca... |
src/components/pages/MainLayout/MobileMenu2/index.js | humaniq/humaniq-pwa-website | import React from 'react'
import * as T from 'prop-types'
import './styles.scss'
import { cssClassName } from 'utils'
import { Link } from 'react-router'
const cn = cssClassName('SE_MainLayout_MobileMenu')
const socialIcons = `/img/design-v2/icons/social/sprite.svg`
const SE_MainLayout_MobileMenu = ({ mix, mobileMenuI... |
src/components/Header.js | odarino/odarino.github.io | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
let from = 0, to = 0;
class Header extends Component {
constructor(props) {
super(props);
this.state = {
indexFrom: 1,
indexTo: 1,
classForLine: ''
}
}
getActive... |
src/pages/HtmlHelmet.js | uwrov/uwrov.github.io | import React from 'react'
import { Helmet } from "react-helmet";
const HtmlHelmet = () => (
<Helmet>
<html lang="en" amp/>
<meta charSet="utf-8" name="description" content="UWROV Website"
http-equiv="Cache-control"/>
<title lang="en">UWROV</title>
<link rel="preload" href="http... |
web/src/main/webapp_source/src/components/Sales.js | mschvarc/PB138-Inventory-Management | import React, { Component } from 'react';
import xslt from 'xslt';
import SalesForm from './components/SalesForm';
var xsltTemplate = require('./sales_preview_template.xsl');
class Sales extends Component {
render() {
var salesXml = this.props.sales;
var salesXmlPreview = null;
if(this.props.sales && this.p... |
src/components/LastVisited/withLastVisited.js | folio-org/stripes-core | import React from 'react';
import PropTypes from 'prop-types';
import { compose } from 'redux';
import { withRouter } from 'react-router';
import hoistNonReactStatics from 'hoist-non-react-statics';
import { withModules } from '../Modules';
import LastVisitedContext from './LastVisitedContext';
import { packageName } ... |
frontend/src/Components/Loading/LoadingIndicator.js | geogolem/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import styles from './LoadingIndicator.css';
function LoadingIndicator({ className, rippleClassName, size }) {
const sizeInPx = `${size}px`;
const width = sizeInPx;
const height = sizeInPx;
return (
<div
... |
src/app/routes/Signal/components/Signal.js | react-map/lr-map | import React, { Component } from 'react';
import { IndexLink, Link } from 'react-router';
import Subheader from 'material-ui/Subheader';
import IconButton from 'material-ui/IconButton';
import NavigationClose from 'material-ui/svg-icons/hardware/keyboard-arrow-left';
import Nav from '../../../components/Nav/Na... |
demo/button/button.js | kwangkim/react-mdl | import React from 'react';
import Button from '../../src/Button';
import FABButton from '../../src/FABButton';
import IconButton from '../../src/IconButton';
import Icon from '../../src/Icon';
class Demo extends React.Component {
render() {
return (
<div>
<h1>Colored FAB Button<... |
docs/src/sections/TooltipSection.js | jesenko/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function TooltipSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<A... |
src/routes/activity/edit/index.js | DiroKate/SysuhikerCC | import React from 'react';
import { connect } from 'dva';
import { browserHistory } from 'dva/router';
import moment from 'moment';
import {
Breadcrumb,
DatePicker,
Radio,
Row,
Col,
Alert,
Form,
Input,
Button,
Icon,
Tooltip,
} from 'antd';
import { Editor } from 'react-draft-wysiwyg';
import { Edi... |
src/components/icons/twitter.js | JovaniPink/measuredstudios | import React from 'react';
import PropTypes from 'prop-types';
const Twitter = ({ color }) => {
return (
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill={color}
xmlns="http://www.w3.org/2000/svg"
>
<g clipPath="url(#clip0)">
<path
d="M24 4.557a9.83 9... |
src/app/index.js | skratchdot/audio-automator | import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import AudioAutomator from '../lib/AudioAutomator';
import configureStore from './store/configureStore';
import routes from './routes';
// setup default audio gr... |
src/ButtonToolbar.js | mmarcant/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import Button from './Button';
import { bsClass, bsSizes, getClassSet, splitBsProps }
from './utils/bootstrapUtils';
class ButtonToolbar extends React.Component {
render() {
const { className, ...props } = this.props;
const [bsProps, elementP... |
server/react/app.js | ryordanov/hobby-collection | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
// import 'bootstrap/dist/css/bootstrap.min.css';
// import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Header from './common/Header.js';
import Footer from './common/F... |
frontend/components/host/hostings_index_container.js | qydchen/SafeHavn | import React from 'react';
import Hostings from './hostings_index';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { fetchMyHomes } from '../../actions/home_actions';
import { selectAll } from '../../reducers/selectors';
const mapStateToProps = ({session, homes}) => {
re... |
src/svg-icons/image/broken-image.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrokenImage = (props) => (
<SvgIcon {...props}>
<path d="M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42l3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4 ... |
src/main.js | far-fetched/kiwi | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import './styles/main.scss'
// Store Initialization
// ------------------------------------
const store = createStore(window.__INITIAL_STATE__)
// Render Setup
// ------------------------------------
const MOUNT_N... |
src/IconAvaWrapper/index.js | christianalfoni/ducky-components | import Avatar from '../Avatar';
import Icon from '../Icon';
import React from 'react';
import PropTypes from 'prop-types';
import Wrapper from '../Wrapper';
import classNames from 'classnames';
import styles from './styles.css';
function IconAvaWrapper(props) {
if (props.avatar) {
return (
<Wrapper
... |
components/ActionSheet/index.js | samuelngs/px |
import React, { Component } from 'react';
import { Alert, ActionSheetIOS, Platform, InteractionManager } from 'react-native';
export class ActionMenu extends Component {
static defaultProps = {
id: '',
text: '',
highlight: false,
onPress: () => { },
}
static propTypes = {
id: React.PropTyp... |
src/app/screens/App/index.js | docgecko/react-alt-firebase-starter | /*! React Alt Firebase Starter */
import React from 'react';
import { Route } from 'react-router';
import App from './shared/Layout/components/Layout';
import DashboardRoute from './screens/Dashboard/index';
export default (
<Route name='app' path='/' handler={App}>
{DashboardRoute}
</Route>
);
|
src/client/Viewer.Components/Viewer.Extensions.Dynamic/Viewing.Extension.BarChart/Viewing.Extension.BarChart.js | jaimerosales/visual-reports-bim360dc | /////////////////////////////////////////////////////////
// Viewing.Extension.BarChart
// by Philippe Leefsma, March 2017
//
/////////////////////////////////////////////////////////
import MultiModelExtensionBase from 'Viewer.MultiModelExtensionBase'
import { DropdownButton, MenuItem } from 'react-bootstrap'
import E... |
packages/mineral-ui-icons/src/IconLocalParking.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 IconLocalParking(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconP... |
react-flux-mui/js/material-ui/src/svg-icons/device/data-usage.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceDataUsage = (props) => (
<SvgIcon {...props}>
<path d="M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-7 0-3.53... |
src/components/Feedback/Feedback.js | geeksmarter/rtclol | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import s from '.... |
examples/official-storybook/components/ButtonGroup.js | storybooks/storybook | import React from 'react';
import PropTypes from 'prop-types';
/** ButtonGroup component description from docgen */
export const ButtonGroup = ({ background, children }) => (
<div style={{ padding: 10, background }}>{children}</div>
);
ButtonGroup.defaultProps = {
background: '#ff0',
children: null,
};
ButtonG... |
ui/src/components/NavigationBar/index.js | danielbh/danielhollcraft.com-gatsbyjs | import React from 'react'
import Link from 'gatsby-link'
const NavigationBar = ({ toggleSideBar }) => (
<div id="titleBar">
<span
onClick={toggleSideBar}
className="toggle"
></span>
<span className="title">
<Link to="/">Daniel Hollcraft</Link>
</span>
</div>
)
export default Navi... |
src/server/index.js | Mike1Q84/react-ssr-simple | import express from 'express';
import redis from 'redis';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { StaticRouter } from 'react-router-dom';
import { Helmet } from "react-helmet";
import App from '../shared/App';
import { Provider } from "react-redux";
import configureStore ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.