path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/Pagination.js | codyc4321/react-data-components-updated | import React, { Component } from 'react';
import PropTypes from 'prop-types';
// Used to cancel events.
var preventDefault = e => e.preventDefault();
export default class Pagination extends Component {
static defaultProps = {
showPages: 5,
};
static propTypes = {
onChangePage: PropTypes.func.isRequired... |
app/index.js | hubejan/Code-a-la-Mode-teacher | import React from 'react';
import { ipcRenderer } from 'electron';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Root from './containers/Root';
import { configureStore, history } from './store/configureStore';
import { reqAndXmitFile } from './actions/filetree-actions';
imp... |
docs/build.js | bbc/react-bootstrap | /* eslint no-console: 0 */
import React from 'react';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import Root from './src/Root';
import fsp from 'fs-promise';
import { copy } from '../tools/fs-utils';
import { exec } from '../tools/exec';
import metadata from './gener... |
test/test_helper.js | natcreates/react-learning | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
lib/blocks/embeds/vimeo.js | pairyo/kattappa | import React from 'react';
import BaseEmbed from './base';
class Vimeo extends BaseEmbed {
render() {
if(this.state.valid) {
return (
<div className="katap-embed katap-vimeo">
<iframe
src={'//player.vimeo.com/video/'+this.state.id}
frameBorder={0}
width... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Promises.js | iamdoron/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... |
packages/mineral-ui-icons/src/IconLocationSearching.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconLocationSearching(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...... |
src/main/MainScreenContainer.js | saketkumar95/zulip-mobile | /* @flow */
import React from 'react';
import { connect } from 'react-redux';
import isEqual from 'lodash.isequal';
import config from '../config';
import boundActions from '../boundActions';
import {
getShownMessagesInActiveNarrow,
getAnchor,
getCurrentTypingUsers,
} from '../chat/chatSelectors';
import { getAu... |
src/ContentBlocks/BlockParagraph/BlockParagraphPreview.js | grommet/grommet-cms-content-blocks | import PropTypes from 'prop-types';
import React from 'react';
import Markdown from 'grommet/components/Markdown';
export default function BlockParagraphPreview({ content }) {
return (
<Markdown
content={content}
components={{
p: { props: { margin: 'none' } },
}}
/>
);
}
BlockPar... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | 8796n/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 emojify from '../../../... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/LinkedModules.js | devex-web-frontend/create-react-app-dx | /**
* 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... |
app/utils/injectSaga.js | kaizen7-nz/gold-star-chart | import React from 'react';
import PropTypes from 'prop-types';
import hoistNonReactStatics from 'hoist-non-react-statics';
import getInjectors from './sagaInjectors';
/**
* Dynamically injects a saga, passes component's props as saga arguments
*
* @param {string} key A key of the saga
* @param {function} saga A r... |
cheesecakes/plugins/content-manager/admin/src/components/Wysiwyg/toggleMode.js | strapi/strapi-examples | /**
*
*
* ToggleMode
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import styles from './componentsStyles.scss';
const ToggleMode = props => {
const label = props.isPreviewMode
? 'components.Wysiwyg.ToggleMode.markdown'
: 'components.Wys... |
src/setup/PimaticSetup.js | Timvdv/flexible-dashboard | import React, { Component } from 'react';
import { Link } from 'react-router';
/**
* Setup the dashboard so it can connect to Pimatic!
*/
export default class PimaticSetup extends Component {
constructor(props) {
super(props);
this.state = {
step : 1,
error: "",
... |
.storybook/config.js | xavcz/react-orbital | import React from 'react';
import { configure, addDecorator } from '@kadira/storybook';
import '../src/theme/global-styles';
import ThemeDecorator from '../src/theme/ThemeDecorator';
const req = require.context('../src', true, /.stories.js$/)
function loadStories() {
req.keys().forEach((filename) => req(filename))
... |
examples/query-params/app.js | KamilSzot/react-router | import React from 'react';
import createHistory from 'history/lib/createHashHistory';
import { Router, Route, Link } from 'react-router';
var User = React.createClass({
render() {
var { query } = this.props.location;
var age = query && query.showAge ? '33' : '';
var { userID } = this.props.params;
re... |
src/components/ThemeBuilderDashboard.js | Charlie9830/pounder | import React from 'react';
import VisibleThemeSettings from './AppSettingsMenu/ThemeSettings';
const ThemeBuilderDashboard = () => {
return (
<div style={{
position: "absolute",
width: '100%',
height: '25%',
overflowY: 'scroll',
bottom: 0, left: 0... |
src/clincoded/static/components/variant_central/interpretation/segregation/evidenceTable.js | ClinGen/clincoded | 'use strict';
// stdlib
import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
// third party lib
import _ from 'underscore';
import { ContextualHelp } from '../../../../libs/bootstrap/contextual_help';
import moment from 'moment';
// Internal lib
import { E... |
pages/brothers.js | Slava/zbt-website | import React from 'react'
import DocumentTitle from 'react-document-title'
import SkyLight from 'react-skylight'
import Tabs from 'react-simpletabs'
import '../node_modules/react-simpletabs/lib/react-simpletabs.css'
import '../css/tabs.css'
import { config } from 'config'
import { prefixLink } from '../utils/urls.js'... |
pages/house.js | Slava/zbt-website | import React from 'react'
import { Link } from 'react-router'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
import {
Row,
Splash,
Split,
} from './_sharedComponents'
import CoverImg from '../static/house-cover.jpg';
import CommonsImg from '../static/commons.jpg';
import HouseI... |
client/scripts/bbl-list.js | stas-vilchik/bdd | import React from 'react';
import $ from 'jquery';
import _ from 'underscore';
import BBLItem from './bbl-item.js';
export default React.createClass({
getInitialState() {
return { list: [] };
},
componentDidMount() {
this.requestData();
},
requestData() {
$.when(
this.requestBBLs(),
... |
src/react/Notification.js | onap-sdc/sdc-ui | import React from 'react';
import PropTypes from 'prop-types';
import SVGIcon from './SVGIcon';
const Notification = ({
title,
message,
type,
onClick,
className,
dataTestId
}) => {
return (
<div
className={`sdc-notification type-${type} ${className}`}
data-te... |
src/components/navigation/MenuSubItem/MenuSubItem.js | cltk/cltk_frontend | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import './MenuSubItem.css';
const MenuSubItem = ({ to, onClick, children, last }) => (
<Link
className={`
menuSubItem
${last ? 'menuSubItemLast' : ''}
`}
to={to}
onClick={onClick}
>
<span>
{child... |
src/common/components/TopNavBar.js | GovTracker/GovTracker-frontend | import React from 'react';
import { Navbar, CollapsibleNav, Nav, NavBrand, Input, NavItem } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
class TopNavBar extends React.Component {
render() {
return (
<Navbar toggleNavKey={0} fluid fixedTop inverse toggleButton={[<i classNa... |
app/javascript/mastodon/components/status.js | honpya/taketodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import RelativeTimestamp from './relative_timestamp';
import DisplayName from './display_name';
import StatusContent fro... |
entry_types/scrolled/package/src/contentElements/inlineImage/InlineImage.js | codevise/pageflow | import React from 'react';
import {
ContentElementBox,
Image,
Figure,
FitViewport,
useContentElementLifecycle,
useFile,
usePortraitOrientation
} from 'pageflow-scrolled/frontend';
export function InlineImage({configuration}) {
const imageFile = useFile({
collectionName: 'imageFiles', permaId: conf... |
src/App.js | Team-Banana-Guava/JobOrNot-React | import React from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import Home from './components/home/Home';
import RecruiterForm from './components/forms/RecruiterForm';
import TalentForm from './components/forms/TalentForm';
import SignInForm from './components/forms/SignInForm';
i... |
packages/material-ui-icons/src/CloudQueue.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let CloudQueue = props =>
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z... |
js/components/CSSettingCell.js | kilimondjaro/react-native-couchsurfing-app | // @flow
import React from 'react';
import {
View,
TouchableHighlight,
Image,
Text,
StyleSheet
} from 'react-native';
type Props = {
title: string;
value?: string;
showIcon?: boolean;
onPress: () => void;
};
export default function CSSettingCell(props: Props) {
return (
<TouchableHighlight
... |
src/components/structure/Header/Hamburger.js | jumpalottahigh/blog.georgi-yanev.com | import React from 'react'
import { createGlobalStyle } from 'styled-components'
import { Link, useStaticQuery, graphql } from 'gatsby'
import Img from 'gatsby-image'
import { slide as Menu } from 'react-burger-menu'
import { FaGithub, FaTwitter, FaLinkedin, FaRss, FaDev } from 'react-icons/fa'
import TagPool from '../... |
src/layouts/index.js | adenj/blog | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'gatsby-link';
import Helmet from 'react-helmet';
const Header = () =>
<div
style={{
background: 'rebeccapurple',
marginBottom: '1.45rem'
}}
>
<div
style={{
margin: '0 auto',
maxWidth: 960,... |
website/modules/components/MarkdownViewer.js | DelvarWorld/react-router | /*eslint react/no-danger:0 */
import React from 'react'
import PropTypes from 'prop-types'
import 'prismjs/themes/prism-tomorrow.css'
const MarkdownViewer = ({ html, id }) => (
<markdown
dangerouslySetInnerHTML={{
__html: html
}}
/>
)
MarkdownViewer.propTypes = {
html: PropTypes.string.isRequired
... |
src/components/FileUploader/FileUploader.js | carbon-design-system/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
/* eslint react/no-multi-comp: "off" */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from ... |
examples/passing-props-to-children/app.js | albertolacework/react-router | import React from 'react';
import { Router, Route, Link, History } from 'react-router';
var App = React.createClass({
mixins: [ History ],
getInitialState() {
return {
tacos: [
{ name: 'duck confit' },
{ name: 'carne asada' },
{ name: 'shrimp' }
]
};
},
addTaco() {... |
Example/components/Launch.js | mcabs3/react-native-router-flux | import React from 'react';
import { View, Text, StyleSheet, Button } from 'react-native';
import { Actions } from 'react-native-router-flux';
import { MessageBarManager } from 'react-native-message-bar';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'cente... |
src/client/src/routes/Home/components/HomeView.js | aquibm/Research-Engine | import React from 'react'
//import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div className="container-fluid">
<div className="row">
<div className="col-md-8">
<div className="card">
<div className="header">
... |
examples/sorting/src/App.js | react-tools/react-table | import React from 'react'
import styled from 'styled-components'
import { useTable, useSortBy } from 'react-table'
import makeData from './makeData'
const Styles = styled.div`
padding: 1rem;
table {
border-spacing: 0;
border: 1px solid black;
tr {
:last-child {
td {
border-bo... |
react/src/components/FilePlacementList/FilePlacementSortableItem/index.js | sinfin/folio | import React from 'react'
import { SortableElement } from 'react-sortable-hoc'
import { FormGroup, FormText } from 'reactstrap'
import TextareaAutosize from 'react-autosize-textarea'
import NestedModelControls from 'components/NestedModelControls'
import FileHoverButtons from 'components/FileHoverButtons'
import Pictu... |
src/renderer/components/retweet.js | ka2n/retro-twitter-client | import React from 'react'
import Time from './time'
import TweetBody from './tweet-body'
export default class Retweet extends React.Component {
render() {
return(
<li className="tweet" key={this.props.tweet.id_str}>
<div className="tweet-sub">
<div className="tweet-avatar-parent">
... |
client/components/FriendsList.js | gut-js/gut | import React from 'react';
//Components
import FriendEntry from './FriendEntry';
class FriendsList extends React.Component {
constructor(){
super();
this.displayFriends = this.displayFriends.bind(this);
}
displayFriends(){
const { userFriends, username, displayFriendsChoice, diners } = this.props;
... |
src/routes/Arcgis/childRoutes.js | Peturman/resume-app | // import React from 'react'
// import { Route } from 'react-router'
export default [
{/* <Route path='publish' component={require('./view/publish').default} /> */}
]
|
test/helpers/shallowRenderHelper.js | 354290585/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/PureComponent.js | AgentME/flow | // @flow
import React from 'react';
class MyComponent extends React.PureComponent<DefaultProps, Props, State> {
static defaultProps: DefaultProps = {};
state: State = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extend... |
src/organisms/cards/SummaryCard/index.js | policygenius/athenaeum | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import LinkWrapper from 'atoms/LinkWrapper';
import Text from 'atoms/Text';
import Spacer from 'atoms/Spacer';
import Icon from 'atoms/Icon';
import Layout from 'atoms/Layout';
import Col from 'atoms/Layout/Col';
impor... |
components/list/ListItemText.js | react-toolbox/react-toolbox | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { themr } from 'react-css-themr';
import { LIST } from '../identifiers';
const ListItemText = ({
className, primary, children, theme, ...other
}) => {
const _className = classnames(theme.itemText, { [theme.pr... |
client/index.js | chakhsu/react-dev-cli | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App.jsx';
ReactDOM.render(<App />, document.getElementById('root')); |
src/components/layout/Bar/Bar.js | dreamyguy/sidhree-com | import React from 'react';
import './Bar.scss';
const Bar = props => {
const { bottom, top } = props;
return (
<ul className={`bar${bottom ? ' pos-bottom-block' : ''}${top ? ' pos-top-block' : ''}`}>
<li className="bar-item bg-fav-orange-light"></li>
<li className="bar-item bg-fav-orange-middle"></... |
good-old-react-authentication-flow/src/containers/HomePage/index.js | strapi/strapi-examples | /**
*
* HomePage
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import Button from '../../components/Button';
import auth from '../../utils/auth';
class HomePage extends React.Component {
render() {
return (
<div style={{ marginTop: '15%' }}>... |
src/svg-icons/image/remove-red-eye.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageRemoveRedEye = (props) => (
<SvgIcon {...props}>
<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5... |
node_modules/react-router/es6/IndexRedirect.js | 937aaron/reduxblog | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
ui/src/index.js | gchatterjee/cit-gened-finder | import React from 'react'
import ReactDOM from 'react-dom'
import App from './app'
ReactDOM.render(<App />, document.getElementById('root'))
|
src/js/Simulation/Step.js | elliotaplant/celestial-dance | import 'aframe';
import React from 'react';
import { translate, rand, vLog, objToArr, getR,
massToRadius, merge } from '../Helpers/Helpers';
import { getNetAccel } from '../Helpers/AccelerationLogic';
import { GRAVITY, PLANET_SPRING, MIN_DISTANCE, TIME_SCALE } from '../Helpers/Constants';
import Force from './Force';... |
src/index.js | superKaigon/TheCave | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk'
import reducers from './reducers';
import Routes from './routes'
const createStoreWithMiddleware = applyMiddleware(thunk)(createStor... |
client/src/components/AddNewArticleForm.js | MattMcFarland/reactathon | import React from 'react';
import { FormErrors } from './partials';
import {
Button,
Input,
ButtonInput
} from 'react-bootstrap';
import { AppActions } from '../actions/AppActions';
import { AppStore } from '../stores/AppStore';
export class AddNewArticleForm extends React.Component {
constructor() {
sup... |
components/common/banner.js | coderplex/coderplex | import React from 'react';
import styled from 'react-emotion';
import { space } from 'styled-system';
import { Container, Title, SubTitle } from '../../utils/base.styles';
const BannerSection = styled.section`
background-color: #374355;
min-height: 150px;
text-align: center;
${space};
`;
export default ({ ti... |
src/screens/index.js | flasco/Reader_X | import {
StackNavigator,
TabNavigator,
} from 'react-navigation';
import React from 'react';
import { Text, View } from 'react-native';
import { Icon } from 'react-native-elements';
import { HeaderBackButton, NavigationActions } from 'react-navigation';
import Router from '../router';
import ShelfScreen from './S... |
jenkins-design-language/src/js/components/material-ui/svg-icons/av/repeat.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvRepeat = (props) => (
<SvgIcon {...props}>
<path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"/>
</SvgIcon>
);
AvRepeat.displayName = 'AvRepeat';
AvRepeat.muiName = 'SvgIcon';
export default AvRepeat;
|
app/m_components/QuickRead.js | kongchun/BigData-Web | import React from 'react';
import {
Link
} from 'react-router';
import {
browserHistory
} from 'react-router';
import ArticleSimpleStore from '../stores/ArticleSimpleStore';
import ArticleListActions from '../actions/ArticleListActions';
import LogActions from '../actions/LogActions';
import ArticleColl... |
client/src/Components/UserProfile/ClientAdditionalEdit.js | teamcrux/EmploymentOptions | import React from 'react';
import { Field, FieldArray, reduxForm } from 'redux-form';
import ClientAdditionalForm from './ClientEditForms/ClientAdditionalForm';
class ClientAdditionalEdit extends React.Component {
constructor(props){
super(props);
this.sendPatch = this.sendPatch.bind(this);
};
sendPatch... |
src/components/modals/EditUserModal/index.js | Guseff/services-on-map-demo | import React, { Component } from 'react';
import ReactModal from 'react-modal';
import EditUserForm from '../EditUserForm';
import './style.css';
class EditUserModal extends Component {
constructor() {
super();
this.handleCloseModal = this.handleCloseModal.bind(this);
}
handleCloseModal() {
this.p... |
src/parser/shared/modules/spells/bfa/essences/EssenceOfTheFocusingIris.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import StatTracker from 'parser/shared/modules/StatTracker';
import { formatNumber } from 'common/format';
import StatisticGroup from 'interface/statistics/StatisticGroup';
import STATISTIC_CATEGORY from 'interf... |
src/components/Mention.js | myanbin/myeditor | import React from 'react'
const Mention = (props) => {
return (
<span style={{color: '#a71d5d'}}>
{props.children}
</span>
);
}
export default Mention |
app/javascript/mastodon/features/compose/components/compose_form.js | blackle/mastodon | import React from 'react';
import CharacterCounter from './character_counter';
import Button from '../../../components/button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ReplyIndicatorContainer from '../containers/reply_indicator_container';
import Autosugges... |
src/index.js | nchristiny/deck_saver_app | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
app/screens/channel/channel.android.js | mattermost/mattermost-mobile | // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {StyleSheet, View, BackHandler, ToastAndroid} from 'react-native';
import {openMainSideMenu, openSettingsSideMenu} from '@actions/navigation';
import AnnouncementBanner fro... |
js/components/Contact.js | taylordaug/site | import React from 'react'
export class Contact extends React.Component {
render() {
return (<div>CONTACT ME </div>)
}
}
export default Contact;
|
src/svg-icons/places/rv-hookup.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesRvHookup = (props) => (
<SvgIcon {...props}>
<path d="M20 17v-6c0-1.1-.9-2-2-2H7V7l-3 3 3 3v-2h4v3H4v3c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h8v-2h-2zm-9 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1... |
threeforce/node_modules/react-bootstrap/es/MediaListItem.js | wolfiex/VisACC | 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/Container.js | w01fgang/elemental | import React from 'react';
import blacklist from 'blacklist';
import E from '../constants';
module.exports = React.createClass({
displayName: 'Container',
propTypes: {
children: React.PropTypes.node.isRequired,
clearfix: React.PropTypes.bool,
gutter: React.PropTypes.number,
maxWidth: React.PropTypes.number,
... |
app/view/clip-list.js | ovekyc/textlogger | import React from 'react';
import fs from 'fs';
import update from 'react-addons-update';
import readline from 'readline';
import Clip from './clip';
import {ipcRenderer} from 'electron';
import autobind from 'autobind-decorator';
@autobind
export default class ClipList extends React.Component {
constructor() {
... |
src/components/OdometerInputView.js | fkoester/tachograph-app | import React from 'react';
import {
ScrollView,
Text,
View,
StyleSheet,
TextInput,
} from 'react-native';
import { connect } from 'react-redux';
import Icon from 'react-native-vector-icons/FontAwesome';
import AwesomeButton from 'react-native-awesome-button';
import dismissKeyboard from 'react-native-dismiss-... |
app/components/FileListElement.js | fakob/electron-test-v003 | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import { truncate, truncatePath, frameCountToTimeCode, formatBytes } from '../utils/utils';
import styles from './FileList.css';
import mpNotFound from './../img/MoviePrint_Corrupt_00000.jpg';
const FileListElement = ({ id, frameCount, fps, width... |
app/features/settings/device/panels/SettingsDevicePanelDisconnecting.js | squatsandsciencelabs/OpenBarbellApp | import React, { Component } from 'react';
import {
Text,
View
} from 'react-native';
import { SETTINGS_PANEL_STYLES } from 'app/appearance/styles/GlobalStyles';
// displays disconnecting device info
class SettingsDevicePanelDisconnecting extends Component {
render() {
return (
<View s... |
liferay-gsearch-workspace/modules/gsearch-react-web/src/main/resources/META-INF/resources/lib/containers/Stats/index.js | peerkar/liferay-gsearch | import React from 'react'
import { connect } from 'react-redux';
import { getMeta, getPagination } from '../../store/reducers/search';
/**
* Redux mapping.
*
* @param {Object} state
*/
function mapStateToProps(state) {
return {
meta: getMeta(state),
pagination: getPagination(state)
};
}
/... |
admin/client/App/components/Navigation/Primary/index.js | naustudio/keystone | /**
* The primary (i.e. uppermost) navigation on desktop. Renders all sections and
* the home-, website- and signout buttons.
*/
import React from 'react';
import { Container } from '../../../elemental';
import PrimaryNavItem from './NavItem';
var PrimaryNavigation = React.createClass({
displayName: 'PrimaryNavig... |
src/svg-icons/action/zoom-in.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionZoomIn = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1... |
src/util.js | wmzy/formsy-antd | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withFormsy } from 'formsy-react';
export function omitFormsyProps(props) {
const {
/* eslint-disable no-unused-vars */
setValidations,
setValue,
resetValue,
getValue,
hasValue,
getErrorMessage,
getE... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js | devex-web-frontend/create-react-app-dx | /**
* 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/index.js | heutagogy/HeutagogyMobileApp | import React from 'react'
import { Provider } from 'react-redux'
import { app } from './modules'
import { store, load } from './createStore'
load(store).then((newState) => console.log('Loaded state:', newState))
const Main = () => {
return (
<Provider store={store}>
<app.App />
</Provider>
)
}
ex... |
blueocean-material-icons/src/js/components/svg-icons/places/smoking-rooms.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const PlacesSmokingRooms = (props) => (
<SvgIcon {...props}>
<path d="M2 16h15v3H2zm18.5 0H22v3h-1.5zM18 16h1.5v3H18zm.85-8.27c.62-.61 1-1.45 1-2.38C19.85 3.5 18.35 2 16.5 2v1.5c1.02 0 1.85.83 1.85 1.85S17.52 7.2 16.5 7.2v1.5c2.24 0 4 1.83 4 4.07V15... |
src/Label.js | asiniy/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Label = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'label',
bsStyle: 'default'
};
},
render() {
let classes = this.getBsClassSe... |
actor-apps/app-web/src/app/components/common/Image.react.js | berserkertdl/actor-platform | import React from 'react';
import classnames from 'classnames';
import Lightbox from 'jsonlylightbox';
// lightbox init
const lightbox = new Lightbox();
const lightboxOptions = {
animation: false,
controlClose: '<i class="material-icons">close</i>'
};
lightbox.load(lightboxOptions);
let cache = {};
class Image ... |
docs/src/PropTable.js | Terminux/react-bootstrap | import _ from 'lodash-compat';
import React from 'react';
import Glyphicon from '../../src/Glyphicon';
import Label from '../../src/Label';
import Table from '../../src/Table';
let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, '');
let capitalize = str => str[0].toUpperCase() + str.substr(1);... |
app/js/components/trainer-pokemon/trainer-pokemon-moves.component.js | milk-shake/electron-pokemon | import React from 'react';
import ReactDOM from 'react-dom';
import PokemonMoveComponent from "./trainer-pokemon-move.component";
export default class PokemonMovesComponent extends React.Component {
constructor(props) {
super(props);
}
render() {
return <div className="trainer-pokemon-moves__wrapper">... |
client/src/components/pages/NotFound/index.js | Nonsoft/crdweb | import React from 'react';
import styled from 'styled-components';
import img from '../../../404.png';
const Img = styled.div`
height: 100vh;
background: #ececec;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
`
const NotFound = () => (
<Img>
<img src={img} alt="404"/... |
react-twitter-save-data-loading(hook)/src/index.js | GoogleChromeLabs/adaptive-loading | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
react-flux-mui/js/material-ui/src/svg-icons/device/gps-off.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceGpsOff = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2.65l1.5... |
example/src/screens/Example5.js | aksonov/react-native-tableview | /* eslint-disable no-alert */
import React from 'react';
import TableView from 'react-native-tableview';
const { Item, Section } = TableView;
const Example5 = () => (
// list spanish provinces and add 'All states' item at the beginning
<TableView
reactModuleForCell="TableViewExampleCell"
style={{ flex: 1... |
src/components/ResetPasswordNotAvailableScreen/ResetPasswordNotAvailableScreen.js | folio-org/stripes-core | import React from 'react';
import { FormattedMessage } from 'react-intl';
import { Headline } from '@folio/stripes-components';
import AddContext from '../../AddContext';
import Pluggable from '../../Pluggable';
import { useStripes } from '../../StripesContext';
import css from './ResetPasswordNotAvailableScreen.css... |
jss/src/stories/1-Views.stories.js | ampproject/amp-react-prototype | import React from 'react';
import { action } from '@storybook/addon-actions';
import View1 from '../View1';
import View2 from '../View2';
import {text, withKnobs} from '@storybook/addon-knobs';
export default {
title: 'Views',
decorators: [withKnobs],
};
export const View1Story = () => {
const name = text('name... |
tests/site8/code/components/component1.js | dominikwilkowski/cuttlebelle | import React from 'react';
const Component1 = ({ _body }) => (
<div>
<pre>layout: component1</pre>
{ _body }
</div>
);
export default Component1;
|
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | an-dev-acc/saisyou | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
examples/async/containers/Root.js | chrisvfritz/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
app/lib/TabItem.js | future-challenger/react-native-dribbble-app | /**
* The examples provided by Uncle Charlie are for non-commercial testing and
* evaluation purposes only.
*
* Uncle Charlie reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHAN... |
src/svg-icons/action/perm-device-information.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermDeviceInformation = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
... |
web-server/v0.4/src/pages/Results/index.js | atheurer/pbench | import React, { Component } from 'react';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import { Card, Form } from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import SearchBar from '@/components/SearchBar';
import RowSelection from '@/components/RowSelection';
impo... |
mobile/components/EditableOrderProduct.js | weirdsoft/coopcon | import React from 'react'
import PropTypes from 'prop-types'
import { compose, setDisplayName, setPropTypes } from 'recompose'
import { View, StyleSheet } from 'react-native'
import { Text, Paper, TouchableRipple, Divider } from 'react-native-paper'
import { MaterialIcons } from '@expo/vector-icons'
const styles = Sty... |
scripts/apps/contacts/directives/ContactList.js | gbbr/superdesk-client-core | /* eslint-disable react/no-render-return-value */
import React from 'react';
import ReactDOM from 'react-dom';
import {ItemList as ItemListComponent} from 'apps/contacts/components';
ContactList.$inject = [
'$timeout',
'$filter',
'search',
'datetime',
'Keys',
'gettextCatalog',
'$rootScope... |
src/layouts/CoreLayout/CoreLayout.js | RequestTimeout408/alba-task | import React from 'react'
import Header from '../../components/Header'
import './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div>
<Header />
<div className='container text-center'>
<div className='core-layout__viewport'>
{children}
</di... |
src/component/common/loading.js | CaiHuan/react_native_zhihu_demo | import React, { Component } from 'react';
import {
View,
ActivityIndicator
} from 'react-native';
export default class Loading extends Component {
constructor(props) {
super(props);
}
render() {
return(
<View
style={{flex:1, alignItems:'center', justifyContent:'center'}}>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.