path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
envkey-react/src/containers/invoice_list_container.js | envkey/envkey-app | import React from 'react'
import { connect } from 'react-redux'
import {
billingFetchInvoiceList,
billingFetchInvoicePdf
} from 'actions'
import {
getInvoices,
getIsLoadingInvoices,
getIsLoadingInvoicePdf
} from 'selectors'
import InvoiceRow from 'components/billing/invoice_row'
import SmallLoader from 'compo... |
docs/src/app/components/pages/components/TextField/ExampleSimple.js | w01fgang/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
const TextFieldExampleSimple = () => (
<div>
<TextField
hintText="Hint Text"
/><br />
<br />
<TextField
hintText="The hint text can be as long as you want, it will wrap."
/><br />
<TextField
id="text-f... |
packages/cf-component-card/src/Card.js | koddsson/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
class Card extends React.Component {
render() {
return (
<section id={this.props.id} className="cf-card">
{this.props.children}
</section>
);
}
}
Card.propTypes = {
id: PropTypes.string,
children: PropTypes.node
};
ex... |
src/app/views/logout.js | webcoding/reactui-starter | import React from 'react';
import authActions from 'actions/auth';
export default React.createClass( {
componentDidMount () {
authActions.logout();
},
render() {
return (
<div id="logout">
<div className="jumbotron">
<h1>Logged Out</h1>
... |
src/routes/Edit/components/Edit.spec.js | arcsin037/RGPP-React | import React from 'react'
import Edit from './Edit'
import { shallow } from 'enzyme'
describe('(Component) Edit', () => {
let _wrapper
beforeEach(() => {
const _props = {
appName: 'Original Application',
resolutionX: 640,
resolutionY: 480
}
_wrapper = shallow(<Edit {..._props} />)
}... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | codl/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import DisplayName from '../../../components/display_name';
import { defineMessages, injec... |
node_modules/react-router/es6/Route.js | Win-Myint/ReactChallenge2 | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { component, components } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var func = _React$PropTypes.func;
/**
* A <Route> is use... |
example/examples/PublicMethodsExample.react.js | Neophy7e/react-bootstrap-typeahead | import React from 'react';
import {Button, ButtonToolbar} from 'react-bootstrap';
import {Typeahead} from '../../src/';
import options from '../../example/exampleData';
/* example-start */
const PublicMethodsExample = React.createClass({
render() {
return (
<div>
<Typeahead
labelKey="nam... |
app/components/agents/agentPageResourcesItem.js | nypl-registry/browse | import React from 'react'
import { Link } from 'react-router'
const AgentPageResourcesItem = React.createClass({
getInitialState: function (event) {
return {errored: false}
},
handleError: function (event) {
this.setState({errored: true})
},
render () {
var displayImg = <td />
if (!this.sta... |
frontend/tests/components/register-button.js | 1905410/Misago | import assert from 'assert';
import React from 'react'; // jshint ignore:line
import RegisterButton from 'misago/components/register-button'; // jshint ignore:line
import misago from 'misago/index';
import captcha from 'misago/services/captcha';
import modal from 'misago/services/modal';
import snackbar from 'misago/se... |
src/routes.js | KovDimaY/React-Highcharts | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import Bar from './components/charts/bar';
import Home from './components/home';
import Line from './components/charts/line';
// import NotFound from './components/notFound'; // TODO: fix router and use 404... |
flask_react/client/test/components/Users.spec.js | ebottabi/mmakinde-ebot | /* global jest expect */
import React from 'react';
import { shallow } from 'enzyme';
import { Users } from '../../components/users/Users';
describe('Users component', () => {
const props = {
getAllUsers: jest.fn(() => Promise.resolve()),
deleteUserRecord: jest.fn(() => Promise.resolve()),
currentUser: ... |
maodou/events/client/components/admin/eventsList.js | wuyang910217/meteor-react-redux-base | import React, { Component } from 'react';
import {Link} from 'react-router';
import Loading from 'client/components/common/loading';
import moment from 'moment';
import { shortText } from 'lib/helpers';
export default class EventsList extends Component {
render() {
const { data, status } = this.props.events;
... |
public/app/components/player/duration-panel.js | feedm3/unhypem | /**
* @author Fabian Dietenberger
*/
'use strict';
import React from 'react';
import songDispatcher from '../../dispatcher/song-dispatcher';
class DurationLabel extends React.Component {
constructor(props) {
super(props);
this.state = {
duration: 0,
position: 0
}... |
client/components/Player.js | Pocket-titan/Tonlist | import React from 'react'
import {Slider} from 'material-ui'
import {compose, withState, mapProps} from 'recompose'
import {Audio, View, Text, TextInput} from '../components'
import ThemeManager from 'material-ui/lib/styles/theme-manager';
import MyRawTheme from '../components/Theme.js';
import ThemeDecorator from 'mat... |
components/OverlayEngine.js | nvbf/pepper | // @flow
import React from 'react';
import { gql, graphql } from 'react-apollo';
import withData from '../libs/withData';
import Scoreboard from './scoreboard/ApolloScoreboard';
import PlayerList from './playerlist/ApolloPlayerList';
/* we need a component that can subscribe to overlay updates, and change the UI accor... |
ReactJS/exam prep/react-starter-kit-master/src/index.js | Martotko/JS-Web | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import { BrowserRouter as Router } from 'react-router-dom';
ReactDOM.render((
<Router>
<App />
</Router>), document.getElementById('ro... |
lib/shared/elements/dynamic-list/container.js | relax/relax | import Component from 'components/component';
import isElementSelected from 'helpers/page-builder/is-element-selected';
import React from 'react';
import PropTypes from 'prop-types';
import {dataConnect} from 'relate-js';
import DynamicList from './dynamic-list';
@dataConnect(
(state, props) => ({
isLinkingData... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | UnSpiraTive/radio | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
packages/reactor-kitchensink/src/examples/D3/Hierarchy/ZoomableSunburst/ZoomableSunburst.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Panel } from '@extjs/ext-react';
import { D3_Sunburst } from '@extjs/ext-react-d3';
export default class ZoomableSunburst extends Component {
store = Ext.create('Ext.data.TreeStore', {
autoLoad: true,
defaultRootText: 'd3',
fields: [
... |
actor-apps/app-web/src/app/components/common/Text.react.js | berserkertdl/actor-platform | import _ from 'lodash';
import React from 'react';
import memoize from 'memoizee';
import emojify from 'emojify.js';
import hljs from 'highlight.js';
import marked from 'marked';
import emojiCharacters from 'emoji-named-characters';
emojify.setConfig({
mode: 'img',
img_dir: 'assets/img/emoji' // eslint-disable-l... |
admin/client/App/screens/Home/components/Lists.js | jstockwin/keystone | import React from 'react';
import _ from 'lodash';
import { connect } from 'react-redux';
import { plural } from '../../../../utils/string';
import ListTile from './ListTile';
export class Lists extends React.Component {
render () {
return (
<div className="dashboard-group__lists">
{_.map(this.props.lists, ... |
modules/dreamview/frontend/src/components/CameraParam/index.js | xiaoxq/apollo | import React, { Component } from 'react';
import ReactTooltip from 'react-tooltip';
import { inject, observer } from 'mobx-react';
import positionIcon from 'assets/images/icons/position.png';
import rotationIcon from 'assets/images/icons/rotation.png';
const ResetSvg = () => (
<svg viewBox="0 0 1024 1024" width="... |
src/screens/SettingsStack/SettingsScreen.js | AzSiAz/LN-Reader | import React from 'react'
import { View, AsyncStorage, Alert, StyleSheet } from 'react-native'
import { List, ListItem } from 'react-native-elements'
export default class SettingsScreen extends React.PureComponent {
static navigationOptions = {
title: 'Settings',
// headerStyle: {},
headerTitleStyle: {
... |
src/routes/lossSection/participate.js | goldylucks/adamgoldman.me | /* eslint-disable react/jsx-curly-brace-presence */
import React from 'react'
import { MESSENGER_LINK_WELCOME } from '../../constants'
import Markdown from '../../components/Markdown'
export default {
title: 'Participate',
description: 'Description here',
html: (
<div>
<Markdown
source={`
I (... |
examples/passing-props-to-children/app.js | aastey/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link, History } from 'react-router'
require('./app.css')
const history = useBasename(createHistory)({
basename: '/passing-props-to-children'
})
const App = React.createClass({
mixins: [ History ],
getInitial... |
modules/Router.js | littlefoot32/react-router | import React from 'react'
import warning from 'warning'
import createHashHistory from 'history/lib/createHashHistory'
import { createRoutes } from './RouteUtils'
import RoutingContext from './RoutingContext'
import useRoutes from './useRoutes'
import { routes } from './PropTypes'
const { func, object } = React.PropTyp... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | KnzkDev/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Icon from 'mastodon/components/icon';
import { autoPlayGif, displayMedia } from 'mastodon/initial_state';
import classNam... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch04/04_03/finish/src/index.js | yevheniyc/Autodidact | import React from 'react'
import { render } from 'react-dom'
import './stylesheets/ui.scss'
import { SkiDayCount } from './components/SkiDayCount'
window.React = React
render(
<SkiDayCount />,
document.getElementById('react-container')
)
// render(
// <SkiDayList days={
// [
// {
// resort: "Squ... |
index.js | algolia/react-nouislider | import PropTypes from 'prop-types';
import React from 'react';
import nouislider from 'nouislider';
class Nouislider extends React.Component {
componentDidMount() {
if (this.props.disabled) this.sliderContainer.setAttribute('disabled', true);
else this.sliderContainer.removeAttribute('disabled');
this.cr... |
test/TooltipSpec.js | xsistens/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Tooltip from '../src/Tooltip';
describe('Tooltip', function () {
it('Should output a tooltip with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Tooltip positionTop={10} positionLeft={20}>
... |
public/pages/AdminOverview.js | datpham23/datndiana | import React from 'react'
import {Modal,Alert} from 'react-bootstrap';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as GuestActions from '../actions/guestActions';
import Griddle from 'griddle-react';
import '../sass/admin-overview.scss';
const AdminOverview = React.createCl... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js | ontruck/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, { Component } from 'react';
import PropTypes from 'prop-types';
function load({ id, ...rest } = { id: 0, user: { id: 42, ... |
examples/infinite-scrolling/src/components/RepositoryCount.js | lore/lore | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import PayloadStates from '../constants/PayloadStates';
export default createReactClass({
displayName: 'RepositoryCount',
propTypes: {
pages: PropTypes.array.isRequired
},
getStyles: function... |
js-old/MyTitle.js | aramay/complete-intro-to-react-v2 | import React from 'react'
var MyTitle = React.createClass({
render: function () {
console.log(this.props)
const color = {color: this.props.color}
console.log(color)
return (
<div>
<h1 style={color}>
{this.props.title}
</h1>
</div>
)
}
})
export ... |
src/components/ChaptersList/ChaptersList.js | suhodolskiy/bsuir-evt-laba-2017 | import React from 'react';
import { observer } from 'mobx-react';
import { SortableContainer, SortableElement } from 'react-sortable-hoc';
import './chaptersList.scss';
import ChapterCard from '../СhapterCard/ChapterCard';
export default SortableContainer(
observer(({ chapters, moveChapterToBlank }) => (
<ul cl... |
app/addons/documents/index-results/components/pagination/PaginationFooter.js | popojargo/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
src/components/doctrine/original/DoctrineOriginal.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './DoctrineOriginal.svg'
/** DoctrineOriginal */
function DoctrineOriginal({ width, height, className }) {
return (
<SVGDeviconInline
className={'DoctrineOriginal' +... |
src/index.js | HHPnet/frontend | import React from 'react'
import ReactDOM from 'react-dom'
import injectTapEventPlugin from 'react-tap-event-plugin'
import App from './components/common/app/App'
import 'bootstrap/dist/css/bootstrap.css'
//import 'bootstrap/dist/css/bootstrap-theme.css'
//import 'bootstrap-material-design/dist/css/bootstrap-material-d... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultPropsInline.js | jamesgpearce/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
static defaultProps: {a: number, b: number, c: number} = {a: 1, b: 2, c: 3};
props: Props;
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extend... |
client/views/admin/federationDashboard/OverviewSection.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import OverviewSection from './OverviewSection';
export default {
title: 'admin/federationDashboard/OverviewSection',
component: OverviewSection,
};
export const Default = () => <OverviewSection />;
|
docs/app/Examples/elements/Icon/States/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const IconStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample
title='Disabled'
description='An... |
docs-ui/components/emptyMessage.stories.js | looker/sentry | import React from 'react';
import {Panel, PanelHeader} from 'app/components/panels';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import Button from 'app/components/buttons/button';
import EmptyMessage from 'app/views/settings/components/emptyMessage';
storiesOf('EmptyMe... |
classic/src/scenes/wbui/ULinkOR/ULinkORAccountSection/MailboxListItem/MailboxListItemSubServiceItem.js | wavebox/waveboxapp | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import { ListItemSecondaryAction, Tooltip, IconButton } from '@material-ui/core'
import { withStyles } from '@material-ui/core/styles'
import ACAvatarCircle2 from '../../../ACAvatarCircle2'
import Mail... |
node_modules/react-router/es6/Link.js | TheeSweeney/ComplexReactReduxMiddlewareReview | 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 = {... |
example/App.js | BBuzzArt/react-native-infinite | import React from 'react';
import { StyleSheet, Text, View, TouchableHighlight, ScrollView } from 'react-native';
import { StackNavigator } from 'react-navigation';
import * as src from './src';
class App extends React.Component {
render() {
const { props } = this;
return (
<View style={css.viewport}>
... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js | RobzDoom/frame_trap | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
source/component/listview/userPostRow.js | togayther/react-native-cnblogs | import React, { Component } from 'react';
import {
View,
Text,
Image,
TouchableHighlight
} from 'react-native';
import _ from 'lodash';
import moment from 'moment';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import { decodeHTML, getBloggerAvatar } from '../../common';
import { ComponentStyles, ... |
src/components/WorkSummary.js | computer-lab/salon94design.com | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import styled from 'emotion/react'
import cx from 'classnames'
import {
monoFontFamily,
sansfont,
childLink,
breakpoint1,
breakpoint2,
breakpoint3,
baseUl,
} from '../layouts/emotion-base'
import { designerLink, wo... |
client/src/components/help/Container.js | DjLeChuck/recalbox-manager | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import reactStringReplace from 'react-string-replace';
import { recalboxSupport } from '../../api';
import Help from './Help';
class HelpContainer extends Component {
static propTypes = {
t: P... |
src/client/react/user/views/Instructions/InstructionCollapse.js | bwyap/ptc-amazing-g-race | import React from 'react';
import autobind from 'core-decorators/es/autobind';
import { Button, Intent, Collapse } from '@blueprintjs/core';
import MarkdownRenderer from '../../../../../../lib/react/components/MarkdownRenderer';
import '../../scss/components/_instruction-panel.scss';
@autobind
class InstructionColla... |
web/static/js/layouts/main.js | wwselleck/Rekrewtor | import React from 'react'
import { Link } from 'react-router'
export default class MainLayout extends React.Component {
render () {
return (
<div>
{this.props.children}
</div>
)
}
}
|
src/components/blocks/index.js | impact-initiatives/reach-jor-zaatari-webmap | import React from 'react';
import styles from '../../styles/index.js';
import Header from '../common/header/index.js';
import Footer from '../common/footer/index.js';
import SidebarHome from '../common/home/index.js';
import MapboxGL from '../common/mapbox-gl/index.js';
import SidebarLayers from './sidebar-layers/index... |
frontend-app/welcome-app/main/welcome-main.js | easybird/easyblog | import React from 'react';
import DraftEditor from '../../article/editor/draft-editor.js';
import Article from '../../article/article.js';
import ArticleOverview from '../../article/article-overview.js';
import ArticleList from '../../article/api/article-list/article-list.js';
import ArticlePage from '../../article/api... |
view/perspective/app.js | salesforce/refocus | /**
* Copyright (c) 2016, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* view/perspective/app.js
*
* When this page is loaded, we call "getPerspecti... |
app/containers/FeaturePage/index.js | KyleAWang/react-boilerplate | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
import List from './List';
import ListItem from './ListItem';
import ListItemTitle from './Li... |
src/svg-icons/image/photo-camera.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoCamera = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.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-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24... |
packages/material-ui-icons/src/TurnedIn.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let TurnedIn = props =>
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z" />
</SvgIcon>;
TurnedIn = pure(TurnedIn);
TurnedIn.muiName = 'SvgIcon';
export default Tu... |
src/app/components/Root.js | honzachalupa/portfolio2017 | import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Switch, browserHistory } from 'react-router-dom';
import update from 'immutability-helper';
import factory from './../factory';
import aspectRatioPreserver from './../modules/aspect-ratio-preserver';
import log from './../modules/logger'... |
src/components/Map/AddTitle.js | Angular-Toast/habitat | import React, { Component } from 'react';
import { StyleSheet, Text, View, Animated, Image, Dimensions, TextInput, Button} from "react-native";
import { StackNavigator, NavigationActions } from 'react-navigation';
export default class Title extends React.Component {
static navigationOptions = {
title: 'Give yo... |
src/components/ConsoleTidal.js | merttoka/Siren | import React from 'react';
import { Controlled as CodeMirror } from 'react-codemirror2'
import _ from 'lodash'
import { inject, observer } from 'mobx-react';
import { save } from '../keyFunctions.js';
import 'codemirror/lib/codemirror.css';
import '../utils/lexers/haskell.js';
import '../utils/lexers/haskell.css';
/... |
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js | bunnyblue/actor-platform | import React from 'react';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import CreateGroupStore from 'stores/CreateGroupStore';
import CreateGroupForm from './create-group/Form.react';
import Modal from 'react-modal';
import { KeyCodes } from 'constants/ActorAppConstants';
const appEl... |
src/svg-icons/image/grid-off.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageGridOff = (props) => (
<SvgIcon {...props}>
<path d="M8 4v1.45l2 2V4h4v4h-3.45l2 2H14v1.45l2 2V10h4v4h-3.45l2 2H20v1.45l2 2V4c0-1.1-.9-2-2-2H4.55l2 2H8zm8 0h4v4h-4V4zM1.27 1.27L0 2.55l2 2V20c0 1.1.9 2 2 2h... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Promises.js | lolaent/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, { Component } from 'react';
import PropTypes from 'prop-types';
function load() {
return Promise.resolve([
{ id: 1,... |
docs/src/app/components/pages/components/IconMenu/ExampleNested.js | IsenrichO/mui-with-arrows | import React from 'react';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import IconButton from 'material-ui/IconButton';
import Divider from 'material-ui/Divider';
import Download from 'material-ui/svg-icons/file/file-download';
import ArrowDropRight from 'material-ui/svg-ic... |
frontend/src/Components/Form/TextArea.js | geogolem/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './TextArea.css';
class TextArea extends Component {
//
// Lifecycle
constructor(props, context) {
super(props, context);
this._input = null;
this._selectionStart =... |
node_modules/react-bootstrap/es/NavDropdown.js | ivanhristov92/bookingCalendar | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
packages/@vega/layout/src/components/AcceptInvite/AcceptReviewerInvite.js | VegaPublish/vega-studio | /* eslint-disable max-len */
import React from 'react'
import Button from 'part:@lyra/components/buttons/default'
import lyraClient from 'part:@lyra/base/client'
import styles from './styles/AcceptReviewerInvite.css'
import client from 'part:@lyra/base/client'
import locationStore from 'part:@lyra/base/location'
funct... |
src/components/Switcher.js | jo12bar/blag | import React from 'react';
import { connect } from 'react-redux';
import { TransitionGroup, Transition } from 'transition-group';
import universal from 'react-universal-component';
import Loading from './Loading';
import Err from './Error';
import isLoading from '../selectors/isLoading';
import styles from '../css/Swi... |
docs/src/sections/ProgressBarSection.js | apkiernan/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 ProgressBarSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
react_layout/setup.js | devSC/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
import FlexBoxTest from './FlexBoxTest'
import FlexBoxDice from './FlexBoxDice'
export default class setup extends Compon... |
packages/material-ui-icons/src/LinkedCamera.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let LinkedCamera = props =>
<SvgIcon {...props}>
<circle cx="12" cy="14" r="3.2" /><path d="M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6v1.33M16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.33V... |
src/client/routes/Bundle.js | Paul-Long/m-gril | import React from 'react';
export default class Bundle extends React.Component {
constructor(props) {
super(props);
this.state = {
mod: null
};
}
componentWillMount() {
this.load(this.props)
}
componentWillReceiveProps(nextProps) {
if (nextProps.load !== this.props.load) {
t... |
examples/todomvc/containers/TodoApp.js | aheuermann/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/todos';
class TodoApp extends Component {
render() {
... |
js/signin/src/components/SecretReset.js | fogfish/oauth2 | import React from 'react'
import { Button, Intent } from '@blueprintjs/core'
import { Link } from 'react-router-dom'
import Dialog from 'components/Dialog'
import AccessKey from 'components/AccessKey'
const Actions = () => (
<>
<Link className="bp3-button bp3-minimal bp3-intent-primary" to="/">
<b>Sign In ... |
examples/ssr-caching/pages/blog.js | BlancheXu/test | import React from 'react'
export default class extends React.Component {
static getInitialProps ({ query: { id } }) {
return { id }
}
render () {
return (
<div>
<h1>My {this.props.id} blog post</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
... |
fields/components/Checkbox.js | pr1ntr/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
import { darken, fade } from '../../admin/client/utils/color';
import E from '../../admin/client/constants';
var Checkbox = React.createClass({
displayName: 'Checkbox',
propTypes: {
checked: React.PropTypes.bool,
c... |
js/components/card/card-showcase.js | YeisonGomez/RNAmanda |
import React, { Component } from 'react';
import { Image, Dimensions } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Card, CardItem, Text, Thumbnail, Left, Right, Body, IconNB } from... |
client/components/BubbleSlider.js | IBM-Bluemix/election-insights | //------------------------------------------------------------------------------
// Copyright IBM Corp. 2016
//
// 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... |
src/components/common/svg-icons/device/signal-wifi-off.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifiOff = (props) => (
<SvgIcon {...props}>
<path d="M23.64 7c-.45-.34-4.93-4-11.64-4-1.5 0-2.89.19-4.15.48L18.18 13.8 23.64 7zm-6.6 8.22L3.27 1.44 2 2.72l2.05 2.06C1.91 5.76.59 6.82.36 7l11.63 14.4... |
app/views/component/CommentTable.js | MaxMEllon/comelon | 'use strict';
import R from 'ramda';
import React from 'react';
import SettingStore from '../../stores/SettingStore';
import Comment from './Comment';
import {List, Paper} from 'material-ui';
const isNil = (obj) => obj != null;
const ifSystemComment = (comment) => R.test(/^(\/(.*)){1}/, comment.get('text'));
const No... |
static/js/components/MapPage.js | brianhouse/okavango |
// import React, { PropTypes } from 'react'
import React from 'react'
import NotificationPanelContainer from '../containers/NotificationPanelContainer'
import ControlPanelContainer from '../containers/ControlPanelContainer.js'
const MapPage = () => {
var height = {height: window.innerWidth > 768 ? window.innerHeigh... |
src/app/components/resourses/planet/Components.js | mazahell/eve-react-app | import React from 'react'
import {connect} from 'react-redux'
import Helper from '../../../helpers'
import { ItemView } from '../../item'
class Components extends React.Component {
render() {
let _inputComponents = this.props.materials.map((val) => {
let itemId = val.item_id
let price = this.props.... |
test/ButtonGroupSpec.js | azmenak/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ButtonGroup from '../src/ButtonGroup';
import Button from '../src/Button';
import { shouldWarn } from './helpers';
describe('ButtonGroup', function () {
it('Should output a button group', function () {
let instance = ReactTe... |
docs/src/app/components/pages/components/Paper/ExampleCircle.js | ArcanisCz/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
const style = {
height: 100,
width: 100,
margin: 20,
textAlign: 'center',
display: 'inline-block',
};
const PaperExampleCircle = () => (
<div>
<Paper style={style} zDepth={1} circle={true} />
<Paper style={style} zDepth={2} circle={... |
src/shared/components/form/textFieldUrl.js | namroodinc/truth-serum | import React from 'react';
import { observer } from 'mobx-react';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
import parseDomain from 'parse-domain';
import {red500} from 'material-ui/styles/colors';
import DeleteForever from 'material-ui/svg-icons/action/delete';
im... |
src/images/tooth-icon-small.js | kakapo2016-projects/tooth-and-pail | import React from 'react'
import IconButton from 'material-ui/lib/icon-button'
const styles = {
button: {
width: 20, height: 20,
padding: 0,
},
icon: {
width: 20, height: 20,
},
};
const ToothIcon = () => (
<IconButton style={styles.button} iconStyle={styles.icon} iconClassName="... |
docs/src/app/components/pages/components/List/ExampleSimple.js | pancho111203/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import ContentInbox from 'material-ui/svg-icons/content/inbox';
import ActionGrade from 'material-ui/svg-icons/action/grade';
import ContentSend from 'material-ui/svg-icons/content/send';
... |
src/index.js | jcdesimp/GeoBean | "use strict";
/**
* Root entry file
*
* This file instantiates the root React component and
* mounts it to the DOM
*/
// import styles
import 'normalize.css';
import './css/main.scss';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import Store from './js/st... |
src/components/Catalog/Catalog.js | LeraSavchenko/Maysternia | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import Link from '../Link';
import s from './Catalog.css';
const Catalog = () =>
(
<div >
<h1 className={s.headerincatalog}>
Каталог продукції
</h1>
<div className={s.catalog}>
<div class... |
node_modules/_antd@2.13.4@antd/es/badge/ScrollNumber.js | ligangwolai/blog | import _extends from 'babel-runtime/helpers/extends';
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/i... |
collect-webapp/frontend/src/datamanagement/pages/BackupDataImportPage/NewRecordsDataGrid.js | openforis/collect | import React from 'react'
import { DataGrid, DataGridValueFormatters } from 'common/components'
export const NewRecordsDataGrid = (props) => {
const { keyAttributeColumns, recordsToImport, selectedRecordsToImportIds, stepColumns, onSelectedIdsChange } = props
return (
<DataGrid
className="data-import-n... |
app/javascript/src/components/Progress.js | michelson/chaskiq | import React from 'react'
import styled from '@emotion/styled'
import { keyframes } from '@emotion/core'
// based on https://codepen.io/Siddharth11/pen/xbGrpG
const spin = keyframes`
100% {
transform: rotate(360deg);
}
`
const Loader = styled.div`
animation: ${spin} 0.5s infinite linear;
border-top-col... |
examples/reset-values/app.js | RMSAuto/formsy-react | import React from 'react';
import ReactDOM from 'react-dom';
import { Form } from 'formsy-react';
import MyInput from './../components/Input';
import MySelect from './../components/Select';
const user = {
name: 'Sam',
free: true,
hair: 'brown'
};
const App = React.createClass({
submit(data) {
alert(JSON.... |
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | chunwei/react-router | import React from 'react';
import { Link } from 'react-router';
class Sidebar extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{assignments.map(assignment => (
... |
tests/components/Book.spec.js | hbaughman/audible-temptations | import React from 'react'
import Book from 'components/Book/Book'
describe('(Component) Book', () => {
it('should exist', () => {
})
})
|
client/scripts/subject-form.js | stas-vilchik/bdd | import React from 'react';
import $ from 'jquery';
import Marked from 'marked';
const URL = '/api/subjects';
export default React.createClass({
handleSubmit: function (e) {
e.preventDefault();
var author = React.findDOMNode(this.refs.author).value.trim();
var title = React.findDOMNode(this.refs.title).v... |
src/Parser/MistweaverMonk/Modules/Traits/MistsOfSheilun.js | Yuyz0112/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber } from 'common/format';
import Module from 'Parser/Core/Module';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
const debug = false;
class MistsOfSheilun extends Module... |
images/client/components/image_detail.js | cristianobento/udemy-meteor-react | // Create our image list component
// Import React
import React from 'react';
import ImageScore from './image_score';
// Create our component
const ImageDetail = (props) => {
// props.image => this is the image object
// props.image.title
// props.image.link
return(
<li className="media list-group-item"... |
src/svg-icons/av/hd.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHd = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.