path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/App.js | Gin-And-Tomic/tune-stream | /**
* Root Component
*/
import React from 'react';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
// Import Routes
import routes from './routes';
export default function App(props) {
return (
<Provider store={props.store}>
<Router history={browserHistory}>... |
modules/plugins/youtube/YouTube.js | devrieda/arc-reactor | import React from 'react';
import ReactDOM from 'react-dom';
import Immutable from 'immutable';
import Figure from '../shared/Figure';
import cx from 'classnames';
const PureRenderMixin = require('react-addons-pure-render-mixin');
const { string, object, instanceOf } = React.PropTypes;
const YouTube = React.createCla... |
src/app/main.js | cox-auto-kc/react-d3-responsive | import React from 'react';
import {LineGraph, BarGraph, AreaGraph, PieChart, ScatterPlot} from './d3components';
// import rd3r from '../../lib-compiled';
// import rd3r from '../../script-compiled';
import ChartData from './d3components/testData/data.js';
class Main extends React.Component {
render() {
return ... |
src/utils/helpers.js | nikgraf/belle | import React from 'react';
/**
* Returns true if the object contain the given key.
*
* @param {object} obj - object to be inspected
* @param {string} key - name of the property
*/
export function has(obj, key) {
return obj !== undefined && obj !== null && Object.prototype.hasOwnProperty.call(obj, key);
}
/**
... |
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js | greatdinosaur/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ActivityHeader extends React.Component {
static propTypes = {
close: React.PropTypes.func,
title: React.PropTypes.stri... |
src/js/components/widget/Download.js | kukua/dashboard | import _ from 'underscore'
import decapitalize from 'underscore.string/decapitalize'
import React from 'react'
import moment from 'moment-timezone'
import parseDuration from 'parse-duration'
import BaseWidget from './Base'
import MeasurementFilterModel from '../../models/MeasurementFilter'
import notify from '../../hel... |
react-starter/src/index.js | jakedeichert/create-app | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import AppRoot from 'components/AppRoot';
import { store } from 'store/init';
render(
<Provider store={store}>
<AppRoot />
</Provider>,
document.getElementById('app')
);
|
examples/simple/components/App.js | linghuaj/react-progress-deck | import React, { Component } from 'react';
import ProgressDeck from 'react-progress-deck';
import {Spring} from 'react-motion';
export default class App extends Component {
constructor(props) {
super(props);
this.state = {
width: 0.1
}
}
handleClick() {
this.setState({width: this.state.widt... |
src/interface/report/Results/StatisticsSectionTitle.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
class StatisticsSectionTitle extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
rightAddon: PropTypes.node,
};
static defaultProps = {
premium: false,
};
render() {
const { children, rightAddon } = this.... |
modules/IndexRoute.js | CivBase/react-router | import React from 'react'
import invariant from 'invariant'
import warning from 'warning'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components, falsy } from './PropTypes'
const { bool, func } = React.PropTypes
/**
* An <IndexRoute> is used to specify its parent's <Route indexRout... |
src/routes.js | grommet/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import Docs from './components/Docs';
import Home from './Home';
import DocsSplit from './components/DocsSplit';
import Introduction from './docs/Introduction';
import Contents from './docs/Contents';
const Container = (pr... |
docs/app/Examples/collections/Message/Variations/MessageCompactPropsExample.js | jcarbo/stardust | import React from 'react'
import { Message } from 'stardust'
const MessageCompactPropsExample = () => (
<Message
compact
content='Get all the best inventions in your e-mail every day. Sign up now!'
/>
)
export default MessageCompactPropsExample
|
StudyNotes/ReactNative_/tg/component/main/main.js | coderZsq/coderZsq.target.swift | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
Platform,
} from 'react-native';
import TabNavigator from 'react-native-tab-navigator';
import { Navigator } from 'react-native-deprecated-custom-components';
var Home = require('../home/home')
var Shop = require('../shop/shop... |
client/controller.js | allendav/wp-calypso | /**
* External Dependencies
*/
import React from 'react';
import ReactDom from 'react-dom';
import { Provider as ReduxProvider } from 'react-redux';
import { setSection as setSectionAction } from 'state/ui/actions';
import noop from 'lodash/noop';
/**
* Internal dependencies
*/
import page from 'page';
import Layo... |
fields/components/NestedFormField.js | alobodig/keystone | import React from 'react';
import { StyleSheet } from 'aphrodite/no-important';
import { FormField, FormLabel } from '../../admin/client/App/elemental';
import theme from '../../admin/client/theme';
function NestedFormField ({ children, className, label, ...props }) {
return (
<FormField {...props}>
<FormLabel a... |
packages/material-ui-icons/legacy/SignalCellularConnectedNoInternet1BarRounded.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M22 8V4.41c0-.89-1.08-1.34-1.71-.71L3.71 20.29c-.63.63-.19 1.71.7 1.71H18V11c0-1.66 1.34-3 3-3h1z" /><path d="M20 11v6c0 .55.45 1 1 1s1-.45 1-1v-6c0-.55-.45-1-1-1s-1 .... |
www/src/pages/examples/i18n.js | tsuyoshiwada/react-drip-form | /* eslint-disable no-alert */
/* eslint-disable import/extensions */
/* eslint-disable import/no-unresolved */
/* eslint-disable import/no-extraneous-dependencies */
import React, { Component } from 'react';
import { dripForm, Validator } from 'react-drip-form';
import { Input, Textarea } from 'react-drip-form-componen... |
src/WorkWeek.js | manishksmd/react-scheduler-smartdata | import PropTypes from 'prop-types'
import React from 'react'
import Week from './Week'
import TimeGrid from './TimeGrid'
class WorkWeek extends React.Component {
static propTypes = {
date: PropTypes.instanceOf(Date).isRequired,
}
static defaultProps = TimeGrid.defaultProps
render() {
let { date, ...... |
src/forms/widgets/UpDownWidget.js | austinsc/react-gooey | import React from 'react';
import PropTypes from 'prop-types';
import { rangeSpec } from '../utils';
import BaseInput from './BaseInput';
function UpDownWidget(props) {
return <BaseInput type="number" {...props} {...rangeSpec(props.schema)} />;
}
if (process.env.NODE_ENV !== 'production') {
UpDownWidget.propType... |
src/index.js | ChluNetwork/chlu-demo | import React from 'react';
import ReactDOM from 'react-dom';
// components
import App from './containers/App';
// others
//import registerServiceWorker from './registerServiceWorker';
import { getChluAPIClient } from 'helpers/chlu';
ReactDOM.render(<App />, document.getElementById('root'));
//registerServiceWorker()... |
react/features/filmstrip/components/web/Thumbnail.js | jitsi/jitsi-meet | // @flow
import { withStyles } from '@material-ui/styles';
import clsx from 'clsx';
import debounce from 'lodash/debounce';
import React, { Component } from 'react';
import { createScreenSharingIssueEvent, sendAnalytics } from '../../../analytics';
import { Avatar } from '../../../base/avatar';
import { getMultipleVi... |
src/svg-icons/image/center-focus-weak.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCenterFocusWeak = (props) => (
<SvgIcon {...props}>
<path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 8c-... |
15/notes/src/App.js | nanohop/hop_into_react | import React, { Component } from 'react';
import './App.css';
import Notes from './Notes';
class App extends Component {
render() {
return (
<Notes />
)
}
}
export default App;
|
2018/src/layouts/Calculator.js | irjencup/irjencup.github.io | import React from 'react'
import { Link } from 'react-router'
import '../styles/app.css'
export default function CalculatorLayout({children}){
return <div>
<nav className="navbar navbar-default center">
<div className="container navbar-inner">
<div className="navbar-header">
... |
src/components/Share.js | pcardune/pyret-ide | import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {shareGoogleDrive} from '../redux/actionCreators';
import styles from './styles';
import Button from './Button';
import Spinner from './Spinner';
import * as selectors from '../redux/selectors';
export clas... |
src/containers/Asians/_components/ViewLockedRound/Ballots/LargeBallots/Instance/BallotInstance/TeamDisplay.js | westoncolemanl/tabbr-web | import React from 'react'
import ListSubheader from 'material-ui/List/ListSubheader'
import SpeakerDisplay from './SpeakerDisplay'
import Total from './Total'
export default ({
government,
room,
firstSpeaker,
secondSpeaker,
whipSpeaker,
replySpeaker,
govTotal,
oppTotal
}) =>
<div
className={'w-10... |
app/src/pages/ChatsScreen.js | skunkmb/Ablo | import React, { Component } from 'react';
import { FlatList, View, StyleSheet, Text } from 'react-native';
import { darkTheme } from '../themes.js';
import ListCell from '../common/ListCell.js';
import ListEmptyComponent from '../common/ListEmptyComponent.js';
import NavBarButton from '../common/NavBarButton.js';
impor... |
assets/jqwidgets/demos/react/app/grid/bindingtoxml/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let source =
{
datatype: 'xml',
datafields: [
{ name: 'CompanyName', ... |
src/demo-apps/index.js | thiagodebastos/react-future-stack | import React from 'react';
import Layout from '../../components/Layout';
import Link from '../../components/Link';
import { title, html } from './index.md';
class DemoAppsHome extends React.Component {
componentDidMount() {
document.title = title;
}
render() {
return (
<Layout>
<div
... |
fields/types/url/UrlColumn.js | sendyhalim/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var UrlColumn = React.createClass({
displayName: 'UrlColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
va... |
app/components/AddTask/DMaps/index.js | prudhvisays/newsb | import React from 'react';
import './MapStyle.css';
let searchBox;
export default class DMaps extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.geolocate = this.geolocate.bind(this);
this.initAutocomplete = this.initAutocomplete.bind(this);
this.searchBoxPlaces ... |
admin/client/App/screens/List/components/ListColumnsForm.js | trentmillar/keystone | import React from 'react';
import assign from 'object-assign';
import Popout from '../../../shared/Popout';
import PopoutList from '../../../shared/Popout/PopoutList';
import { FormInput } from '../../../elemental';
import ListHeaderButton from './ListHeaderButton';
import { setActiveColumns } from '../actions';
var... |
src/components/programs/inshelter/ProgramList.js | KidsFirstProject/KidsFirstProject.github.io | import React from 'react';
import { Col, Row, Media } from 'react-bootstrap';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faCircle } from '@fortawesome/free-solid-svg-icons';
import programs from '../../../data/programs/programs';
const ProgramList = () => (
<Row>
{programs.map((pr... |
imports/ui/components/reading/ReadingEntity/ReadingEntity.js | pletcher/cltk_frontend |
import React from 'react';
import PropTypes from 'prop-types';
class ReadingEntity extends React.Component {
getDefaultProps() {
return {
entity: {
slug: 'demo-entity',
},
};
}
render() {
const entity = this.props.entity;
return (
<div className="entity-teaser">
<a
href={`/entities/... |
src/window/gui/view/search/view.js | unkyulee/control-center | /******************************************************************************
Search Element
*******************************************************************************/
import React from 'react'
import { FormGroup, InputGroup, FormControl, Glyphicon } from 'react-bootstrap'
///
///
///
export default class ... |
src/SvgCircleDot.js | jishiniao/radio | import React from 'react'
import PropTypes from 'prop-types'
export default class SvgCircleDot extends React.Component {
static propTypes = {
stroke: PropTypes.string,
fill: PropTypes.string,
size: PropTypes.string,
}
static defaultProps = {
stroke:'#666',
fill: '#666',
size: '1em',
}
... |
src/main/webapp/resources/js/components/user/user-mgt.js | peterchenhdu/webbf | import React from 'react'
import Reflux from 'reflux'
import ReactMixin from 'react-mixin'
import ToolsBar from './tools-bar'
import AddUserModal from './add-user-modal'
import User from './user'
import store from '../../stores/user/user-store'
import actions from '../../actions/user/user-actions'
import $ from 'jquery... |
packages/playground/src/app/components/Dataviz.js | Talend/ui | import React from 'react';
import {
GeoChart,
getGeoChartConfig,
getHorizontalBarChartTooltip,
HorizontalBarChart,
TooltipContent,
ValueType,
} from '@talend/react-dataviz';
import { ErrorBoundary } from '@talend/react-cmf';
import Layout from '@talend/react-components/lib/Layout';
import SidePanel from '@talend/... |
react/src/App.js | magopian/bmi-calculator-polyglot | import React, { Component } from 'react';
class Slider extends Component {
render() {
return (
<input type="range" value={this.props.value}
min={this.props.min} max={this.props.max} style={{width: "100%"}}
onChange={this.props.onChange} />
);
}
}
function calcBMI(height, we... |
packages/website/src/components/utils/dehydrate.js | mucsi96/w3c-webdriver | import React from 'react';
import { withDehydration } from './DehydrationProvider';
const InitialStateCollector = ({ initialStateKey, addToInitialState, ...props }) => {
addToInitialState({ key: initialStateKey, props });
return null;
};
const InitialStateCollectorContainer = withDehydration(InitialStateCollector... |
node_modules/react-native/Libraries/Components/WebView/WebView.ios.js | gunaangs/Feedonymous | /**
* 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... |
webpack.config.prod.js | AlexanderKapelyukhovskiy/rcn.io | const path = require('path')
const webpack = require('webpack')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const consts = require('./webpack/constants')
const nodeModules = require('./webpack/utils').nodeModules
const getConfig = require('.... |
src/DocumentContext.js | andreypopp/reactdown | /**
* @copyright 2016-present, Reactdown Team
* @flow
*/
import React from 'react';
export let contextTypes = {
reactdown: React.PropTypes.object,
};
export default class DocumentContext extends React.Component {
static childContextTypes = contextTypes;
getChildContext() {
return {reactdown: this.prop... |
src/components/EditForm/Parents.js | Apozhidaev/ergonode | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { searchParents } from 'store/app/book/editForm/actions';
class Parents extends Component {
constructor(props) {
super(props);
const { slot } = this.props;
const parents = slot.parents.slice();
this.state = { par... |
client/src/components/UserName.js | FlorianEdelmaier/ReduxAsyncDemo | import React from 'react';
const UserName = ({ user }) => (
<h3>{user ? user.firstName : ''} {user ? user.lastName : ''}</h3>
);
export default UserName;
|
app/components/ServicesMaintenance/index.js | medevelopment/UMA |
import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import axios from 'axios';
import * as toastify from '../../functions/Toastify';
import PWIcon from '../icons/PWIcon.jpg';
import { getBranchName } from '../../functions/BranchesFuncs';
import { isoToShortDate, fullDateToIsoDate,... |
components/calendar/calendar.js | dotKom/glowing-fortnight | import React, { Component } from 'react';
import Day from './day';
import moment from 'moment';
let dayId = 0;
function getActiveEvent(postDays, futureEvents, active) {
if (active < 0 && postDays.length > 0) {
return postDays[0].events[0].index;
} else if (active < 0 && futureEvents[0]) {
return futureEve... |
app/javascript/mastodon/components/permalink.js | gol-cha/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,
... |
src/components/Avatar.js | jeffslofish/open-source-help-wanted | import React from 'react';
import PropTypes from 'prop-types';
const Avatar = ({ url, user_url }) => {
return (
<div className='issue-avatar'>
<a target='_blank' rel='noopener noreferrer' href={user_url}>
<img style={imgStyle} src={url} alt='' />
</a>
</div>
);
};
let imgStyle = {
ma... |
src/components/Header.js | pixel-glyph/better-reads | import React from 'react';
import PropTypes from 'prop-types';
import Logo from './Logo';
import SearchBar from './SearchBar';
import { CSSTransitionGroup } from 'react-transition-group';
class Header extends React.Component {
render() {
let header = window.scrollY > 170 && window.innerWidth > 800
? <d... |
src/PageItem.js | xiaoking/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.Pr... |
src/components/ShareExperience/InterviewForm/InterviewInfo/index.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import { People } from 'common/icons';
import subscribeValidation from 'common/subscribeValidation';
import IconHeadingBlock from 'common/IconHeadingBlock';
import {
companyQuery as companyQueryValidator,
jobTitle as jobTitleValidator,
region as regi... |
app/Routes.js | rhoffmann8/redux-jaca | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import NoMatch from './containers/NoMatch';
import Chat from './containers/Chat';
export default (
<Route path='/' component={App}>
<IndexRoute component={Chat} />
<Route path="*" component={NoMat... |
mlflow/server/js/src/model-registry/constants.js | mlflow/mlflow | import React from 'react';
import { Tag } from '@databricks/design-system';
// eslint-disable-next-line
import * as overrides from './constant-overrides'; // eslint-disable-line import/no-namespace
import { FormattedMessage } from 'react-intl';
import { ReadyIcon } from './utils';
export const Stages = {
NONE: 'None... |
samples/force-choice-button.js | aratakokubun/cursor-hijack | import React from 'react';
import PropTypes from 'prop-types';
import ReactDom from 'react-dom';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as assign from 'lodash.assign';
import cjk from '../index';
class ForceChoiceDistorter extends cjk.Distorter {
constructor(key, ... |
app/components/common/PostTypes/PostTypeCarousel.js | dvm4078/dvm-blog | import React from 'react';
import PropTypes from 'prop-types';
import FormAddComment from '../../Form/FormAddComment';
export default class PostTypeCarousel extends React.Component { //eslint-disable-line
static propTypes = {
post: PropTypes.object,
postIndex: PropTypes.number,
postsLength: PropTypes.num... |
src/components/pages/Sources/SourcesContainer.js | tsjamm/HermesFeedReader |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Sources from './Sources';
import * as actions from '../../../actions';
const mapStateToProps = (state, ownProps) => {
/// TODO: Need to figure out logic to display source list or feed list
return state;
}
const mapDispat... |
src/icons/TrendingUpIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class TrendingUpIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M32 12l4.59 4.59-9.76 9.75-8-8L4 33.17 6.83 36l12-12 8 8 12.58-12.59L44 24V12z"/></svg>;}
}; |
examples/simple-todo/index.js | zalmoxisus/mobx-remotedev | import React from 'react';
import ReactDOM from 'react-dom';
import * as mobx from 'mobx';
import mobxReact from 'mobx-react';
import remotedev from 'mobx-remotedev/lib/dev';
mobx.useStrict(true);
var todoFactory = function (title) {
var todo = {
id: Math.random(),
toggleStatus: mobx.action(function toggleS... |
src/components/RegistrationForm/RegistrationForm.js | rajeshpillai/zs-react-pattern-lib | import React from 'react';
import PropTypes from 'prop-types';
import TextInput from '../TextInput';
import PasswordInput from '../PasswordInput';
/** Registration form with built-in validation. */
class RegistrationForm extends React.Component {
constructor(props) {
super(props);
this.state = {
user:... |
app/components/GroupListDetail/ConfirmModal.js | typesettin/NativeCMS | import React, { Component } from 'react';
import { StyleSheet, ScrollView, View, } from 'react-native';
import * as Animatable from 'react-native-animatable';
import layoutStyles from '../Styles/layout';
import styles from '../Styles/shared';
import { HR, H1, H2, GRID_ITEM, RESPONSIVE_GRID, RESPONSIVE_TWO_COLUMN, } fr... |
src/docs/components/meter/MeterExamplesDoc.js | grommet/grommet-docs | // (C) Copyright 2014-2017 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Meter from 'grommet/components/Meter';
import Value from 'grommet/components/Value';
import Label from 'grommet/components/Label';
import Box from 'grommet/components/Box';
import InteractiveExample fr... |
src/components/skills.js | bhuvanmalik007/bhuvanmalik | import React from 'react'
import Box from 'grommet/components/Box'
import Image from 'grommet/components/Image'
import styled from 'styled-components'
import Paragraph from 'grommet/components/Paragraph'
import Label from 'grommet/components/Label'
import Animate from 'grommet/components/Animate'
import { Grid } from '... |
src/public/js/resume.js | bbondy/brianbondy.node | import React from 'react'
import RemoteViewer from './remoteViewer.js'
export default class Resume extends React.Component {
render () {
return (
<div className='resume'>
<a style={{ float: 'right' }} href='/pdf/BrianRBondy_Resume.pdf'><span className='fa fa-file-pdf-o' /> PDF</a>
<RemoteVi... |
node_modules/react-bootstrap/es/Form.js | mohammed52/something.pk | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/modules/AdminPortal/views/Dashboard.js | nnnoel/graphql-apollo-resource-manager | import React, { Component } from 'react';
import { Route } from 'react-router-dom';
import Split from 'grommet/components/Split';
import Article from 'grommet/components/Article';
// import Toast from 'grommet/components/Toast';
import {
MenuSidebar,
ProgramsList,
ProgramsPending,
NewProgram,
EditProgram
} f... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/index.js | ylu1317/flow | /**
* @format
* @flow
*/
const path = require('path');
const Styled = require('../../../Styled');
exports.kind = 'codemod';
exports.title =
'Move inferred React.Component type arguments to their generic positions.';
exports.description = `
The recommended way to write React components used to be:
${Styled.cod... |
fields/types/localfiles/LocalFilesField.js | giovanniRodighiero/cms | /*
TODO: this file has been left as a reference for the new File type field.
Some features here, including size formatting and icons, may be ported across.
*/
import _ from 'lodash';
import bytes from 'bytes';
import Field from '../Field';
import React from 'react';
import { Button, FormField, FormInput, FormNote } fr... |
src/svg-icons/image/vignette.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageVignette = (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-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z"/>
</SvgIcon>... |
docs/src/examples/elements/Header/Variations/HeaderExampleFloating.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Header, Segment } from 'semantic-ui-react'
const HeaderExampleFloating = () => (
<Segment clearing>
<Header as='h2' floated='right'>
Float Right
</Header>
<Header as='h2' floated='left'>
Float Left
</Header>
</Segment>
)
export default HeaderExampleFl... |
src/components/DetailList.js | amaralflavio/cmovies | import React from 'react';
import styled from 'styled-components';
const DetailList = (props) => {
return (
<div className={props.className}>
<ul>
<li>{props.Vote}</li>
<li>{props.Category}</li>
<li>{props.Type}</li>
</ul>
</di... |
node_modules/react-bootstrap/es/MediaListItem.js | chenjic215/search-doctor | 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/components/FieldHelp/index.js | oVirt/ovirt-web-ui | import React from 'react'
import ReactDOM from 'react-dom'
import PropTypes from 'prop-types'
import $ from 'jquery'
import { Popover, OverlayTrigger } from 'react-bootstrap'
import { withMsg } from '_/intl'
import style from './style.css'
/**
* Renders underlined `text` with `tooltip`.
* A popover is shown consis... |
docs/src/pages/PropTable.js | chris-gooley/react-materialize | // Shameless copied from react-bootstrap
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Table from '../../../src/Table';
import parse from '../helper/doc-gen';
class PropTable extends Component {
render () {
const {
component,
header
} = this.props;
con... |
packages/material-ui-icons/src/AddLocation.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let AddLocation = props =>
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z" />
</SvgIcon>;
AddLocation = pure(AddLocati... |
app/components/Molecules/UserInfo/UserInfo.js | shibe97/worc | import React from 'react';
import { Link } from 'react-router-dom';
import UserImage from '../../Atoms/UserImage/UserImage';
import Name from '../../Atoms/Name/Name';
import ScreenName from '../../Atoms/ScreenName/ScreenName';
import styles from './userInfo.css';
export default ({ url = '', idStr = '', name = '', scre... |
simpleapp/app/component/app.js | ladanv/learn-react-js | import React, { Component } from 'react';
import config from '../../config';
import NavBar from './nav/navbar';
import SideNav from './nav/sidenav';
var menuItems = [{
id: 1,
label: config.menuInventory,
url: '/inventory'
}, {
id: 2,
label: config.menuWarehouse,
url: '/warehouse'
}, {
id:... |
src/JSONArrow.js | chibicode/react-json-tree | import React from 'react';
import PropTypes from 'prop-types';
const JSONArrow = ({ styling, arrowStyle, expanded, nodeType, onClick }) => (
<div {...styling('arrowContainer', arrowStyle)} onClick={onClick}>
<div {...styling(['arrow', 'arrowSign'], nodeType, expanded, arrowStyle)}>
{'\u25B6'}
{arrowS... |
jenkins-design-language/src/js/components/material-ui/svg-icons/places/casino.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const PlacesCasino = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18zm0-9C6.67 9 6 8.33 6 7.5S6.67 6 7... |
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js | sfshine/actor-platform | import React from 'react';
import _ from 'lodash';
import VisibilityStore from 'stores/VisibilityStore';
import MessageActionCreators from 'actions/MessageActionCreators';
import MessageItem from 'components/common/MessageItem.react';
let _delayed = [];
let flushDelayed = () => {
_.forEach(_delayed, (p) => {
... |
app/javascript/flavours/glitch/components/regeneration_indicator.js | Kirishima21/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import illustration from 'flavours/glitch/images/elephant_ui_working.svg';
const RegenerationIndicator = () => (
<div className='regeneration-indicator'>
<div className='regeneration-indicator__figure'>
<img src={illustration} alt=''... |
app/components/global/ServerSelect.js | aaroncox/vessel | // @flow
import React, { Component } from 'react';
import { Button, Header, Modal, Segment, Table } from 'semantic-ui-react';
const servers = [
'https://api.hive.blog',
];
export default class ServerSelect extends Component {
state = {
loading: false,
open: false,
servers: {}
}
startStatus = ()... |
docs/src/sections/DropdownSection.js | jesenko/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function DropdownSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<... |
src/containers/MenuView/TermsOfUse.js | JamesJin038801/CampID | import { Text, View, Platform, Image, ScrollView } from 'react-native';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import I18n from 'react-native-i18n';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import NavigationBar from 'react-native-navbar... |
frontend/modules/recipe_form/components/DirectionBox.js | rustymyers/OpenEats | import React from 'react'
import {
injectIntl,
defineMessages,
} from 'react-intl';
import { TextArea } from '../../common/components/FormComponents'
import Directions from '../../recipe/components/Directions'
import TabbedView from './TabbedView'
class DirectionBox extends React.Component {
render() {
cons... |
src/svg-icons/notification/event-available.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEventAvailable = (props) => (
<SvgIcon {...props}>
<path d="M16.53 11.06L15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17l5.94-5.94zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 ... |
src/routes/Software/components/SoftwareView.js | jhash/jhash | import './SoftwareView.scss'
import React from 'react'
export class SoftwareView extends React.Component {
static propTypes = {}
render () {
return (
<div className='view--software row' />
)
}
}
export default SoftwareView
|
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/FormFeedback.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
children: PropTypes.node,
tag: tagPropType,
className: PropTypes.string,
cssModule: PropTypes.object,
valid: PropTypes.bool,
toolti... |
src/routes.js | kahn1990/redux-project-example | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import {
App,
Home,
Blog,
BlogDetail,
Case,
CaseDetail,
Product,
About,
Recruitment,
NotFound,
} from 'containers';
export default () => {
/**
* Please keep routes in alphabetical order
*/
ret... |
examples/huge-apps/routes/Course/components/Dashboard.js | egobrightan/react-router | import React from 'react'
class Dashboard extends React.Component {
render() {
return (
<div>
<h3>Course Dashboard</h3>
</div>
)
}
}
export default Dashboard
|
src/components/Footer.js | teamstrobe/mancreact-client | import React from 'react';
const Footer = () => (
<footer className="footer">
<div className="container">
Organised & sponsored by <a href="http://strobedigital.com">Strobe</a>
</div>
</footer>
);
export default Footer;
|
src/components/typography/h3.js | awaseem/Jam | import React from 'react';
import styles from '../../css/skeleton.css';
function H3(props) {
return (
<h3 className={styles.h3} style={{ textAlign: props.align }}>{props.children}</h3>
);
}
H3.propTypes = {
children: React.PropTypes.any.isRequired,
align: React.PropTypes.string,
};
export default H3;
|
docs/src/Root.js | aabenoja/react-playground | import React from 'react';
class Root extends React.Component {
render() {
return (
<html>
<head>
<link href='assets/bundle.css' rel='stylesheet' />
</head>
<body>
<div id='app' dangerouslySetInnerHTML={{__html: this.props.markup}}></div>
<script src='a... |
src/encoded/static/components/dataset.js | ENCODE-DCC/encoded | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import UserRoles from '../libs/user_roles';
import * as Pager from '../libs/ui/pager';
import { Panel, PanelBody } from '../libs/ui/panel';
import DropdownButton from '../libs/ui/button';
import { CartToggle, CartAddAllElements }... |
js/components/form/textArea.js | YeisonGomez/RNAmanda |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Textarea, Body, Left, Right, IconNB } from 'native-base';
import { Actions } from 'react-native-router-flux';
import sty... |
packages/react/components/messages.js | AdrianV/Framework7 | import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __reactComponentSlots from '../runtime-helpers/react-component-slots.js';
import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js';
class F7Messages extends React.Component {
cons... |
app/components/GraphQlapi/index.js | mhoffman/CatAppBrowser | /**
*
* GraphQlapi
*
*/
import React from 'react';
import PropTypes, { instanceOf } from 'prop-types';
import IFrame from 'react-iframe';
import Helmet from 'react-helmet';
import Card, { CardActions, CardContent } from 'material-ui/Card';
import Button from 'material-ui/Button';
import Paper from 'material-ui/Pa... |
app/views/OurStory.js | mziemer21/wedding | import React, { Component } from 'react';
// components
import Timeline from './components/Timeline';
import Event from './components/Event';
import SubTimeline from './components/SubTimeline';
// styles
import '../assets/styles/ourStory.css';
// images
import mainImage from '../assets/img/frontPage/collage.jpg';
impor... |
app/javascript/mastodon/features/blocks/index.js | nonoz/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll';
import Column from '../ui/components... |
client/reactComponents/TextDisplay.js | iandeboisblanc/wikiMuseumVR | import React from 'react';
import {render} from 'react-dom';
const $ = require('jquery');
class TextDisplay extends React.Component {
constructor(props) {
super(props);
this.depth = props.depth || '0.05';
this.width = props.width || '1';
this.height = props.height || '1';
var scale = props.html... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.