path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
frontend/src/Movie/Edit/EditMovieModalContentConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { saveMovie, setMovieValue } from 'Store/Actions/movieActions';
import createMovieSelector from 'Store/Selectors/createMovieSelector';
import selectSetti... |
src/components/WallStorey/WallStorey.js | k2data/svg-react-playground | // @flow
import React from 'react'
import styles from './WallStorey.css'
type Props = {
title: string,
children: Element
}
export default (props: Props) => (
<div>
<h3 className={styles['title']}>{props.title}</h3>
{props.children}
</div>
)
|
src/Covid.js | haroldhues/kkblueberries | import React from 'react'
export default () => (
<div id="covid">
<hr />
<p>
<strong>
{'K & K Blueberries'} will be following the Guidance for U-Pick put
forth by the Oregon Department of Agriculture
</strong>
</p>
<h1>Customers</h1>
<ul>
<li>
Do not come... |
src/svg-icons/av/queue-play-next.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueuePlayNext = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h2v-2H3V5h18v8h2V5c0-1.11-.9-2-2-2zm-8 7V7h-2v3H8v2h3v3h2v-3h3v-2h-3zm11 8l-4.5 4.5L18 21l3-3-3-3... |
src/containers/EditSelectionScreen.js | Dennitz/Timetable | // @flow
import React from 'react';
import { LayoutAnimation } from 'react-native';
import { connect } from 'react-redux';
import i18n from 'react-native-i18n';
import EditSelection from '../components/EditSelection';
import { getCoursesSortedByName } from '../reducers/courses';
import { removeCourse } from '../action... |
pages/application-development.js | markhker/newCyK |
import React, { Component } from 'react';
import './scss/service-single.scss';
import Link from '../components/Link';
import Card from 'material-ui/lib/card/card';
import CardTitle from 'material-ui/lib/card/card-title';
import CardText from 'material-ui/lib/card/card-text';
import MyRawTheme from '../components/the... |
src/client/components/modals/ShowReviewModal.component.js | DBCDK/content-first | import React from 'react';
import FullTextReview from '../work/Review/FullTextReview.component';
import Modal from './Modal/Modal.component';
/**
* This class shows a review in a Modal box
*/
export default class ShowReviewModal extends React.Component {
render() {
return (
<Modal
className="show... |
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js | Jeremy-Meng/actor-platform | import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... |
src/components/MainSidebar/SearchForm.js | falmar/react-adm-lte | import React from 'react'
import PropTypes from 'prop-types'
const SearchForm = ({value, placeholder, onSubmit, onChange}) => {
return (
<form action='#' method='get' onSubmit={onSubmit} className='sidebar-form'>
<div className='input-group'>
<input
type='text'
className='form-c... |
src/containers/Sales/CustomDetail/Product/ProductDeleteForm.js | UncleYee/crm-ui | import React from 'react';
import Form from 'react-bootstrap/lib/Form';
import memoize from 'lru-memoize';
import ReduxTextField from 'components/Form/Horizontal/ReduxTextField';
import {Field, reduxForm} from 'redux-form';
import Button from 'react-bootstrap/lib/Button';
import Modal from 'react-bootstrap/lib/Modal';
... |
ResultPage.js | strawferry/Onion-math-demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Navigator,
TextInput,
TouchableOpacity,
StatusBar,
} from 'react-native';
import WeiboPage from "./WeiboPage.js";... |
src/components/Root/index.js | andresgutgon/test-newr | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import styles from './styles/index.css';
import Header from 'components/Header';
import Metric from 'components/Metric';
import MetricButton from 'components/MetricButton';
class Root extends C... |
tp-3/juan-pablo-gonzalez/src/components/pages/welcome/WelcomePage.js | jpgonzalezquinteros/sovos-reactivo-2017 | import React from 'react';
// Since this component is simple and static, there's no parent container for it.
const WelcomePage = () => {
return (
<div>
<h2 className="alt-header">Bienvenido a Sovosiano! </h2>
<p>
Esta es la pagina estatica de bienvenida solamente. Tu tendras que hacer una co... |
admin/components/eshop/orders_manager.js | svyatogor/dreamscape | import React from 'react'
import SearchBar from 'material-ui-search-bar'
import {debounce} from 'lodash'
import OrdersList from './list'
class OrdersManager extends React.Component {
constructor(props) {
super(props)
this.state = {}
}
render() {
const setFilter = debounce(filter => this.setState({fi... |
src/docs/examples/ProgressBar/Example100Percent.js | ThomasBem/ps-react-thomasbem | import React from 'react';
import ProgressBar from 'ps-react/ProgressBar';
/** 100% progress and height 20px */
export default function Example100Percent() {
return <ProgressBar percent={100} width={150} height={20} />
} |
app/src/routes/LanguageMostStarredRepos.js | alpcanaydin/github-stats-for-turkey | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
const LanguageMostStarredRepos = ({ name, data }) => (
<div>
<h1 className="title">En Çok Star Alan Repolar</h1>
<h2 className="subtitle">
{name} dili ile yazılmış ve en çok star alan repolar
</h... |
app/javascript/mastodon/features/home_timeline/index.js | palon7/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { expandHomeTimeline } from '../../actions/timelines';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../comp... |
src/js/components/manifest.js | campinas-front-end/institucional | 'use strict'
import React from 'react'
export default () => (
<section className='section' id='manifest'>
<header className='page-header'>
<h3 className='title'>Manifesto</h3>
</header>
<article>
<p>
Nosso objetivo é aumentar e fortalecer a comunidade de desenvolvedores web de Campin... |
Console/app/node_modules/react-error-overlay/lib/components/CloseButton.js | RisenEsports/RisenEsports.github.io | /**
* 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... |
pages/Interests.js | amni/portfolio | import React from 'react'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import Helmet from "react-helmet"
import { config } from 'config'
import Profile from 'components/Profile'
import Navbar from 'components/Navbar'
import InterestsView from 'components/InterestsView'
export default... |
13. ReactJS Fundamentals - Feb 2019/02. React Components/Home-Agent/front-end/src/App.js | zrusev/SoftUni_2016 | import React, { Component } from 'react';
import './App.css';
import Street from './Street/Street';
import House from './House/House';
import HouseDetails from './HouseDetails/HouseDetails';
class App extends Component {
constructor(props) {
super(props);
this.state = {
streets: [],
selectedStre... |
src/components/CustomInput.js | sunway-official/acm-admin | import React from 'react';
import TextField from 'material-ui/TextField';
const CustomInput = ({
input,
label,
type,
className,
meta: { touched, error },
...custom
}) => (
<TextField
floatingLabelText={label}
errorText={touched && error}
type={type}
{...input}
{...custom}
classNam... |
src/components/SignUp.js | danialm/backgammon | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { clearCries } from '../actions';
import { Link } from 'react-router-dom';
class Signup extends Component {
componentDidMount() {
this.props.dispatch(clearCries());
}
render() {
return(
<div className='login-p... |
src/svg-icons/action/group-work.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGroupWork = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5... |
src/routes/home/index.js | globalART19/OrderedOptions | /**
* 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 Home from './Home';
i... |
src/svg-icons/action/stars.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionStars = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53... |
app/components/Inactive.js | gidich/votrient-kiosk | import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './Inactive.css';
export default class Inactive extends Component {
render() {
return (
<div className={styles.container}>
<Link to="/" className={styles.home}></Link>
<Link to="/ProductInf... |
src/views/articles/AddArticleView.js | ghartong/react_falcor | import React from 'react'
import {connect} from 'react-redux'
import WYSIWYGeditor from '../../components/articles/WYSIWYGeditor'
import {stateToHTML} from 'draft-js-export-html'
import {bindActionCreators} from 'redux'
import {Link} from 'react-router'
import articleActions from '../../actions/article'
import RaisedBu... |
src/exseed.contrib.user/flux/boot.js | exseed/exseed-boilerplate | import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
render(
<Router history={browserHistory}>
{routes}
</Router>
, document.getElementById('exseed_root')); |
blueocean-material-icons/src/js/components/svg-icons/action/schedule.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSchedule = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"... |
docs/app/Examples/views/Card/Types/CardExampleIndividualCardProps.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Card, Icon } from 'semantic-ui-react'
const extra = (
<a>
<Icon name='user' />
16 Friends
</a>
)
const CardExampleIndividualCardProps = () => (
<Card
image='http://semantic-ui.com/images/avatar/large/elliot.jpg'
header='Elliot Baker'
meta='Friend'
descr... |
src/svg-icons/action/gif.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGif = (props) => (
<SvgIcon {...props}>
<path d="M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"/>
</Svg... |
src/html.js | JacobPrice/jacobprice.io | import React from 'react';
import PropTypes from 'prop-types';
const BUILD_TIME = new Date().getTime();
export default class HTML extends React.Component {
static propTypes = {
body: PropTypes.string,
};
render() {
let css;
if (process.env.NODE_ENV === 'production') {
css = (
<style
... |
docs/app/Examples/collections/Table/States/TableExampleWarning.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Icon, Table } from 'semantic-ui-react'
const TableExampleWarning = () => {
return (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Note... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/CustomInterpolation.js | cr101/create-react-app | /**
* 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... |
src/components/HouseNumber.js | nickooms/racing-webgl2 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import fetch from 'isomorphic-fetch';
import muiThemeable from 'material-ui/styles/muiThemeable';
import AppBar from 'material-ui/AppBar';
import { Tabs, Tab } from 'material-ui/Tabs';
import Drawer from 'material-ui/Drawer';
import { Card, C... |
docs-ui/components/issueResolution.stories.js | beeftornado/sentry | import React from 'react';
import {withInfo} from '@storybook/addon-info';
import ResolutionBox from 'app/components/resolutionBox';
import MutedBox from 'app/components/mutedBox';
const actor = {
email: 'uhoh@example.com',
name: 'Uhoh',
};
const RESOLVED_IN_COMMIT = {
actor,
inCommit: {
id: 'deadbeefdead... |
admin/client/App/index.js | sendyhalim/keystone | /**
* This is the main entry file, which we compile the main JS bundle from. It
* only contains the client side routing setup.
*/
// Needed for ES6 generators (redux-saga) to work
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory, IndexRoute... |
modules/gui/src/widget/draggableList.js | openforis/sepal | import {Draggable} from './draggable'
import {Subject} from 'rxjs'
import {compose} from 'compose'
import PropTypes from 'prop-types'
import React from 'react'
import _ from 'lodash'
import withSubscriptions from 'subscription'
class _DraggableList extends React.Component {
drag$ = new Subject()
state = {
... |
app/javascript/mastodon/features/compose/components/poll_form.js | yi0713/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from 'mastodon/components/icon_butt... |
src/articles/2018-07-06-FightDowntime/index.js | fyruna/WoWAnalyzer | import React from 'react';
import { Link } from 'react-router-dom';
import { Zerotorescue } from 'CONTRIBUTORS';
import RegularArticle from 'interface/news/RegularArticle';
import FightDowntimeToggle from './FightDowntimeToggle.png';
import ArgusBalance from './ArgusBalance.png';
import ImonarTransition from './imona... |
src/client/story_list.js | alihalabyah/hacker-menu | import React from 'react'
import Story from './story.js'
import _ from 'lodash'
export default class StoryList extends React.Component {
render () {
var onUrlClick = this.props.onUrlClick
var onMarkAsRead = this.props.onMarkAsRead
var storyNodes = _.map(this.props.stories, function (story, index) {
... |
packages/react-vis/src/radar-chart/index.js | uber-common/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... |
frontend/src/AutoComplete/ProductoAutoComplete.js | GAumala/Facturacion | import React from 'react';
import { findProductos } from 'facturacion_common/src/api.js';
import AutoCompleteComponent from '../lib/AutoCompleteComponent';
const dataSourceConfig = {
text: 'nombre',
value: 'nombre'
};
export default class ProductoAutoComplete extends React.Component {
render() {
const { is... |
React Fundamentals/JSX_Sintax/my-jsx/src/index.js | NikiStanchev/SoftUni | import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
import registerServiceWorker from './registerServiceWorker'
import HomePage from './components/HomePage'
import Clock from './components/Clock'
import Cars from './components/Cars'
// function tick(){
// const e... |
src/js/app.js | jamieallen59/jamieallen | import React from 'react'
import { render } from 'react-dom'
import { connect } from 'react-redux'
import PortfolioContainer from './containers/PortfolioContainer'
import { getSelectedProject } from './reducers/showProject'
import configureStore from './configureStore'
import './utils/scrollHandler'
require('../less... |
app/containers/App.js | cruze-io/cruze-web | import React, { Component } from 'react';
import { Link } from 'react-router';
import Helmet from 'react-helmet';
const isClient = typeof document !== 'undefined';
class App extends Component {
render() {
return (
<div>
<Helmet
title='MyApp'
titleTemplate='MyApp - %s'
... |
app/components/Home/Home.js | BloodMoonShard/react-blog | import React from 'react'
import {Link} from 'react-router'
import {connect} from 'react-redux'
import { remove } from '../../actions'
import {Button, Panel, Col} from 'react-bootstrap'
import _ from 'lodash'
import Confirm from 'react-confirm-bootstrap'
class HomeView extends React.Component {
static propTypes =... |
contrib/webui/src/components/field/form/index.js | roscopecoltran/papernet | import PropTypes from 'prop-types';
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import classNames from 'classnames';
import { FormPropType } from 'components/field/propTypes';
import MarkdownForm from 'components/field/markdown';
import TextForm from 'components/field/text'... |
src/components/button.js | Shlaf/DoRag | import React, { Component } from 'react';
class Button extends Component {
BubbleClick = () => {
this.props.onClick(this.props.children)
}
addClass() {
let classList = this.props.children === 0 ? "zero" : null;
if (this.props.children === this.props.math) {
classList = classList + " selecte... |
components/menu/IconMenu.js | rubenmoya/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { themr } from 'react-css-themr';
import { MENU } from '../identifiers';
import InjectIconButton from '../button/IconButton';
import InjectMenu from './Menu';
const factory = (IconButton, Menu) => ... |
components/date-picker/common/timeTable.js | TDFE/td-ui | /**
* @Author: Zhengfeng.Yao <yzf>
* @Date: 2017-06-22 11:44:37
* @Last modified by: yzf
* @Last modified time: 2017-06-26 14:00:03
*/
import React from 'react';
import PropTypes from 'prop-types';
import Select from '../../time-picker/select';
import classNames from 'classnames';
import {
FULL_PICKER,
MI... |
client/src/Main.js | elliotjz/book-trading-club | import React from 'react'
import { Switch, Route } from 'react-router-dom'
import Home from './components/Home'
import DashboardPage from './containers/DashboardPage'
import LoginPage from './containers/LoginPage'
import RegisterPage from './containers/RegisterPage'
import AllBooksPage from './containers/AllBooksPage'
... |
src/routes/TwoPlayer/components/Game.js | aTseniklidou/Randix-Game | import React from 'react';
import { Board, BoardOld } from 'routes/Game/containers/boardContainer';
import { GameInfo, GameInfoOld } from 'routes/Game/containers/infoContainer';
import { Buttons, ButtonsOld } from 'routes/Game/containers/buttonsContainer';
import { Settings } from 'routes/Game/containers/settingsContai... |
packages/poa-router/src/app.js | Strikersoft/poa | // @ts-check
import React from 'react';
import { RouterProvider, Outlet } from 'mobx-little-router-react';
/**
* @augments {React.Component<{router: any}, {}>}
*/
export class PoaApp extends React.Component {
render() {
return (
<RouterProvider router={this.props.router}>
<Outlet />
</Rout... |
src/components/Home/Ticker/Ticker.js | franciskim722/crypy | import React from 'react';
import PropTypes from 'prop-types';
import TickerClock from './TickerClock';
import './Ticker.scss';
export default class Ticker extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
render(){
return (
<div className="crypy-home-to... |
src/shared/components/heading/heading.js | miaket/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './heading.css';
const Heading = ({ text, headingLines, theme, ...otherProps }) => {
const classes = classNames({
[`${styles.heading}`]: true,
[`${styles[theme]}`]: true,
[`${styles.head... |
src/parser/warrior/protection/modules/features/AlwaysBeCasting.js | FaideWW/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting';
class AlwaysBeCasting extends CoreAlwaysBeCasting {
suggestions(when) {
const deadTimePercentage = this.totalTimeWasted / this.owner.fightDuration;
when(deadT... |
src/components/mainComponent.js | kesjien/tictactoe_reactnative | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import Header from './header';
import {
AppRegistry,
StyleSheet,
Text,
View,
Platform,
TouchableHighlight,
TouchableNativeFeedback,
TouchableOpacity
} from 'react-native';
... |
js/navigators/settings.js | stage88/react-weather | /**
* @flow
*/
'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
NavigatorIOS,
View
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import Settings from '../components/settings/settings';
type Props = {
route: any;
navigator: any;
};
type State = ... |
src/components/presentation/Comment.js | aerendon/yik-yak | import React, { Component } from 'react';
class Comment extends Component {
render () {
return (
<div style={{marginBottom:16}}>
<p style={{fontSize:20, fontWeight: 400}}>
{this.props.currentComment.username}
</p>
<span style={{fontWeight: 200}}>{this.props.currentComment.... |
src/pwa.js | Rosita13/react-redux | import React from 'react';
import ReactDOM from 'react-dom/server';
import Html from './helpers/Html';
export default function () {
return `<!doctype html>${ReactDOM.renderToStaticMarkup(<Html />)}`;
}
|
src/components/topic/homepage/TopicsMarketingFeatureList.js | mitmedialab/MediaCloud-Web-Tools | import React from 'react';
import MarketingFeatureItem from '../../common/MarketingFeatureItem';
const localMessages = {
moreContentTitle: { id: 'marketing.globalCollections.title', defaultMessage: 'Discover More Content' },
moreContentDescription: { id: 'marketing.globalCollections.description', defaultMessage: ... |
examples/js/style/inline-style-table.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 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;
... |
app/packs/src/components/GeneralProcedureDnD.js | ComPlat/chemotion_ELN | import React from 'react';
import { DropTarget } from 'react-dnd';
import { compose } from 'redux';
import { Tooltip, OverlayTrigger } from 'react-bootstrap';
import DragDropItemTypes from './DragDropItemTypes';
import DetailActions from './actions/DetailActions';
const updRxnOriName = (oriRxn, sourceTag) => {
const... |
antd-dva/ant-design-pro-demo/test/src/components/NoticeIcon/NoticeList.js | JianmingXia/StudyTest | import React from 'react';
import { Avatar, List } from 'antd';
import classNames from 'classnames';
import styles from './NoticeList.less';
export default function NoticeList({
data = [], onClick, onClear, title, locale, emptyText, emptyImage,
}) {
if (data.length === 0) {
return (
<div className={style... |
src/features/settings/settings.component.js | sunstorymvp/playground | import React from 'react';
import styles from './settings.css';
import Layout from 'core/layout';
const Settings = () => (
<Layout>
<div className={ styles.root }>
<h1>Settings</h1>
</div>
</Layout>
);
export default Settings;
|
assets/javascripts/kitten/components/graphics/icons/stroke-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const StrokeIcon = ({ color, title, ...props }) => (
<svg
width="8"
height="2"
viewBox="0 0 8 2"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{title && <title>{title}</title>}
<path fill={color} d="M0 0h8v2H0z" />
... |
src/svg-icons/navigation/check.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationCheck = (props) => (
<SvgIcon {...props}>
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/>
</SvgIcon>
);
NavigationCheck = pure(NavigationCheck);
NavigationCheck.displayName = 'Navigati... |
src/router.js | gcanti/tcomb-spa-example | import React from 'react'
import Router from 'tom/lib/Router'
import SignInRoute from './routes/SignInRoute'
import AuthenticatedLayout from './routes/AuthenticatedLayout'
import OrdersRoute from './routes/OrdersRoute'
import OrderRoute from './routes/OrderRoute'
import history from './history'
const preventAnonymous ... |
example/Components/createErrorMessage.js | 25th-floor/revalidation | /* eslint-disable no-unused-vars */
import React from 'react'
import { head } from 'ramda'
import { isValid } from '../../src/'
export default (errorMsgs) => isValid(errorMsgs) ? null : <div className='error'>{head(errorMsgs)}</div>
|
src/docs/components/IconDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Header from 'grommet/components/Header';
import Heading from 'grommet/components/Heading';
import SearchInput from 'grommet/components/SearchInput';
import Box from 'grommet/components/Box';
import Til... |
src/components/Home/SurahsList/index.js | quran/quran.com-frontend | import React from 'react';
import * as customPropTypes from 'customPropTypes';
import debug from 'helpers/debug';
import Link from 'react-router/lib/Link';
const styles = require('./style.scss');
const SurahsList = (props) => {
debug('component:Index', 'SurahsList');
return (
<ul className="col-md-4 list-uns... |
node_modules/react-bootstrap/es/Fade.js | NathanBWaters/jb_club | 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 classNames from 'classnames';
import React fr... |
src/components/Form/components/FormLineHOC.js | Aus0049/react-component | /**
* Created by Aus on 2017/12/1.
*/
import React from 'react'
import classNames from 'classnames'
import Icon from 'component-font-awesome'
import Tooltip from 'components/DataDisplay/Tooltip/'
import '../style/form.scss'
// 生成表单的HOC
export default function FormLineHOC(WrappedComponent) {
// 反向继承
return cl... |
app/javascript/mastodon/features/follow_requests/components/account_authorize.js | gol-cha/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from '../../../components/permalink';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import IconButton from '../../../... |
src/containers/Home/Home.js | rkxtd/react-devops-kit | import React, { Component } from 'react';
import config from '../../config';
import Helmet from 'react-helmet';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
const logoImage = require('./logo.png');
return (
<div className={styles.home}>
<He... |
es6/Steps/Step.js | yurizhang/ishow | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | dwango/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... |
src/common/config/routes.js | colinmeinke/universal-js | /* global __DEVELOPMENT__ */
import React from 'react'
import Home from '../components/Home'
import Edit from '../components/Edit'
import { updateName } from '../actions/name'
const getRoutes = () => ([
[ '/', { name: updateName }, <Home /> ],
[ 'edit', { name: updateName }, <Edit /> ],
[ '*', <h1>Not found</... |
src/containers/change-form/general-info.js | raulfdm/cv | import React from 'react';
import uuid from 'uuid/v1';
import { useForm } from 'react-final-form';
import FormCardGroup from 'molecules/form-card-group';
import NewGeneralInfo from 'src/components/molecules/new-general-info';
import GeneralInfoForm from 'src/components/organisms/general-info-form';
const FIELDSET_NA... |
src/components/Appbar.js | marcosfede/random-quote-machine | import React from 'react'
import AppBar from 'material-ui/AppBar'
import FlatButton from 'material-ui/FlatButton'
import { blueGrey800} from 'material-ui/styles/colors'
import FontIcon from 'material-ui/FontIcon';
import 'font-awesome/css/font-awesome.css'
const styles = {
title: {
cursor: 'pointer',
},
bar... |
client/src/components/GalleryItem/droppable.js | silverstripe/silverstripe-asset-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DropTarget } from 'react-dnd';
export default function droppable(types) {
const spec = {
drop(props, monitor) {
if (monitor.canDrop()) {
const item = monitor.getItem();
props.onDropFiles(props.item.id, it... |
node_modules/react-router/es/IndexLink.js | MaleSharker/Qingyan | 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';
/**
*... |
src/containers/NotFound/NotFound.js | Astro9113/wanchainWeb | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
application/assets/javascripts/components/attendee.js | fevrcoding/name-selector | /**
* Attendee diplayer
*
* @author Marco Solazzi
* @copyright (c) Marco Solazzi
* @module components/attendee
*/
import React from 'react';
import {noop} from '../utils';
export default ({
details = {},
onSelectAttendee = noop
}) => (
<li className="c-attendee" id={'attendee-' + details.id}>
... |
src/Connected/inner/Placeholder.js | dht/lpm | import React from 'react';
import Base from './Base';
import {placeholderInnerText} from '../../utils/element';
const Placeholder = (props) => {
const {style} = props,
contentStyle = {...stylePlaceholder, ...style.backgroundImage ? null : styleStripes},
text = placeholderInnerText(props.style);
... |
NavigationReactMobile/sample/twitter/Banner.js | grahammendick/navigation | import React from 'react';
import {NavigationBackLink} from 'navigation-react';
export default ({title}) => (
<div className="banner">
<NavigationBackLink distance={1}>
<svg className="back" viewBox="0 0 24 24">
<g>
<path d="M20 11H7.414l4.293-4.293a1 1 0 0 0-1.414-1.414l-6 6a1 1 0 0 0 0 ... |
ReactNativeRouterFluxDemo/index.android.js | alexwan02/react-tutorial | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import App from './app';
export default class ReactNativeRouterFluxDemo extends Component {
render() {
re... |
browser/modules/layerTree/controls/NumberControl.js | mapcentia/vidi | /*
* @author Alexander Shumilov
* @copyright 2013-2019 MapCentia ApS
* @license http://www.gnu.org/licenses/#AGPL GNU AFFERO GENERAL PUBLIC LICENSE 3
*/
import React from 'react';
import PropTypes from 'prop-types';
import {SelectControl} from './SelectControl';
/**
* Number control component
*/
class ... |
test/test-helpers.js | tomatau/breko-hub | import React from 'react'
import Koa from 'koa'
import lodash from 'lodash/index'
import fetchMock from 'fetch-mock'
import { createMemoryHistory } from 'history'
import { routerMiddleware, ConnectedRouter } from 'connected-react-router'
import chaiJestSnapshot from 'chai-jest-snapshot'
import { HelmetProvider } from '... |
src/svg-icons/action/swap-vertical-circle.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSwapVerticalCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z"/>
... |
public/index.js | sakivks/question_bank | import React from 'react';
import ReactDOM from 'react-dom';
import Main from './component/Main';
import TabsSwipeable from './component/TabsSwipeable';
import Buttons from './component/Buttons';
import QuestionBank from './component/QuestionBank';
import { Router, Route, hashHistory, Link } from 'react-router';
... |
src/MediaRight.js | HPate-Riptide/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import Media from './Media';
import { bsClass, getClassSet, prefix, splitBsProps }
from './utils/bootstrapUtils';
const propTypes = {
/**
* Align the media to the top, middle, or bottom of the media object.
*/
align: React.PropTypes.oneOf(['t... |
app/javascript/mastodon/components/permalink.js | dwango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class Permalink extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
className: PropTypes.string,
href: PropTypes.string.isRequired,
to: PropTypes.string.isRequired,
... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/settings-brightness.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsBrightness = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1.5-1.5-1.5V8h-2.5L12 6.5 10.5 8H8... |
client/components/menu/bank.js | ZeHiro/kresus | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { get } from '../../store';
import { displayLabel, FETCH_STATUS_SUCCESS, translate as $t } from '../../helpers';
import { get as getErrorCode } from '../../errors';
import AccountListItem from './account';
imp... |
src/components/video_detail.js | vanessamuller/ReduxSimpleStarter | import React from 'react';
const VideoDetail = ({video}) => {
if(!video){
return <div> Loading... </div>
}
const videoId = video.id.videoId;
const url= `https://www.youtube.com/embed/${videoId}`;
return(
<div className ="video-detail col-md-8">
<div className="embed-responsive embed-responsiv... |
src/collections/Form/FormSelect.js | mohammed88/Semantic-UI-React | import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
import Select from '../../addons/Select'
import FormField from './FormField'
/**
* Sugar for <Form.Field control={Select} />
* @see Form
* @see Select
*/
function FormSelect(props) {
const { ... |
server/sonar-web/src/main/js/apps/projects/visualizations/Bugs.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.