path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/containers/UserAttribute.js | dolchi21/web-lifx | import React from 'react'
import { connect } from 'react-redux'
export default connect((state, { name }) => {
return {
value: state.user[name]
}
})(props => (
<span>{props.value}</span>
))
|
fields/types/boolean/BooleanColumn.js | everisARQ/keystone | import React from 'react';
import Checkbox from '../../components/Checkbox';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var BooleanColumn = React.createClass({
displayName: 'BooleanColumn',
propTypes: {
col: React.PropTypes.object,
... |
docs/client/components/shared/GithubButton/index.js | draft-js-plugins/draft-js-plugins-v1 | import React, { Component } from 'react';
export default class GithubStarButton extends Component {
componentDidMount() {
const githubButton = this.refs.githubButton;
const githubScript = document.createElement('script');
githubScript.src = '//buttons.github.io/buttons.js';
githubScript.id = 'github... |
app/javascript/mastodon/components/modal_root.js | musashino205/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import 'wicg-inert';
import { createBrowserHistory } from 'history';
import { multiply } from 'color-blend';
export default class ModalRoot extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
... |
docs/src/GettingStartedPage.js | 15lyfromsaturn/react-materialize | import React from 'react';
import Row from '../../src/Row';
import Col from '../../src/Col';
import store from './store';
class GettingStartedPage extends React.Component {
componentDidMount() {
store.emit('component', 'Getting Started');
}
render() {
var htmlSetup = `<!DOCTYPE html>
<html>
<head>... |
presentation/index.js | philipphenkel/awesome-cards | //
// This file is released under Creative Commons Attribution 4.0 International License
// http://creativecommons.org/licenses/by/4.0/
//
// Health Check Model: Henrik Kniberg and Kristian Lindwall,
// with help from the other agile coaches at Spotify
// Spectacle Slide Deck: Philipp Henkel
//
... |
scripts/app/app.js | rek/grammar-notes | console.log('Starting to start app');
import React from 'react';
import ReactDOM from 'react-dom';
import {combineReducers, createStore, applyMiddleware, compose} from 'redux';
import thunkMiddleware from 'redux-thunk';
// import TestPageReducer from './reducers/test';
import AppRouter from './router';
import AppRed... |
src/ContentBlocks/Shared/VideoPlayer/Time.js | grommet/grommet-cms-content-blocks | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Box from 'grommet/components/Box';
import Heading from 'grommet/components/Heading';
import CSSClassnames from 'grommet/utils/CSSClassnames';
import { formatTime } ... |
src/LearnWordsFast/Client/js/components/ChangeLanguages.js | ugeolog/LearnWordsFast | import React from 'react';
import Reflux from 'reflux';
import _ from 'lodash';
import {Input, Button, Panel} from 'react-bootstrap';
import {UserSettingsStore, UserSettingsActions} from '../stores/UserSettingsStore';
import {LanguagesStore, LanguagesActions} from '../stores/LanguagesStore';
const ChangeLanguages = Re... |
src/modules/MaizuoLogged/maizuophone/index.js | skydaya/react-sell | /**
* Created by dllo on 17/9/5.
*/
import React from 'react'
import ReactDOM from 'react-dom'
import App from './app'
ReactDOM.render(
<App />,
document.getElementById('maizuophone')
) |
frontend/src/components/organizationProfile/edit/contactInformation/partnerProfileContactInfo.js | unicef/un-partner-portal | import R from 'ramda';
import React, { Component } from 'react';
import { withRouter, browserHistory as history } from 'react-router';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { getFormInitialValues, SubmissionError } from 'redux-form';
import PartnerProfileContactInfoConnectivi... |
fields/types/boolean/BooleanField.js | wustxing/keystone | import React from 'react';
import Field from '../Field';
import { Checkbox, FormField, FormNote } from 'elemental';
module.exports = Field.create({
displayName: 'BooleanField',
propTypes: {
indent: React.PropTypes.bool,
label: React.PropTypes.string,
note: React.PropTypes.string,
onChange: React.PropTypes.... |
src/components/DropdownMenu.js | dkozar/react-data-menu | import _ from 'lodash';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Aligner from './../util/Aligner.js';
import Dom from './../util/Dom';
import Menu from './Menu';
import MenuEmitter from './../emitters/MenuEmitter.js';
import ClickUtil from './../util/click';
var classnames = r... |
app/containers/Logout/index.js | surzhik/coreola5 | /**
* Created by home on 21.08.2016.
*/
import React from 'react';
import {connect} from 'react-redux';
import {selectFormState} from '../../utils/auth/selectors';
import {createStructuredSelector} from 'reselect';
import {logout} from '../../utils/auth/actions'
export class Logout extends React.Component {
comp... |
src/svg-icons/image/blur-linear.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBlurLinear = (props) => (
<SvgIcon {...props}>
<path d="M5 17.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5zM9 13c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-4c.55 0 1-.45 1-... |
app/react-icons/fa/viadeo.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaViadeo extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m28.9 24.7q0 4.8-3.2 8.3-3.3 3.6-8.5 3.6-5.2 0-8.4-3.6-3.3-3.5-3.3-8.3 0-3.3 ... |
src/components/ExperienceDetail/Article/index.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import R from 'ramda';
import { P } from 'common/base';
import GradientMask from 'common/GradientMask';
import { useShareLink } from 'hooks/experiments';
import { formatCommaSeparatedNumber } from 'utils/stringUtil';
import styles from './Article.module.cs... |
src/containers/DevTools/DevTools.js | apedyashev/react-universal-jobs-aggregator | 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-Q">
<LogMonitor />
</DockMonitor... |
app/javascript/mastodon/features/ui/components/modal_loading.js | yi0713/mastodon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body'>
... |
vendor/laravel/framework/src/Illuminate/Foundation/Console/Presets/react-stubs/Example.js | demoxu/blog | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
export default class Example extends Component {
render() {
return (
<div className="container">
<div className="row">
<div className="col-md-8 col-md-offset-2">
... |
src/Parser/Rogue/Assassination/Modules/Spells/GarroteUptime.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
import Enemies from 'Parser/Core/Modules/Enemies';
import StatisticBox from 'Main/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import STATISTIC_ORDE... |
packages/showcase/misc/zoomable-chart-example.js | uber-common/react-vis | // Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
classic/src/scenes/wbfa/generated/FABTrello.pro.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faTrello } from '@fortawesome/free-brands-svg-icons/faTrello'
export default class FABTrello extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faTrello} />)
}
}
|
src/pages/Profile.js | thrawny/hscards | /**
* Created by thrawn on 23/01/16.
*/
import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { fetchProfileData } from '../actions'
class ProfilePage extends Component {
componentDidMount() {
this.props.dispatch(fetchProfileData())
}
... |
client/components/portada/Portada.js | EstebanFuentealba/biobiochile-mobile-spa | import React from 'react';
import UltimoMinuto from './UltimoMinuto';
import GranTitular from './GranTitular';
import request from 'superagent';
export default class Portada extends React.Component {
constructor(props) {
super(props);
let me = this;
me.state = {
data: DATA
};
me.updateData... |
admin/client/App/elemental/DropdownButton/index.js | danielmahon/keystone | /* eslint quote-props: ["error", "as-needed"] */
import React from 'react';
import { css } from 'glamor';
import Button from '../Button';
function DropdownButton ({ children, ...props }) {
return (
<Button {...props}>
{children}
<span className={css(classes.arrow)} />
</Button>
);
};
// NOTE
// 1: take a... |
docs/src/app/components/pages/components/Divider/Page.js | matthewoates/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import dividerReadmeText from './README';
import DividerExampleForm from './Exam... |
node-react/client/src/main_controller/MainController.js | FabioZTessitore/probability | import React, { Component } from 'react';
import Landing from '../landing/Landing';
import SignIn from '../signin/Signin';
import Home from '../home/Home';
class MainController extends Component {
constructor (props) {
super(props);
this.state = {
page: 'landing',
//page: 'signin',
};
th... |
docs/app/Examples/modules/Dropdown/Content/DropdownExampleMessage.js | ben174/Semantic-UI-React | import React from 'react'
import { Dropdown, Message } from 'semantic-ui-react'
const DropdownExampleMessage = () => (
<Dropdown text='Login' floating labeled button className='icon'>
{/* <i class="filter icon"></i> */}
<Dropdown.Menu>
<Message error header='Error' content='You must log-in to see all c... |
node_modules/react-router/es6/IndexRedirect.js | Jaime691/ReactTube | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
src/app.js | catalinmiron/my-react-boilerplate | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Main from './main';
import './styles/app.less';
export default class App extends Component {
render() {
return <Main />;
}
}
ReactDOM.render(<App />, document.getElementById('root'));
|
react-vr/Asteriods/v2/components/Button.js | nikgraf/webvr-experiments | import React from 'react';
import {Text, VrButton} from 'react-vr';
export default class Button extends React.Component {
render() {
return (
<VrButton
style={this.props.style}
onEnter={() => this.props.enterCallback()}
onExit={() => this.props.exitCallback()}
>
<Text>... |
static/views/components/topic-list-item.js | kRITZCREEK/FROST-Mobile | 'use strict';
import React from 'react';
var TopicListItem = React.createClass({
render() {
let {topic: topic, room: room, isChosen: isChosen} = this.props;
return (
<li key={this.props.key}
onClick={this.props.onClick}
className="collection-item clickable">
<div className="row... |
demo/examples/themes/bojack-theme.js | rcaferati/react-awesome-button | import React from 'react';
import { ThemeTest } from '../../components';
import Modules from '../../helpers/modules';
import { features, properties, examples } from '../common';
const THEME = 'theme-bojack';
const items = examples(THEME);
const component = <ThemeTest theme={THEME} />;
const module = Modules.Modules... |
docs-ui/components/autoComplete.stories.js | beeftornado/sentry | import React from 'react';
import {withInfo} from '@storybook/addon-info';
import AutoComplete from 'app/components/autoComplete';
const items = [
{
name: 'Apple',
},
{
name: 'Pineapple',
},
{
name: 'Orange',
},
];
export default {
title: 'Core/Forms/AutoComplete',
};
export const Input = ... |
src/gatsby-theme-docz/components/Logo/index.js | tannerlinsley/react-table | import React from 'react'
export const Logo = () => (
<img
src="https://github.com/tannerlinsley/react-table/raw/master/media/logo.png"
alt="react-table Logo"
style={{ maxHeight: 50 }}
/>
)
|
client/src/clarity/ClarityButton.js | flyrightsister/boxcharter | /*
* Copyright (c) 2017 Bonnie Schulkin. All Rights Reserved.
*
* This file is part of BoxCharter.
*
* BoxCharter 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, either version 3 of the License, ... |
docs/src/templates/page.js | tapjs/node-tap | import React from 'react';
import Layout from '../components/layout';
import {graphql} from 'gatsby';
import SEO from '../components/seo';
const Page = ({data}) => {
const pageData = data.markdownRemark;
const showSidebar = !pageData.fields.slug.indexOf('/docs/');
return (
<>
<SEO
title={pag... |
node_modules/react-bootstrap/es/Checkbox.js | premcool/getmydeal | 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 ... |
src/Tooltip.js | pieter-lazzaro/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const Tooltip = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* An html id attribute, necessary for accessibility
* @... |
src/components/SvgIcon/EyeClose.js | sk-iv/iva-app | import React from 'react';
import SvgIcon from './SvgIcon';
import classNames from 'classnames';
/**
* @ignore - internal component.
*/
let EyeClose = props => (
<SvgIcon {...props} className={classNames('icon--size24', props.className)}>
<path d="M1,12C3.3,8.4,7.4,6,12,6c4.6,0,8.6,2.3,11,5.9c0,0,0,0.1,0,0.1c-... |
Example/components/modal/ErrorModal.js | mcabs3/react-native-router-flux | import React from 'react';
import {
StyleSheet,
Text,
View,
Button,
} from 'react-native';
import { Actions } from 'react-native-router-flux';
import Modal from './BaseModal';
const ErrorModal = () => (
<Modal hideClose>
<View flex={1} style={{ justifyContent: 'center', alignItems: 'center', marginHorizo... |
packages/material-ui-icons/src/SettingsPower.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-5.12L7.44 4.44C5.36 5.88 4 8.28 4 11c0 4.42 3.58 8 8... |
src/tree/src/index.js | wisedu/bh-react | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import Tree from './Tree';
import TreeNode from './TreeNode';
import '../assets/tree.scss';
class BhTree extends React.Component {
constructor(props) {
super(props)
this.props = {
prefixCls: 'bh-tree',
... |
src/components/Tags.js | Oluwasetemi/Oluwasetemi.github.io | import {graphql, Link, useStaticQuery} from 'gatsby'
import React from 'react'
import styled from 'styled-components'
const TagsStyles = styled.div`
color: var(--color);
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-bottom: 4rem;
a {
display: grid;
grid-template-columns: auto 1fr;
gap: 0 1r... |
node_modules/react-bootstrap/es/Navbar.js | mohammed52/something.pk | 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 ... |
dawn/renderer/components/peripherals/GenericPeripheral.js | pioneers/PieCentral | /* eslint-disable camelcase */
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import numeral from 'numeral';
/**
* Generic Peripheral for General Case
*/
const GenericPeripheral = ({
id, device_name, param,
}) => (
<div style={{ overflow: 'auto', width: '100%' }}>
<h4 ... |
app/javascript/mastodon/features/ui/components/block_modal.js | lynlynlynx/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import { makeGetAccount } from '../../../selectors';
import Button from '../../../components/button';
import { closeModal } from '../../../actions/modal';
impo... |
components/Navigation/Navigation.js | jordansissel/react-boilerplate-fun | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React from 'react';
import './Navigation.scss';
import Link from '../Link';
function Navigation() {
return (
<ul className="Navigation" role="menu">
... |
src/index.js | jasonrundell/jasonrundell-react-site-2017 | /**
* Information Architecture
*
* root
* -| home
* -| skills
* -| projects
* -| blog
* -| contact
*/
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, combineReducers } from 'redux';
import { blogs } from './data/blogs';
import { projects } from './data/projects';
... |
stories/index.js | shulie/dh-component | import React from 'react';
import { Button, Modal } from '../../src';
import { storiesOf, action, linkTo } from '@kadira/storybook';
const addWithInfoOptions = { inline: true, propTables: false };
storiesOf('按钮', module)
.addWithInfo(
'按钮样式',
() => (
<Button type="primary" onClick={action('clicked')}>点击... |
docs/src/app/components/pages/components/TimePicker/ExampleInternational.js | rscnt/material-ui | import React from 'react';
import TimePicker from 'material-ui/TimePicker';
const TimePickerInternational = () => (
<div>
<TimePicker
hintText="Custom Labels"
okLabel="确定"
cancelLabel="取消"
/>
</div>
);
export default TimePickerInternational;
|
src/svg-icons/social/person-add.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPersonAdd = (props) => (
<SvgIcon {...props}>
<path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
</... |
app/javascript/mastodon/features/directory/index.js | theoria24/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from 'mastodon/components/column';
import ColumnHeader from 'mastodon/components/column... |
src/javascripts/components/NoMatch.js | taydakov/concentration-reactjs | /* Static dependencies */
/* JS dependencies */
import React from 'react';
export default class NoMatch extends React.Component {
constructor (...args) {
super(...args);
this.state = {
};
}
render () {
return (
<div class="text-center">
<h4>Page Not Found</h4>
<h1>404</h1>
</div>
);
}
... |
src/footer.js | KevinMKang/PersonalWebsite | import React from 'react';
import '../styles/footer.scss';
import {BottomNavigation, BottomNavigationItem} from 'material-ui/BottomNavigation';
import Paper from 'material-ui/Paper';
import IconLocationOn from 'material-ui/svg-icons/communication/location-on';
const githubIcon = <a href="https://github.com/KevinMKang"... |
lib/Components/App.js | anajauregui/Weatherly | import React from 'react';
import '../Styles/App.css';
import Welcome from './Welcome';
import CurrentWeather from './CurrentWeather';
import SevenHour from './SevenHour';
import TenDay from './TenDay';
import API from '../utils/Api';
export default class App extends React.Component {
constructor(props) {
super... |
src/app/components/FacebookTimeline.js | Colmea/facebook-webvr | import React from 'react';
import THREE from 'three';
import FacebookActions from 'actions/FacebookActions';
import LoginStatus from './facebook/LoginStatus';
import Post from './facebook/Post';
export default class FacebookTimeline extends React.Component
{
static propTypes = {
frameNumber: React.PropTy... |
src/docs/components/paragraph/ParagraphExamplesDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Paragraph from 'grommet/components/Paragraph';
import InteractiveExample from '../../../components/InteractiveExample';
Paragraph.displayName = 'Paragraph';
const TEXT = `Raised on hip-hop and foster... |
src/Components/AccountCreate.js | dylanbathurst/bacon-mobile | import React, { Component } from 'react';
import {
AppRegistry,StyleSheet,
Text, TextInput, TouchableOpacity,
TouchableHighlight, TouchableWithoutFeedback, View, Image
} from 'react-native';
import PropTypes from 'prop-types';
import Account from './Account';
import web3 from '../lib/web3Connection';
im... |
styling/button.js | martinandert/css-in-js | import React from 'react';
import styles from './button.styling';
const Button = React.createClass({
render() {
return (
<div className={styles.container}>
<button className={styles.button}>Click me!</button>
</div>
);
}
});
React.render(<Button />, document.getElementById('content'));... |
src/pages/404.js | jcmnunes/josenunesxyz | import React, { Component } from 'react';
import styled from 'styled-components';
import LinkButton from '../components/LinkButton';
const StyledNotFound = styled.div`
h1 {
font-size: 72px;
color: ${props => props.theme.neutral100};
}
h2 {
font-size: 24px;
color: ${props => props.theme.primary5... |
src/components/Tabs/index.js | orionsoft/parts | import React from 'react'
import PropTypes from 'prop-types'
import {withRouter, Link} from 'react-router-dom'
import autobind from 'autobind-decorator'
import sleep from '../../helpers/sleep'
import RightIcon from 'react-icons/lib/md/chevron-right'
import LeftIcon from 'react-icons/lib/md/chevron-left'
import parseCol... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | Ryanaka/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
client/src/app/components/chat/components/AsideChatUser.js | zraees/sms-project | import React from 'react'
import {Popover, OverlayTrigger} from 'react-bootstrap'
import {bindActionCreators} from 'redux'
import {connect} from 'react-redux'
import * as ChatActions from '../ChatActions'
// import chatboxManager from 'chatbox'
import HtmlRender from '../../../components/utils/HtmlRender'
import {... |
server/sonar-web/src/main/js/app/components/ProjectContainer.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... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-router-dom/4.1.1/es/NavLink.js | Akkuma/npm-cache-benchmark | 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; };
var _typeof = typeof Symbol === "function" && typeof Symbol.i... |
client/index.js | bzswords/blackstallion | import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
// Import your routes so that you can pass them to the <Router /> component
import routes from './routes.js';
render((
<Router routes={routes} history={browserHistory} />
), document.getElementById(... |
app/Router.js | rhoffmann8/redux-jaca | import React from 'react';
import ReactDOM from 'react-dom';
import { renderToStaticMarkup } from 'react-dom/server';
import { Router, match, RouterContext, browserHistory } from 'react-router';
import Helmet from 'react-helmet';
import routes from './Routes';
import { Provider } from 'react-redux';
import Root from '.... |
app/javascript/mastodon/features/ui/components/tabs_bar.js | ambition-vietnam/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { NavLink, withRouter } from 'react-router-dom';
import { FormattedMessage, injectIntl } from 'react-intl';
import { debounce } from 'lodash';
import { isUserTouching } from '../../../is_mobile';
export const links = [
<NavLink className='tabs-bar... |
src/svg-icons/image/switch-camera.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageSwitchCamera = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 11.5V13H9v2.5L5.5 12 9 8.5V11h6V8.5l3.5 3.5-3.5... |
frontend/src/System/Status/About/StartTime.js | lidarr/Lidarr | import moment from 'moment';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import formatDateTime from 'Utilities/Date/formatDateTime';
import formatTimeSpan from 'Utilities/Date/formatTimeSpan';
function getUptime(startTime) {
return formatTimeSpan(moment().diff(startTime));
}
class ... |
src/components/OrganizationItem.js | leegenes/protrackt-frontend | import React from 'react';
import PropTypes from 'prop-types';
import './organization_item.css'
const OrganizationItem = (props) => {
return (
<div className="flex-list-item org-level">
<div className="flex-list-item header org-level">
<div className="flex-header-item org-level">{ props.name.toUpp... |
potato/index.android.js | 8Pablo/potato | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class potato2 extends Component {
render() {
return (
<View style={styles.container}>... |
server/server.js | zendra1994/react-ssr | //Init
import path from 'path';
import http from 'http';
import express from 'express';
import reload from 'reload';
//React
import React from 'react';
import ReactDOMServer from 'react-dom/server';
//React Router
import { match, RouterContext } from 'react-router';
import routes from '../src/app/routes';
//Redux
impo... |
src/pages/about/index.js | Kalcode/Gatsby-Boilerplate | import React from 'react'
export default function AboutPage() {
return (
<main className='row'>
<div className='small-6 columns'>
About Us
</div>
</main>
)
}
|
components/panelled/courier/settings/index.js | marrus-sh/mastodon-go | // <PanelledCourierSettings>
// =========================
// Our courier settings are just a list of toggles, broken up into
// sections.
// * * * * * * * //
// Imports
// -------
// Package imports.
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
// Co... |
packages/react-interactions/events/src/dom/Input.js | jzmq/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {
ReactDOMResponderEvent,
ReactDOMResponderContext,
} from 'shared/ReactDOMTypes';
import React from ... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/JsonInclusion.js | picter/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { abstract } from './assets/abstract.json';
export default () => <summary id="feature-json-inclusion"... |
node_modules/react-sparklines/bootstrap-tests.js | wojtczat/WeatherApp | // bootstrap-tests.js - A tool for updating the test cases in __tests__/fixtures.js
//
// 1) Reads __tests__/fixtures.js and looks for a "dynamic part", which should be a list of fields
// belonging to that file's default export, enclosed in a pair of markers (see "signal" constants
// below).
// 2) Imports the sa... |
src/svg-icons/editor/format-indent-decrease.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatIndentDecrease = (props) => (
<SvgIcon {...props}>
<path d="M11 17h10v-2H11v2zm-8-5l4 4V8l-4 4zm0 9h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentDecre... |
app/components/EditGoalModal.js | csreyes/TLCJournal | import React from 'react';
import {Link} from 'react-router';
import DateTimePicker from 'react-bootstrap-datetimepicker';
import {Button, Input, ListGroup, ListGroupItem, Modal, OverlayTrigger} from 'react-bootstrap';
import GoalActions from '../actions/GoalActions';
import JournalStore from '../stores/JournalStore';
... |
src/SettingsGrid.js | jpdevries/a11y-datagrid | import React, { Component } from 'react';
import * as actions from './model/actions';
import store from './model/store';
import { HashRouter, Switch, Route, Link, BrowserRouter, withRouter } from 'react-router-dom';
import Header from './Header';
import DataGrid from './DataGrid';
import Pagination from './Paginatio... |
src/Ferry.js | davidascher/gambier | import React, { Component } from 'react';
import moment from 'moment';
import {AuthNavbar} from './authbar'
import Footer from './Footer'
const Ndays = 10
// TODO: Oct 11 to March!!
// Schedule in Effect: June 21, 2016 to September 5, 2016
let MTh_van2nb_1 = [
["7:25 AM", "8:10 AM", "8:55 AM"],
["9:40 AM", "10... |
components/login/index.js | pho3nixf1re/followupboss-example | import React from 'react';
import {
Form,
PasswordInputGroup,
EmailInputGroup,
Button,
Row,
Col,
Alert
} from 'elemental';
import isEmpty from 'lodash/isEmpty';
import forEach from 'lodash/forEach';
import {hashHistory} from 'react-router';
import {actions as userActions} from 'lib/reaction... |
src/routes/Events/routes/Details/containers/EventContainer.js | cvetanov/EventsClient | import React from 'react';
import { connect } from 'react-redux';
import Event from '../../../../../components/Event';
import {
getEventAsync,
getEventUri
} from '../modules/event';
class EventContainer extends React.Component {
componentDidMount() {
const uri = this.props.getEventUri(this.props.params.id);... |
packages/envision-docs/src/templates/BaseTemplate.js | melineric/envision | import React from 'react';
import PropTypes from 'prop-types';
import Header from '../components/Header';
import Sidenav from '../components/Sidenav';
import Footer from '../components/Footer';
const filterMenuItems = (items) => {
return items
.map(({ node }) => ({
id: node.id,
title: node.f... |
routes.js | aryalprakash/omgyoutube | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import Main from './src/Components/Main';
import App from './src/Components/App';
import Home from './src/Components/Home';
import Watch from './src/Components/Watch'... |
src/svg-icons/file/folder.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileFolder = (props) => (
<SvgIcon {...props}>
<path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/>
</SvgIcon>
);
FileFolder = pure(FileFolder);
FileFolder.d... |
example/src/index.js | MGrin/mgr-pdf-viewer-react | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/views/GestionsComponents/Scooters/Geolocaliser/Map.js | Cruis-R/GestionOutil | import React, { Component } from 'react';
import L from 'leaflet';
import classnames from 'classnames';
import Select from 'react-select';
import 'react-select/dist/react-select.css';
import 'react-datetime/css/react-datetime.css'
import DateTime from 'react-datetime';
import { TabContent, TabPane, Nav, NavItem, NavLin... |
app/jsx/external_apps/mixins/InputMixin.js | djbender/canvas-lms | /*
* Copyright (C) 2014 - 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... |
docs/src/app/components/pages/components/Card/ExampleWithAvatar.js | mmrtnz/material-ui | import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
const CardExampleWithAvatar = () => (
<Card>
<CardHeader
title="URL Avatar"
subtitle="Subtitle"
avatar="images/jsa-128.jpg"... |
server/sonar-web/src/main/js/main/nav/component/component-nav-breadcrumbs.js | vamsirajendra/sonarqube | import React from 'react';
import QualifierIcon from '../../../components/shared/qualifier-icon';
export default React.createClass({
render() {
if (!this.props.breadcrumbs) {
return null;
}
const items = this.props.breadcrumbs.map((item, index) => {
const url = `${window.baseUrl}/dashboard/in... |
src/routes/Home/components/Swipe.js | adogpt/adogpt | import React from 'react'
import Cards, { Card } from 'react-swipe-card'
import './Swipe.scss'
class Swipe extends React.Component {
constructor(props) {
super(props)
this.state = {
data: this.props.data,
matchData: this.props.matchData,
filter: '',
}
this.handleSwipe = this.props.handleSwipe
}
... |
packages/mangojuice-react/src/index.js | mangojuicejs/mangojuice | import React from 'react';
import { createSubscribe } from 'mangojuice-react-core';
const Subscribe = createSubscribe({
Component: React.Component,
createElement: React.createElement
});
module.exports = Subscribe;
module.exports.default = Subscribe;
|
src/index.js | bystrobank/react-redux-universal | /* eslint-disable global-require */
import React from 'react';
import ReactDOM from 'react-dom';
import { applyRouterMiddleware, Router, match, useRouterHistory } from 'react-router';
import { Provider } from 'react-redux';
import { useScroll } from 'react-router-scroll';
import createHistory from 'history/lib/createBr... |
public/javascripts/components/display/navigation.js | helloworldzxy/CarDetection | import React, { Component } from 'react';
import $ from 'jquery';
export default class Navigation extends Component{ //模块只有一个输出值时用export default
componentDidMount(){
let id = 'targetSearch';
$(".navigation").delegate(".nav-item", "click", function(event){
$(".nav-active").removeClass("nav-active");
$(even... |
src/index.js | neontribe/spool | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import Relay from 'react-relay';
import { RelayNetworkLayer, urlMiddleware, authMiddleware } from 'react-relay-network-layer';
import { Router, Route, IndexRoute, IndexRedirect, Redirect, browserHistory, applyRouterMiddleware } from ... |
src/svg-icons/file/cloud-off.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudOff = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.