path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/Top/Wallet.js | PhyrexTsai/ens-bid-dapp | import React from 'react';
import Button from 'material-ui/Button';
import './Wallet.css';
export const Wallet = (props) => {
const unlockWallet = (props.privateKey) ? 'WalletBtn unlock' : 'WalletBtn';
return (
<Button className={unlockWallet} color="contrast" onClick={props.onClick}>
<i className="mater... |
tests/Rules-isLength-spec.js | lei-clearsky/temp | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
const TestForm = React.createClass({
render() {
re... |
node_modules/semantic-ui-react/src/collections/Message/MessageHeader.js | SuperUncleCat/ServerMonitoring | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* A message can contain a header.
*/
function MessageHeader(props) {
const { childre... |
app/javascript/mastodon/features/compose/components/autosuggest_account.js | yi0713/mastodon | import React from 'react';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class AutosuggestAccount extends Immuta... |
src/svg-icons/action/description.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDescription = (props) => (
<SvgIcon {...props}>
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/>
</SvgIcon>
);
A... |
SingularityUI/SingularityTailer/example/AppRouter.js | andrhamm/Singularity | import React from 'react';
import { Router, Route, browserHistory } from 'react-router';
import App from './App';
import SandboxTailerPage from './SandboxTailerPage';
import LoadTests from './LoadTests';
const AppRouter = () => (
<Router history={browserHistory}>
<Route path="/" component={App}>
<Route pa... |
docs/app/Examples/elements/Icon/Variations/IconExampleColored.js | ben174/Semantic-UI-React | import React from 'react'
import { Icon } from 'semantic-ui-react'
const IconExampleColored = () => (
<div>
<Icon color='red' name='users' />
<Icon color='orange' name='users' />
<Icon color='yellow' name='users' />
<Icon color='olive' name='users' />
<Icon color='green' name='users' />
<Icon... |
dispatch/static/manager/src/js/pages/Sections/SectionIndexPage.js | ubyssey/dispatch | import React from 'react'
import { connect } from 'react-redux'
import { replace } from 'react-router-redux'
import ItemIndexPage from '../ItemIndexPage'
import sectionsActions from '../../actions/SectionsActions'
const mapStateToProps = (state) => {
return {
token: state.app.auth.token,
listItems: state.ap... |
examples/simple/src/Home.js | aranja/tux | import React from 'react'
import tuxLogo from './tux.svg'
import './Home.css'
const Home = () => {
return (
<div className="Tux-get-started">
<img src={tuxLogo} />
<p>Edit app.js to get started</p>
</div>
)
}
export default Home
|
src/SingleQuestion.js | ihfazhillah/asilah | import React from 'react'
import {graphql, gql} from 'react-apollo'
import _ from 'lodash';
import {Field, reduxForm} from 'redux-form'
import swal from 'sweetalert2';
import Halogen from 'halogen'
import DocumentTitle from 'react-document-title';
const ChoicesRadioTemplate = ({choices, questionId}) => (
<div>
{... |
examples/01-github-profile-viewer/lib/index.js | jhudson8/react-redux-model | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, combineReducers, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import { Router, Route, browserHistory } from 'react-router';
// our custom application stuff
import middleware from './middleware';
import reducer... |
src/svg-icons/hardware/desktop-windows.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDesktopWindows = (props) => (
<SvgIcon {...props}>
<path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z"/>
</SvgIcon>
);
HardwareDesk... |
actor-apps/app-web/src/app/components/DialogSection.react.js | liruqi/actor-platform | import _ from 'lodash';
import React from 'react';
import { PeerTypes } from 'constants/ActorAppConstants';
import PeerUtils from 'utils/PeerUtils';
import MessagesSection from 'components/dialog/MessagesSection.react';
import TypingSection from 'components/dialog/TypingSection.react';
import ComposeSection from 'c... |
src/interface/common/thirdpartybuttons/Discord.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import DiscordLogo from 'interface/icons/Discord';
import './ThirdPartyButtons.css';
const DiscordButton = ({ style }) => (
<a
className="btn discord"
role="button"
href="https://discord.gg/AxphPxU"
style={style}
>
<DiscordLogo />... |
packages/showcase/radar-chart/four-quadrant-radar-chart.js | uber/react-vis | // Copyright (c) 2016 - 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... |
webapp-src/src/Profile/SchemeOauth2.js | babelouest/glewlwyd | import React, { Component } from 'react';
import i18next from 'i18next';
import apiManager from '../lib/APIManager';
import messageDispatcher from '../lib/MessageDispatcher';
import Notification from '../lib/Notification';
class SchemeOauth2 extends Component {
constructor(props) {
super(props);
this.state... |
resources/js/Admin/components/TabbedNav/TabbedNav.js | DoSomething/northstar | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import NavLink from '../Navigation/NavLink';
import { route } from '../../../helpers/url';
import { isCurrentTabRoute } from '../../../helpers/url';
const TabbedNav = ({ links }) => {
const activeClasses = classnames... |
demo/card/card.js | Graf009/react-mdl | import React from 'react';
import ReactDOM from 'react-dom';
import { Card, CardTitle, CardText, CardActions, CardMenu, CardMedia } from '../../src/Card';
import Button from '../../src/Button';
import IconButton from '../../src/IconButton';
import Icon from '../../src/Icon';
class Demo extends React.Component {
re... |
packages/wix-style-react/src/EndorseContentLayout/docs/index.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import Markdown from 'wix-storybook-utils/Markdown';
import CodeExample from 'wix-storybook-utils/CodeExample';
import Readme from '../README.md';
import Error from './examples/error';
import ErrorRaw from '!raw-loader!./examples/error';
import... |
src/icons/PanToolIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class PanToolIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M46 11v29c0 4.4-3.6 8-8 8H23.4c-2.16 0-4.2-.86-5.7-2.38L2 29.66s2.52-2.46 2.6-2.5c.44-.38.98-.58 1.58-.58.... |
www/src/components/Home.js | OKNoah/slipstream | import React from 'react'
// import Article from 'grommet/components/Article'
import Section from 'grommet/components/Section'
import Article from 'grommet/components/Article'
import Footer from 'grommet/components/Footer'
import Paragraph from 'grommet/components/Paragraph'
import Image from 'grommet/components/Image... |
examples/js/basic/basic-table.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
js/Landing.js | adamki/Reactv2-2017 | import React from 'react'
import { Link } from 'react-router'
import { connect } from 'react-redux'
import { setSearchTerm, clearSearchTerm } from './actionCreators'
const { string, func, object } = React.PropTypes
const Landing = React.createClass({
contextTypes: {
router: object
},
propTypes: {
search... |
admin/client/App/screens/Item/components/EditForm.js | ONode/keystone | import React from 'react';
import moment from 'moment';
import assign from 'object-assign';
import {
Form,
FormField,
FormInput,
Grid,
ResponsiveText,
} from '../../../elemental';
import { Fields } from 'FieldTypes';
import { fade } from '../../../../utils/color';
import theme from '../../../../theme';
import { ... |
src/scenes/home/informationForm/formComponents/militaryInfo.js | tskuse/operationcode_frontend | import React, { Component } from 'react';
import { Line } from 'rc-progress';
import Form from 'shared/components/form/form';
import PropTypes from 'prop-types';
import FormSelect from 'shared/components/form/formSelect/formSelect';
import { MILSTATUS, BRANCH, BRANCH_PROMPT } from 'shared/constants/status';
import styl... |
app/client/src/scenes/ManageAction/ManageAction.js | uprisecampaigns/uprise-app | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { compose, graphql } from 'react-apollo';
import { connect } from 'react-redux';
import { List, ListItem } from 'material-ui/List';
import RaisedButton from 'material-ui/RaisedButton';
import Dialog from 'material-ui/Dialog';
import Fo... |
app/src/components/Contact/WriteMe/index.js | AlexandreBourdeaudhui/abourdeaudhui.fr | /*
* Package Import
*/
import React from 'react';
import PropTypes from 'prop-types';
/*
* Local Import
*/
/*
* Code
*/
const WriteMe = ({ onToggleForm }) => (
<p id="write-me">
<span>Vous souhaitez des renseignements ?</span>
<a
className="write-item"
href="mailto:alexandre.bourdeaudhu... |
docs/media/flex-video/index.js | aruberto/react-foundation-components | import React from 'react';
import { FlexVideo } from '../../../src/flex-video';
const FlexVideoPage = () => (
<div>
<h1>Flex Video</h1>
<p>
Wrap embedded videos from YouTube, Vimeo, and others in a flex video container to ensure
they maintain the correct aspect ratio regardless of screen size.
... |
client/components/menu.js | CodeWriterWriter/vidi-dashboard | 'use strict'
import React from 'react'
import {Link} from 'react-router'
export default React.createClass({
render () {
return (
<div className="nav-main-wrapper">
<input type="checkbox" name="nav-menu-handle" id="nav-menu-handle" className="nav-menu-handle" />
<label htmlFor="nav-menu-han... |
app/react-native/app/app.js | sping/abcd-epic-fussball |
import React, { Component } from 'react';
import {
Text,
View,
MapView,
} from 'react-native'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import styles from './styles';
import Counter from './screens/Counter';
import configureStore from './configureStore';
import LoginScreen from... |
src/parser/demonhunter/vengeance/modules/talents/BurningAlive.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import { formatNumber } from 'common/format';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
//WCL: https://www.warcra... |
src/icons/At.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class At extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M453.8,407.1c-23.9,25.3-52.3,43.8-85.2,55.4C335.7,474.2,301,480,264.5,480c-34.9,0-66.7-5.5-95.3-16.6
c-28.6-11-53.1-26.... |
app/scripts/components/loading.js | hustbill/autorender-js | import React from 'react';
import { sample } from 'lodash';
import { findTopologyById } from '../utils/topology-utils';
import NodesError from '../charts/nodes-error';
const LOADING_TEMPLATES = [
'Loading THINGS',
'Verifying THINGS',
'Fetching THINGS',
'Processing THINGS',
'Reticulating THINGS',
'Locatin... |
actor-apps/app-web/src/app/components/Main.react.js | suxinde2009/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import VisibilityActionCreators from 'actions/VisibilityActionCreators';
import ActivitySection from 'components/ActivitySection.react';
import SidebarSection from 'components/SidebarSection.react';
import ToolbarSection from 'components/Toolba... |
docs/src/app/components/pages/components/DatePicker/ExampleSimple.js | manchesergit/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
/**
* The Date Picker defaults to a portrait dialog. The `mode` property can be set to `landscape`.
* You can also disable the Dialog passing `true` to the `disabled` property.
* To display the year selection first, set the `openToYearSelec... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/color-lens.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageColorLens = (props) => (
<SvgIcon {...props}>
<path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5... |
src/pages/lab/hexapawn.js | mrozilla/mrozilla.cz | // ─────────────────────────────────────────────────────────────────────────────
// import
// ─────────────────────────────────────────────────────────────────────────────
import React from 'react';
import { graphql } from 'gatsby';
import PropTypes from 'prop-types';
import sample from 'lodash/sample';
import { Roo... |
common/containers/topic-container.js | vincent178/scala-china | import React, { Component } from 'react';
import { connect } from 'react-redux';
import TopicDetailWithReplies from '../components/topic-container/topic-detail-with-replies';
import Spinner from '../components/shared/spinner';
import { getTopicDetailWithReplies, getMoreTopicReplies } from '../actions/topic';
import { ... |
frontend/component/TopicDetail.js | sijia-c/practice-node-project | import React from 'react';
import {Link} from 'react-router';
import 'highlight.js/styles/github-gist.css';
import {getTopicDetail, addComment, deleteComment,deleteTopic} from '../lib/client';
import {renderMarkdown,redirectURL} from '../lib/utils';
import CommentEditor from './CommentEditor';
export default class Top... |
examples/04 Sortable/Stress Test/index.js | randrianov/react-dnd | import React, { Component } from 'react';
import Container from './Container';
export default class SortableStressTest extends Component {
constructor(props) {
super(props);
// Avoid rendering on server because the big data list is generated
this.state = { shouldRender: false };
}
componentDidMount(... |
tech_stack/src/App.js | haaswill/ReactNativeCourses | import React from 'react';
import { View } from 'react-native';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import reducers from './reducers';
import { Header } from './components/common';
import LibraryList from './components/LibraryList';
const App = () => {
return (
<Provider ... |
examples/real-world/src/routes.js | heyesther/redux | 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... |
docs/src/pages/components/tooltips/ControlledTooltips.js | lgollut/material-ui | import React from 'react';
import Button from '@material-ui/core/Button';
import Tooltip from '@material-ui/core/Tooltip';
export default function ControlledTooltips() {
const [open, setOpen] = React.useState(false);
const handleClose = () => {
setOpen(false);
};
const handleOpen = () => {
setOpen(tr... |
platform/ui/src/elements/form/OldSelect.js | OHIF/Viewers | import './Select.css';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Select extends Component {
constructor(props) {
super(props);
this.state = {
value: this.props.value,
};
}
handleChange = event => {
const value = event.target.value;
this.setStat... |
src/components/LayoutFullScreen/LayoutFullScreen.js | nicolascine/site | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
Veo/node_modules/react-native/Libraries/Text/Text.js | JGMorgan/Veo | /**
* 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.
*
* @provides... |
src/containers/home/Home.js | ScorpionJay/ONE | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View,
ScrollView
} from 'react-native';
import ToolBar from '../../common/ToolBar'
import CarouselCompont from '../../common/RNCarousel'
import ListCompontent from './ListCompontent'
import { connect } from 'react-redux'
import { fetc... |
src/App.js | selrond/coloreact | import React, { Component } from 'react';
import Swatch from './components/Swatch';
import 'normalize.css';
import './App.css';
class App extends Component {
render() {
return (
<Swatch />
);
}
}
export default App;
|
src/routes.js | aleksUIX/ultraInput | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Chat,
Home,
Widgets,
About,
Login,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default (store) ... |
frontend/src/components/entries/index.js | Kilte/cindy | import React from 'react';
import {connect} from 'react-redux';
import {entriesRequest, markAsReadRequest} from '../../actions';
import {Pagination, FIRST_PAGE, INITIAL_OFFSET, LIMIT} from '../shared/pagination';
import Preloader from '../shared/preloader';
import './index.css';
import Item from './item';
class Entri... |
src/AppBundle/Resources/static/jsx/app/Customer.js | viszerale-therapie/simple-courses | import React from 'react';
import ReactDOM from 'react-dom';
import URL from 'js-handy-url';
import tl from '../util/translator';
import DataTable from '../util/DataTable';
import actions from '../util/actions';
import dataCustomer from '../data/Customer';
class ExcelExportButton extends React.Component {
export... |
src/components/laravel/plain/LaravelPlain.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './LaravelPlain.svg'
/** LaravelPlain */
function LaravelPlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'LaravelPlain' + ' ' + className... |
node_modules/react-bootstrap/es/NavbarCollapse.js | lucketta/got-quote-generator | 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 ... |
app/containers/HomePage/index.js | GeorgeZhukov/react-todo | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
src/components/app.js | vamsikoduri/udemy_next_level_redux | import React, { Component } from 'react';
import SearchBar from '../containers/SearchBar';
import WeatherList from '../containers/weather_list'
export default class App extends Component {
render() {
return (
<div>
<SearchBar />
<WeatherList />
</div>
);
}
}
|
src/stories/Welcome.js | ansumanshah/react-app-kit | import React from 'react';
const styles = {
main: {
margin: 15,
maxWidth: 600,
lineHeight: 1.4,
fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif',
},
logo: {
width: 200,
},
link: {
color: '#1474f3',
textDecoration: 'none',
borderBottom: '1px ... |
src/client/components/doc/DocComponent.js | arminbhy/reactator-demo | import React from 'react';
import Highlight from 'react-highlight';
/**
* @class
* @memberOf module:Demo
* @classdesc DocComponent is a simple default page for the demo.
* Demonstrate use of context.router and {@link module:Reactator.ResponsiveComponent}
*/
export default class DocComponent extends Rea... |
extensions/cms/components/JsonDomHelper.js | axax/lunuc | import React from 'react'
import ReactDOM from 'react-dom'
import PropTypes from 'prop-types'
import * as CmsActions from '../actions/CmsEditorAction'
import {bindActionCreators} from 'redux'
import {connect} from 'react-redux'
import {
SimpleSelect,
SimpleDialog,
SimpleMenu,
SettingsInputComponentIcon,... |
dev/js/store/reducers/parentSelectReducer.js | artisnull/React-CMS | /*
Filename: clickReducer.js (aggregate reducer)
Author: Zach Lambert
Last Updated: 17 Apr 2017
Description: Handles state for parent selection
clickReducer: parentSelectOn
parentClickReducer: activeParent
*/
import React from 'react';
const defaultState = {
parentSelectOn: false
};
export const parSelectToggRedu... |
auto-scroller/components/default/preload.js | mathisonian/idyll | import React from 'react';
const ReactDOM = require('react-dom');
const imageCache = [];
class Preloader extends React.PureComponent {
componentDidMount() {
const { images } = this.props;
images.forEach((i) => {
const img = new Image();
img.src = i;
imageCache.push(img);
});
}
rende... |
app/components/MessageList/MessageList.js | Jacob-Elder/react-socket.io-messaging-v2 | import React from 'react'
import './MessageList.css'
import Message from '../Message/Message.js'
class MessageList extends React.Component{
render () {
return (
<div className='messages' id='messages'>
{
this.props.messages.map(function (message, i) {
return (
<Message
className='m... |
src/containers/Home/homeContainer.js | jiangjiyun/jjy-music | /**
* Created by Administrator on 2016/7/1.
*/
import React, { Component } from 'react';
import ReactDOM from 'react-dom'
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
//关于import什么时候用{},什么时候不用大括号,通过那个插件或者组件是否包含default来判断,如果包含,则不需要{}
/*actions*... |
example/src/example.js | cf/react-metrics-graphics | import React from 'react';
import ReactDOM from 'react-dom';
import MetricsGraphics from 'react-metrics-graphics';
const TEST_DATA=[{'date':new Date('2014-01-01'),'value':190000000},{'date':new Date('2014-01-02'),'value':190379978},{'date':new Date('2014-01-03'),'value':90493749},{'date':new Date('2014-01-04'),'value':... |
react/features/base/react/components/native/HeaderLabel.js | jitsi/jitsi-meet | // @flow
import React, { Component } from 'react';
import { Text, View } from 'react-native';
import { ColorSchemeRegistry } from '../../../color-scheme';
import { translate } from '../../../i18n';
import { connect } from '../../../redux';
/**
* The type of the React {@code Component} props of {@link HeaderLabel}.
... |
src/components/Team/CreateTeam.js | unihackhq/skilled-acolyte-frontend | import React from 'react';
import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react';
import { Message, MessageHeader, MessageBody, Field, Label, Control, Input, Button, Title } from 'bloomer';
import { apiPost } from '../../utils/api';
class CreateTeam extends React.Component {
static propTypes = {
... |
src/client/components/Post.js | josh--newman/blog | import React from 'react';
class Post extends React.Component {
render() {
return <div>Post coming soon.</div>
}
}
export default Post;
|
src/svg-icons/action/account-balance.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountBalance = (props) => (
<SvgIcon {...props}>
<path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"/>
</SvgIcon>
);
ActionAccountBalance = pure(ActionA... |
webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableSchema.js | adamruzicka/katello | /* eslint-disable import/prefer-default-export */
import React from 'react';
import { Icon } from 'patternfly-react';
import { Link } from 'react-router-dom';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
import { translate as __ } from 'foremanReact/common/I18n';
import { entitlementsInlineEditFormatter... |
packages/material/src/components/FieldsetArray.js | wq/wq.app | import React from 'react';
import { useComponents } from '@wq/react';
import PropTypes from 'prop-types';
export default function FieldsetArray({ label, children, addRow }) {
const { View, Button } = useComponents();
return (
<View>
{children}
{addRow && (
<Butto... |
src/Affix.js | RichardLitt/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import AffixMixin from './AffixMixin';
import domUtils from './utils/domUtils';
const Affix = React.createClass({
statics: {
domUtils
},
mixins: [AffixMixin],
render() {
let holderStyle = {top: this.state.affixPositionTop};
return (... |
node_modules/react-router/modules/Navigation.js | kevinsimper/isomorphic-apps-presentation | import React from 'react';
var { object } = React.PropTypes;
/**
* A mixin for components that modify the URL.
*
* Example:
*
* import { Navigation } from 'react-router';
*
* var MyLink = React.createClass({
* mixins: [ Navigation ],
* handleClick(event) {
* event.preventDefault();
* ... |
src/component/landing-container/index.js | saidmattar/cloud-life-frontend | import React from 'react';
import {connect} from 'react-redux';
import {signupRequest, loginRequest} from '../../action/auth-actions';
import * as utils from '../../lib/utils';
import AuthForm from '../auth-form';
class LandingContainer extends React.Component {
render() {
let {params} = this.props.match;
... |
client/pages/examples/basics/hello-world/index.js | fdesjardins/webgl | import React from 'react'
import webglUtils from '-lib/webgl-utils.js'
import UpDownLeftRight from '-/components/controls/up-down-left-right'
import Example from '-/components/example'
import notes from './readme.md'
import vtxShader from './vertex.glsl'
import fragShader from './fragment.glsl'
import Baobab from 'ba... |
src/components/bodychild.js | kouumou/gallery-by-react | import React from 'react';
export default class BodyChild extends React.Component{
render(){
return(
<div>
<p>子页面输入:<input type="text"
onChange={this.props.handleChildValueChange}/></p>
<p>{this.props.userid} {this.props.username} {this.props.id}</p>
</div>
)
}
}
|
public/app/components/home/home.js | feedm3/unhypem | /**
* @author Fabian Dietenberger
*/
'use strict';
import React from 'react';
import SongTable from './song-table';
import WelcomeInfoEntry from './welcome-info-entry';
import ShortcutsInfoEntry from './shortcuts-info-entry';
import songDispatcher from '../../dispatcher/song-dispatcher';
import ACTION from '../../co... |
src/scripts/components/ToDoElement.js | fantasywind/React-Todo | import React from 'react';
import Radium from 'radium';
import {Link} from 'react-router-component';
import TodoChecker from './TodoChecker.js';
import TodoContent from './TodoContent.js';
import TodoRemover from './TodoRemover.js';
const styles = {
wrap: {
width: '100%',
height: 60,
display: 'flex',
... |
app/components/UserList.js | nosplashurinal/order-management | import React from 'react';
import styles from '../styles/userList.scss';
import classNames from 'classnames';
const UserList = () =>
<section id={styles.user_list}>
<header>
<div id={styles.user_list_search}>
<input type="text" placeholder="Search" />
<button className={styles.arrow}></button>
... |
src/common/SpellIcon.js | enragednuke/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from './SPELLS';
import SpellLink from './SpellLink';
import Icon from './Icon';
const SpellIcon = ({ id, noLink, ...others }) => {
if (process.env.NODE_ENV === 'development' && !SPELLS[id]) {
throw new Error(`Unknown spell: ${id}`);
... |
node_modules/react-router/es6/Link.js | HK8383/react_project_imooc | 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 = {... |
packages/react-dom/src/test-utils/ReactTestUtils.js | Simek/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.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import {findCurrentFiberUsingSlowPath} from 'react-reconciler/reflect... |
src/components/video_list.js | Vedant-Koditkar/ReduxSimpleStarter | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return(
<VideoListItem
onVideoSelected = {props.onVideoSelected}
key={video.etag}
video={video}/>
);
});
return (
... |
map/src/containers/EntryForm/components/Badge.js | teikei/teikei | import React from 'react'
const Badge = ({ name, url, logoUrl }) => (
<div className="entries-badge">
<div onClick={(event) => event.preventDefault()}>
{(name && name) || ''}
</div>
<a href={url} target="_blank" rel="noopener noreferrer">
<img className="entries-badge-image" src={logoUrl} hei... |
wail-ui/loadingScreens/firstTime/components/javaCheck/javaCheckStep.js | N0taN3rd/wail | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import delay from 'lodash/delay'
import { compose, branch, setDisplayName, renderComponent, shouldUpdate } from 'recompose'
import { JavaCheckRecord } from '../../../records'
imp... |
app/components/fbads-cell.js | 7kfpun/BitcoinReactNative | import React from 'react';
import {
Image,
StyleSheet,
Text,
View,
} from 'react-native';
import { withNativeAd } from 'react-native-fbads';
const styles = StyleSheet.create({
container: {
flexDirection: 'row',
paddingHorizontal: 12,
paddingVertical: 5,
justifyContent: 'center',
borderBot... |
fields/types/select/SelectColumn.js | sendyhalim/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var SelectColumn = React.createClass({
displayName: 'SelectColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
linkTo: React.Prop... |
src/admin/components/SchemaForm/ControlsContext.js | u-wave/web | import React from 'react';
export default React.createContext(new Map());
|
static/src/components/Home/index.js | agelarry/online_quiz | import React from 'react';
export const Home = () =>
<section>
<div className="container text-center">
<h1>Hello</h1>
</div>
</section>;
|
src/components/events/EventForm.js | bharney/YogaMarieMills | import React from 'react';
import TextInput from '../common/TextInput';
import Admin from '../common/Admin';
import DatePicker from 'material-ui/DatePicker';
import Editor from 'draft-js-plugins-editor';
import createInlineToolbarPlugin from 'draft-js-inline-toolbar-plugin';
import {
ItalicButton,
BoldButton,
Un... |
src/Parser/Priest/Shadow/CHANGELOG.js | enragednuke/WoWAnalyzer | import React from 'react';
import { hassebewlen, Zerotorescue } from 'MAINTAINERS';
import Wrapper from 'common/Wrapper';
import ItemLink from 'common/ItemLink';
import ITEMS from 'common/ITEMS';
export default [
{
date: new Date('2017-12-29'),
changes: <Wrapper>Fixed display in the timeline and the inclusi... |
src/svg-icons/maps/subway.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsSubway = (props) => (
<SvgIcon {...props}>
<circle cx="15.5" cy="16" r="1"/><circle cx="8.5" cy="16" r="1"/><path d="M7.01 9h10v5h-10zM17.8 2.8C16 2.09 13.86 2 12 2c-1.86 0-4 .09-5.8.8C3.53 3.84 2 6.05 2 8.... |
app/javascript/mastodon/features/list_timeline/index.js | cybrespace/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnBackButton from '../../co... |
src/svg-icons/image/timer.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimer = (props) => (
<SvgIcon {...props}>
<path d="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0... |
src/issue/screens/pull-merge.screen.js | dyesseyumba/git-point | /* eslint-disable no-shadow */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { View, ScrollView, StyleSheet, TextInput, Alert } from 'react-native';
import { ListItem, Icon } from 'react-native-elements';
import ActionSheet from 'reac... |
node_modules/semantic-ui-react/src/views/Feed/FeedContent.js | SuperUncleCat/ServerMonitoring | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
createShorthand,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
import FeedDate from './FeedDate'
import FeedExtra from './FeedExtra'
import FeedMeta from './FeedMe... |
maodou/events/client/components/admin/eventsAdd.js | maodouio/meteor-react-redux-base | import React from 'react';
export default class EventsAdd 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 {
t... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | arasmussen/react-router | /*globals COURSES:true */
import React from 'react'
import { Link } from 'react-router'
class AnnouncementsSidebar extends React.Component {
render() {
let { announcements } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcements.... |
lib/utils/web-entry.js | rothfels/gatsby | /* @flow weak */
import React from 'react'
import ReactDOM from 'react-dom'
import { applyRouterMiddleware, browserHistory, Router } from 'react-router'
import useScroll from 'react-router-scroll/lib/useScroll'
import createRoutes from 'create-routes'
const loadContext = require('.gatsby-context')
import { onRouteChan... |
src/docs/examples/HelloWorld/ExampleHelloWorld.js | peadar33/react-component | import React from 'react';
import HelloWorld from 'ps-react/HelloWorld';
/** Custom message */
export default function ExampleHelloWorld() {
return <HelloWorld message="Pluralsight viewers!" />
}
|
app/javascript/mastodon/features/status/components/detailed_status.js | dwango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import StatusContent from '../../../components/status_content';
import MediaGallery from... |
react-fundamentals-es6/lessons/10-lifecycle-updates/App.js | 3mundi/React-Bible | // https://jsbin.com/deliwe/edit?js,console,output
import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
constructor(){
super();
this.update = this.update.bind(this);
this.state = {increasing: false}
}
update(){
ReactDOM.render(
<App val={this.pro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.