path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/src/examples/addons/Ref/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Message, Icon } from 'semantic-ui-react'
import Types from './Types'
const RefExamples = () => (
<>
<Message icon warning>
<Icon name='warning sign' />
<Message.Content>
<Message.Header>Deprecation notice</Message.Header>
<p>
<code>Ref</c... |
src/components/Json/index.js | bogas04/SikhJS | import React from 'react';
import Fetch from '../Fetch';
/* eslint-disable react/jsx-no-bind */
export default props => <Fetch initialValue={[]} transform={r => r.json()} {...props} />;
|
maodou/events/client/components/admin/eventsAdd.js | LIYINGZHEN/meteor-react-redux-base | import React from 'react';
export default class EventAdd extends React.Component {
constructor(props) {
super(props);
this.state = { unit: '$' };
this.changeUnit = this.changeUnit.bind(this);
}
changeUnit() {
if (this.state.unit === '$') {
this.setState({ unit: '¥' });
} else {
th... |
app/addons/config/routes.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/main/components/App.js | padcom/react-example-02 | import React from 'react';
import Title from './Title';
import Input from './Input';
import css from './App.less'
/**
* Main application component
*
* @class App
*/
const App = () => (
<div class={css.component}>
<Input />
<Title />
</div>
)
export default App;
|
src/shop/shop.js | bschneier/credit-cards-front-end | import React, { Component } from 'react';
import { connect } from 'react-redux';
import apiClient from '../api/apiClient';
import CONSTANTS from '../shared/constants';
class Shop extends Component {
constructor() {
super();
this.state = {
username: "username"
};
}
componentWillMount() {
ap... |
react-ebay-network-aware-code-splitting/src/components/CenterPanelInternal/ProductSummary/index.js | GoogleChromeLabs/adaptive-loading |
import React from 'react';
import LeftSummary from './LeftSummary';
import RightSummary from './RightSummary';
import './product-summary.css';
const ProductSummary = () => {
return (
<div className='product-summary'>
<div className='left-product-summary'>
<LeftSummary />
</div>
<div c... |
src/components/SubSection.js | irla/react-cv | // @flow
import React from 'react';
import '../styles/sections.scss';
type Props = {
className?: string,
title: string,
info?: string,
children: any
}
const SubSection = (props: Props) => (
<div className={`popover popover-static sub-section ${props.className}`}>
<h3 className="popover-title">
{pr... |
src/containers/AddTodo.js | finfort/TodoReactApp | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { addTodo } from '../actions';
let nextTodoId = 0;
let Todo = ({dispatch }) => {
let input;
return (
<div>
<div>
<form onSubmit={e => {
e.preventDefa... |
src/svg-icons/hardware/device-hub.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDeviceHub = (props) => (
<SvgIcon {...props}>
<path d="M17 16l-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5h-4z"/>
</SvgIcon>... |
src/routes/UIElement/dropOption/index.js | zhouchao0924/SLCOPY | import React from 'react'
import { DropOption } from '../../../components'
import { Table, Row, Col, Card, message } from 'antd'
const DropOptionPage = () => <div className="content-inner">
<Row gutter={32}>
<Col lg={8} md={12}>
<Card title="默认">
<DropOption menuOptions={[{ key: '1', name: '编辑' }, ... |
_~2017/react/todos/src/containers/AddTodo.js | zhoukekestar/drafts | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
}
dispatch(addTodo(input.v... |
src/pages/todo/components/footer.js | mvtnghia/web-boilerplate | import classNames from 'classnames';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { changeFilter, clearCompleted } from '../actions';
import { SHOW_ACTIVE, SHOW_ALL, SHOW_COMPLETED } from '../constants';
import {
activeCountSelecto... |
front/src/components/DateTimePicker.js | ethbets/ebets | /* Copyright (C) 2017 ethbets
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
import DatePicker from 'material-ui/DatePicker';
import TimePickerDialog from './TimePicker/TimePickerDialog';
import moment from 'momen... |
docs/app/Examples/modules/Dropdown/Content/DropdownExampleImage.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
import { friendOptions } from '../common'
const DropdownExampleImage = () => (
<Dropdown text='Add user' floating labeled button className='icon'>
{/* <i class="add user icon"></i> */}
<Dropdown.Menu>
<Dropdown.Header content='Peop... |
src/containers/LiveMarkedArea.js | MattMcFarland/react-markdown-area | /*
Import React
*/
import React from 'react';
/*
Import Components
*/
import {
MarkedPreview,
MarkedInput
} from '../components';
/*
MarkedArea Container Class
*/
export class LiveMarkedArea extends React.Component {
constructor(props) {
super(props);
this.state = {
value: props.defaultVal... |
spec/components/drawer.js | VACO-GitHub/vaco-components-library | import React from 'react';
import Button from '../../components/button';
import Drawer from '../../components/drawer';
class DrawerTest extends React.Component {
state = {
leftActive: false,
rightActive: false
};
handleToggleLeft = () => {
this.setState({leftActive: !this.state.leftActive});
};
... |
client/scripts/components/user/entities/numeric-control/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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
Lic... |
packages/react-reconciler/src/ReactFiberClassComponent.js | kaushik94/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 {Fiber} from './ReactFiber';
import type {ExpirationTime} from './ReactFiberExpirationTime';
import React... |
src/TextOnlyElement/index.js | christianalfoni/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import Typography from '../Typography';
import classNames from 'classnames';
import styles from './styles.css';
const BREAK_TEXT_LENGTH = 415;
function TextOnlyElement(props) {
let textLength = props.children.length;
if (typeof props.children !==... |
addons/centered/example/index.js | nfl/react-storybook | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import decorator from '../index';
const content = decorator(() => 'Hello World!');
const wrapper = document.querySelector('#content');
ReactDOM.render(content, wrapper);
|
docs/pages/components/cards.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'components/cards';
const requireDemo = require.context('docs/src/pages/components/cards', false, /\.(js|tsx)$/);
const requireRaw... |
frontend/eyeballing/src/components/SearchField.js | linea-it/dri | import React from 'react';
import PropTypes from 'prop-types';
import { makeStyles, fade } from '@material-ui/core/styles';
import InputBase from '@material-ui/core/InputBase';
import IconButton from '@material-ui/core/IconButton';
import SearchIcon from '@material-ui/icons/Search';
import CloseIcon from '@material-ui/... |
src/components/Breadcrumb/index.js | lijinfengworm/ant-design-reactjs | import React from 'react';
import {Breadcrumb, Icon} from 'antd';
import sidebarMenu, {headerMenu} from 'menu.js'; // 注意这种引用方式
import Logger from '../../utils/Logger';
import './index.less';
const Item = Breadcrumb.Item;
const logger = Logger.getLogger('Breadcrumb');
/**
* 定义面包屑导航, 由于和已有的组件重名, 所以改个类名
*/
class Brea... |
examples/passing-props-to-children/app.js | shunitoh/react-router | import React from 'react'
import { render } from 'react-dom'
import { browserHistory, Router, Route, Link, withRouter } from 'react-router'
import withExampleBasename from '../withExampleBasename'
import './app.css'
const App = withRouter(
React.createClass({
getInitialState() {
return {
tacos: ... |
src/svg-icons/device/signal-cellular-connected-no-internet-1-bar.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet1Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 10v8h2v-8h-2zm-8 12V12L2 22h10zm8 0h2v-2h-2v2z"/>
</SvgIcon>
);
Devi... |
src/renderer/components/requests/request-pane.js | niklasi/halland-proxy | import React from 'react'
import {Card, CardHeader} from 'material-ui/Card'
import Avatar from 'material-ui/Avatar'
import RequestPaneToolbar from './request-pane-toolbar'
import PureRenderMixin from 'react-addons-pure-render-mixin'
import muiThemeable from 'material-ui/styles/muiThemeable'
import Stats from './request... |
routes/editHtml.js | jfengsky/Ayr | import register from 'babel-register'
import nodeJsx from 'node-jsx'
import React from 'react'
import reactServer from 'react-dom/server'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import reducer from '../tools/src/reducers/reducer'
import Edit from '../tools/src/component/Edit'
// node... |
fields/types/cloudinaryimages/CloudinaryImagesField.js | pr1ntr/keystone | import _ from 'lodash';
import React from 'react';
import Field from '../Field';
import { Button, FormField, FormInput, FormNote } from 'elemental';
import Lightbox from '../../components/Lightbox';
import classnames from 'classnames';
const SUPPORTED_TYPES = ['image/gif', 'image/png', 'image/jpeg', 'image/bmp', 'imag... |
src/icons/Thumbsdown.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Thumbsdown extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M87.8,252.7C74,257.2,64,270.2,64,285.5c0,19,15.4,34.5,34.5,34.5h102.6c-2,25-10,53.6-1.1,87.3
c7.5,28.4,39.4,49.... |
actor-apps/app-web/src/app/components/common/Fold.React.js | lstNull/actor-platform | /* eslint-disable */
import React from 'react';
import classnames from 'classnames';
class Fold extends React.Component {
static PropTypes = {
icon: React.PropTypes.string,
iconClassName: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
state = {
isOpen: false
};
construc... |
[2]. Demo_RN/[5]. textInput_component/index.ios.js | knightsj/RN_Demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TextInput,
} from 'react-native';
//Search 组件
var Search = React.createClass({
//设置初始状态
getInitialState: function(){
... |
components/common/CC-BY-SA.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import { Image } from 'semantic-ui-react';
class CCBYSA extends React.Component {
render() {
return (
<Image.Group>
<Image>
<svg x="0px" y="0px" width="54.953px" height="54.953px" viewBox="0 0 54.953 54.953"... |
src/Donut.js | neilff/react-d3-examples | import React from 'react';
import d3 from 'd3';
const defaultColors = d3.scale.category10();
import { Chart } from './common';
const Donut = (props) => {
const {
values = [],
width = 300,
radius = 25,
colors,
} = props;
const arc = d3.svg.arc()
.outerRadius(width / 2)
.innerRadius((wid... |
JotunheimenPlaces/node_modules/react-native/local-cli/templates/HelloWorld/index.ios.js | designrad/Jotunheimen-tracking | /**
* 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 HelloWorld extends Component {
render() {
return (
<View style={styles.containe... |
modules/dreamview/frontend/src/offline.js | jinghaomiao/apollo | /* import "whatwg-fetch";
* import "font-awesome-webpack"; */
import * as ReactDOM from 'react-dom';
import React from 'react';
import { Provider } from 'mobx-react';
import 'styles/main.scss';
import STORE from 'store';
import Offlineview from 'components/Offlineview';
ReactDOM.render(
<Provider store={STORE}>... |
lib/shared/screens/admin/screens/schemas/screens/single/components/new/index.js | relax/relax | import bind from 'decorators/bind';
import Component from 'components/component';
import React from 'react';
import PropTypes from 'prop-types';
import {addSchemaEntry} from 'actions/schema-entry';
import New from './new';
export default class NewSchemaEntryContainer extends Component {
static propTypes = {
onC... |
react-redux-demo/运行不了或报错/real-world/src/routes.js | fengnovo/webpack-react | import React from 'react'
import { Route } from 'react-router'
import App from './containers/App'
import UserPage from './containers/UserPage'
import RepoPage from './containers/RepoPage'
export default <Route path="/" component={App}>
<Route path="/:login/:name"
component={RepoPage} />
<Route path="/:log... |
node_modules/react-sparklines/src/Sparklines.js | TheeSweeney/ComplexReactReduxMiddlewareReview | import React from 'react';
import SparklinesLine from './SparklinesLine';
import SparklinesCurve from './SparklinesCurve';
import SparklinesBars from './SparklinesBars';
import SparklinesSpots from './SparklinesSpots';
import SparklinesReferenceLine from './SparklinesReferenceLine';
import SparklinesNormalBand from './... |
src/routes/login/index.js | dervos/react-starter-kit | /**
* 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 Login from './Login';
e... |
node_modules/react-router/es6/IndexLink.js | mattrusso/mattrusso.github.io | 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; };
import React from 'react';
import Link from './Link';
/**
*... |
examples/css-modules-custom/app.js | aruberto/react-foundation-components | /* eslint-disable import/no-unresolved */
import React from 'react';
import ReactDOM from 'react-dom';
import '../../lib/_typography.scss';
import { Button } from '../../lib/button';
import { ButtonGroup } from '../../lib/button-group';
import { ButtonGroup as FlexButtonGroup } from '../../lib/button-group-flex';
c... |
src/parser/priest/shadow/modules/spells/Dispersion.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import calculateMaxCasts from 'parser/core/calculateMaxCasts';
import Voidform from './Voidform';
const DISPERSION_... |
test/integration/production/components/hello-context.js | zeit/next.js | import React from 'react'
import PropTypes from 'prop-types'
export default class extends React.Component {
static contextTypes = {
data: PropTypes.object,
}
render() {
const { data } = this.context
return <div>{data.title}</div>
}
}
|
node_modules/react-bootstrap/es/InputGroupButton.js | firdiansyah/crud-req | 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/containers/PlayerContainer.js | ptrslr/silent-party | import React from 'react';
import SC from 'soundcloud';
import { connect } from 'react-redux';
import { togglePlay, playPrevTrack, playNextTrack, playTrack} from '../actions';
import Player from '../components/Player';
var audio;
const mapStateToProps = state => {
return {
isPlaying: state.isPlaying,
trackI... |
src/svg-icons/action/lightbulb-outline.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLightbulbOutline = (props) => (
<SvgIcon {...props}>
<path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1... |
src/svg-icons/editor/attach-money.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorAttachMoney = (props) => (
<SvgIcon {...props}>
<path d="M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.... |
src/components/CardBody.js | carlyleec/cc-react | import React from 'react'; // eslint-disable-line
import styled from 'styled-components';
const CardBody = styled.div`
font-size: 1em;
font-weight: 400;
line-height: 2;
color: inherit;
width: 100%;
display: flex;
flex-wrap: wrap;
flex: 1 1 90%;
margin-bottom: 5px;
overflow: auto;
@media (min-widt... |
app/components/ProgressBar/index.js | Princess310/onehower-frontend | import React from 'react';
import ProgressBar from './ProgressBar';
function withProgressBar(WrappedComponent) {
class AppWithProgressBar extends React.Component {
constructor(props) {
super(props);
this.state = {
progress: -1,
loadedRoutes: props.location && [props.location.pathname]... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-google-map.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import ReactDOM from 'react-dom';
import $ from 'jquery';
import {BaseMixin, ElementaryMixin} from '../common/common.js';
import './google-map.less';
export const GoogleMap = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin
],
//@@viewOff:mixins
... |
src/svg-icons/image/slideshow.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageSlideshow = (props) => (
<SvgIcon {...props}>
<path d="M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/>
</SvgIcon>
);
ImageSlideshow = pure(I... |
src/components/AsyncComponent.js | btoo/btoo.github.io | import React, { Component } from 'react';
export default function asyncComponent(importComponent) {
class AsyncComponent extends Component {
constructor(props) {
super(props);
this.state = {
component: null,
};
}
async componentDidMount() {
const { default: component }... |
core/server/lib/members/static/auth/components/CheckoutForm.js | Gargol/Ghost | import React, { Component } from 'react';
import { CardElement } from 'react-stripe-elements';
class CheckoutForm extends Component {
constructor(props) {
super(props);
}
render() {
let style = {
base: {
'::placeholder': {
color: '#8795A1',
... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | blackle/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Permalink from '../../../components/permalink';
import { displaySensitiveMedia } from '../../../initial_state';
export default class MediaItem extends Immut... |
src/components/Average/index.js | Vizzuality/iadb | 'use strict';
import './style.css';
import $ from 'jquery';
import React from 'react';
import helpers from '../../helpers';
class Average extends React.Component {
constructor(props) {
super(props);
this.state = {
name: null,
value: null,
natValue: null,
codgov: props.codgov,
... |
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleSectionProps.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'
const sections = [
{ key: 'home', content: 'Home', link: true },
{ key: 'search', content: 'Search', active: true },
]
const BreadcrumbExampleSectionProps = () => (
<Breadcrumb sections={sections} />
)
export default BreadcrumbExampleSect... |
src/views/NoChild.js | SBP07/frontend | import React from 'react';
export default class HomeView extends React.Component {
render() {
return (
<div className="container" style={{
'textAlign': 'center'
}}>
<img src={require('../images/speellogo.png')} width="auto" height="50px" style={{
'margin': '10px'
}} ... |
docs/src/sections/PageHeaderSection.js | SSLcom/Bootsharp | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function PageHeaderSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
app/javascript/mastodon/features/compose/components/upload_progress.js | kibousoft/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { FormattedMessage } from 'react-intl';
export default class UploadProgress extends React.PureComponent {
static propTypes = {
active: PropTypes... |
actor-apps/app-web/src/app/components/modals/Contacts.react.js | ONode/actor-platform | //
// Deprecated
//
import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import ContactStore from 'stores/ContactStore';
import Modal from... |
packages/ringcentral-widgets/components/VoicemailPlayer/index.js | ringcentral/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import formatDuration from '../../lib/formatDuration';
import DownloadIcon from '../../assets/images/Download.svg';
import PlayIcon from '../../assets/images/Play.svg';
import PauseIcon from '../../assets... |
frontend/src/components/recipes/edit/Create.js | jf248/scrape-the-plate | import React from 'react';
import { Scraper } from 'controllers/scraper';
import CreatePres from './CreatePres';
function Create() {
const renderFunc = scraperProps => {
return <CreatePres {...scraperProps} />;
};
return <Scraper render={renderFunc} />;
}
export default Create;
|
docs/app/Examples/modules/Tab/Usage/TabExamplePaneShorthand.js | shengnian/shengnian-ui-react | import React from 'react'
import { List, Label, Tab } from 'shengnian-ui-react'
const panes = [
{ menuItem: 'Tab 1', pane: { key: 'tab1', content: 'This is massive tab', size: 'massive' } },
{ menuItem: 'Tab 2', pane: { key: 'tab2', content: 'This tab has a center aligned text', textAlign: 'center' } },
{ menuIt... |
app/components/login-signup/FormWrapper.js | adrilo/headek | import React, { Component } from 'react';
import Form from './Form';
export default class FormWrapper extends Component {
render() {
let wrapperStyles = {
outer: {
left: '50%',
position: 'fixed',
top: '50%',
transform: 'translate... |
node_modules/react-bootstrap/es/Accordion.js | ASIX-ALS/asix-final-project-frontend | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import PanelGroup from '... |
examples/shared-root/app.js | MattSPalmer/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<p>
This illustrates how routes can share UI w/o sharing the URL.
When routes have no path, they never match themselves but their
chil... |
src/ProjectOne/ProjectOne.js | brz0/folio-v11 | import React from 'react';
import ReactTooltip from 'react-tooltip';
import Gallery from 'react-photo-gallery';
import LazyLoad from 'react-lazyload';
var Scroll = require('react-scroll');
var Link = Scroll.Link;
var Element = Scroll.Element;
var Events = Scroll.Events;
var scroll = Scroll.animateScroll;
var scroll... |
src/Components/Measure.js | vpodolyan/measurements | import React from 'react';
export default class Measure extends React.Component {
shouldComponentUpdate (nextProps) {
const {measurements} = nextProps;
if (!measurements || measurements.length === 0) {
return false;
}
return true;
}
render () {
con... |
client/components/midi/Player.js | bsubedi26/Project-Revised | import React from 'react';
class Player extends React.Component {
render() {
return (
<div className="player row">
<h2 className="white-text">Currently Playing | {this.props.playing}</h2>
</div>
);
}
}
Player.propTypes = {
playing: React.PropTypes.string.isRequire... |
src/components/Callback/index.js | vladovidiu/soundcloud | import React from 'react';
class Callback extends React.Component {
componentDidMount() {
window.setTimeout(opener.SC.connectCallback, 1);
}
render() {
return <div><p>This page should close soon.</p></div>
}
}
export default Callback;
|
src/decorators/withViewport.js | maquessime/stack-to-issue-ui | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
rio/assets/routes.js | soasme/rio | import React from 'react'
import {Redirect, Route, IndexRoute} from 'react-router'
import App from './views/app'
let routes = (
<Route path="/dashboard" component={App}>
</Route>
)
export default routes;
|
app/static/src/performer/TestTypeResultForm_modules/PolymerisationDegreeTestForm.js | vsilent/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import Button from 'react-bootstrap/lib/Button';
import Panel from 'react-bootstrap/lib/Panel';
import {findDOMNode} from 'react-dom';
import {hashHistory} from 'react-router';
im... |
client/app/components/common/ValidatedInput.js | Zuehlke/poinz | import React from 'react';
import PropTypes from 'prop-types';
/**
*/
const ValidatedInput = (props) => {
const {fieldValue, setFieldValue, onEnter, regexPattern, allLowercase, ...restProps} = props;
const pattern = typeof regexPattern === 'string' ? new RegExp(regexPattern) : regexPattern;
return (
<input... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | nguyendt214/poloniex | 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'));
|
src/components/login/LoginForm.js | fusionalliance/autorenter-react | import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col, Form, FormGroup } from 'react-bootstrap';
import { connect } from 'react-redux';
import { Field, reduxForm, formValueSelector } from 'redux-form';
import styles from './loginStyles.css';
import inputField from '../common/form/inputField';... |
client/kit/entry/server.js | Bartekus/FuseR | /* eslint-disable no-param-reassign, no-console */
// Server entry point, for Webpack. This will spawn a Koa web server
// and listen for HTTP requests. Clients will get a return render of React
// or the file they have requested
//
// Note: No HTTP optimisation is performed here (gzip, http/2, etc). Node.js
// wi... |
actor-apps/app-web/src/app/components/common/Favicon.react.js | gale320/actor-platform | import React from 'react';
export default class Fav extends React.Component {
static propTypes = {
path: React.PropTypes.string
}
constructor(props) {
super(props);
//// Create link element and it's attributes
//let favicon = document.createElement('link');
//let rel = document.createAttrib... |
examples/huge-apps/routes/Profile/components/Profile.js | jamiehill/react-router | import React from 'react';
class Profile extends React.Component {
render () {
return (
<div>
<h2>Profile</h2>
</div>
);
}
}
export default Profile;
|
app/components/feedback/feedback.js | imankit/dashboard-ui | import React from 'react';
import Popover from 'material-ui/Popover';
import {ToolbarTitle} from 'material-ui/Toolbar';
import Badge from 'material-ui/Badge';
import NotificationsIcon from 'material-ui/svg-icons/social/notifications';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import TextField ... |
features/fileCenter/components/fileItem.js | zymokey/mission-park | import React from 'react';
import { connect } from 'react-redux';
import axios from 'axios';
import { formatFileSize, getIndexOfArrayByValue, getArrayOfSpecKey } from '../../../utils';
import {
updateFileName, changeCurrentFolder,
updateUploadProgress, addUploadFile,
updateCompletedCount, updateFileSuccess,
upd... |
app/components/yeast/YeastList.js | MitchLillie/brewhome | import React from 'react'
import Yeast from './Yeast'
import YeastForm from './YeastForm'
const YeastList = React.createClass({
render: function () {
let list = this.props.yeast.map((yeast, i) => {
return <Yeast {...yeast} key={i + 1} />
})
return (
<table className='table table-hover table-con... |
actor-apps/app-web/src/app/components/Install.react.js | amezcua/actor-platform | import React from 'react';
export default class Install extends React.Component {
render() {
return (
<section className="mobile-placeholder col-xs row center-xs middle-xs">
<div>
<img alt="Actor messenger"
className="logo"
src="assets/img/logo.png"
... |
Agenda/src/components/faq.js | interlegis/agenda-evento | import React, { Component } from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';
import { getUsuario } from '../actions';
import { FIELD_FAQ, FIELD_FAQ2 } from './forms/faq_types';
class Faq extends Component {
constructor(props){
super(props);
}
componentWillMount() {
if (this.p... |
docs/src/pages/customization/OverridesInlineStyle.js | AndriusBil/material-ui | // @flow weak
import React from 'react';
import Button from 'material-ui/Button';
// We can use inline-style
const style = {
background: 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)',
borderRadius: 3,
border: 0,
color: 'white',
height: 48,
padding: '0 30px',
boxShadow: '0 3px 5px 2px rgba(255, 105,... |
src/components/FrontPage.js | ffossum/gamesite3-client | /* @flow */
import React from 'react';
import ChatContainer from '../redux/modules/chat/ChatContainer';
export default function FrontPage() {
return (
<main>
<h1>Welcome</h1>
<section>
<h2>News</h2>
</section>
<section>
<ChatContainer channelName="general" />
</sec... |
web/src/VmprobeConsole.js | vmprobe/vmprobe | import React from 'react';
import PureComponent from 'react-pure-render/component';
import update from './update';
import Timeline from './Timeline';
import $ from 'jquery';
require("../css/bootstrap.min.css");
export default class VmprobeConsole extends PureComponent {
constructor(props) {
super(props);
... |
exercise-05-solution/src/components/Pokedex.js | learnapollo/pokedex-react | import React from 'react'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
import styled from 'styled-components'
import PokemonPreview from '../components/PokemonPreview'
import AddPokemonPreview from '../components/AddPokemonPreview'
const Title = styled.div`
color: #7F7F7F;
font-size: 32px;... |
src/components/video_list_item.js | robertorb21/ReduxSimpleStarter | import React from 'react'
//const VideoListItem = (props) => {
//const video = props.video
//esas dos lineas las podemos hacer una si le agregamos {} al parametro props y le ponemos direactamente la propiedad
const VideoListItem = ({video, onVideoSelect}) => {
const imageUrl = video.snippet.thumbnails.default.url
... |
src/components/StartingPage.js | googleinterns/step236-2020 | /**
* Copyright 2020 Google LLC
*
* 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... |
src/website/app/pages/ComponentDoc/DocExamples.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import ComponentDocExample from '../../ComponentDocExample';
import Section from './DocSection';
import type { Examples } from './types';
type Props = {
examples: Examples,
slug: string
};
export default function DocExamples(props: Props) {
let { examples, slug } = props;... |
frontend/app/site/pages/Styles/Styles.js | briancappello/flask-react-spa | import React from 'react'
import Helmet from 'react-helmet'
import { HashLink, PageContent } from 'components'
import BlockQuote from './BlockQuote'
import Buttons from './Buttons'
import Code from './Code'
import Forms from './Forms'
import Grid from './Grid'
import Lists from './Lists'
import Navigation from './Nav... |
app/components/AboutComponent.js | cdillon85/the-art-store | import React from 'react'
export default function AboutComponent (props) {
return (
<div>
<h1 className="about-header"> Welcome </h1>
<p className="text">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Donec hendrerit tempor tellus. Donec pretium pos... |
src/client/pages/todos.react.js | grabbou/este | import Buttons from '../todos/buttons.react';
import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import List from '../todos/list.react';
import NewTodo from '../todos/newtodo.react';
import React from 'react';
import ToCheck from './tocheck.react';
import immutable ... |
app/javascript/mastodon/components/column_back_button_slim.js | robotstart/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
class ColumnBackButtonSlim extends React.PureComponent {
constructor (props, context) {
super(props, context);
this.handleClick = this.handleClick.bind(this);
}
handleClick () {
this.contex... |
app/javascript/mastodon/features/compose/containers/warning_container.js | verniy6462/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import Warning from '../components/warning';
import { createSelector } from 'reselect';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { OrderedSet } f... |
app/src/Frontend/libs/weui/components/cell/cell_body.js | ptphp/ptphp | /**
* Created by jf on 15/11/12.
*/
import React from 'react';
import classNames from 'classnames';
export default class CellBody extends React.Component {
render() {
const {children, ...others} = this.props;
const className = classNames({
weui_cell_bd: true,
weui_cell_... |
app/scripts/components/node-details/node-details-property-list.js | hustbill/autorender-js | import React from 'react';
import { Map as makeMap } from 'immutable';
import sortBy from 'lodash/sortBy';
import { NODE_DETAILS_DATA_ROWS_DEFAULT_LIMIT } from '../../constants/limits';
import NodeDetailsControlButton from './node-details-control-button';
import MatchedText from '../matched-text';
import ShowMore from... |
src/index.js | Rakshay/InfiniteScroller | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import axios from 'axios';
import classnames from 'classnames';
import InfiniteList from './messageScroller';
import Message from './message.js';
/**
* This react component will fetch the messages from the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.