path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/HomeScreen.js | ujjwalbanka/ReactJSBlog | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { navigateScreen } from '../actions';
class HomeScreen extends Component {
render() {
return (
<div className='landing-page'>
<div className="logo">
<img
className=... |
node_modules/@material-ui/core/es/DialogContent/DialogContent.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
export const styles = theme => ({... |
node_modules/@expo/vector-icons/vendor/react-native-vector-icons/lib/create-icon-set.js | jasonlarue/react-native-flashcards | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
NativeModules,
Platform,
PixelRatio,
processColor,
Text,
} from './react-native';
import createIconButtonComponent from './icon-button';
import createTabBarItemIOSComponent from './tab-bar-item-ios';
import createToolbarAn... |
src/components/pages/demoPage/TestRedux.js | guangqiang-liu/OneM | import React from 'react'
import {View, Text, StyleSheet} from "react-native"
import Button from "react-native-button"
import {Actions} from "react-native-router-flux"
import {connect} from 'react-redux'
class Home extends React.Component {
addAction(add) {
console.log('add')
add()
}
reducerAction(redu... |
example/index.js | abraztsov/react-sweet-progress | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('react-root')
);
|
react-boilerplate/app/containers/LanguageProvider/index.js | Sakuyakun/Yorha-Experiment | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect'... |
src/index.js | dryzhkov/ps-react-dr | import React from 'react';
import ReactDOM from 'react-dom';
import Docs from './docs/Docs';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
import '../node_modules/highlight.js/styles/vs.css';
ReactDOM.render(
<Docs />,
document.getElementById('root')
);
registerServiceWorker()... |
app/Routes.js | vagnerpraia/ipea_survey | import React, { Component } from 'react';
import { Navigator, ToastAndroid } from 'react-native';
import Main from './component/main/Main';
import Quiz from './component/quiz/Quiz';
import Identificacao from './component/quiz/Identificacao';
import Domicilio from './component/quiz/Domicilio';
import ListaMoradores fro... |
src/Header.js | melaniebmn/peaktrails | import React, { Component } from 'react';
import styled from 'styled-components';
import logo from './assets/img/logo.png';
import Nav from './Nav';
const Logo = styled.h1`
font-size: 32px;
flex-direction: row;
a {
display: flex;
align-items: center;
color: inherit;
}
span {
margin: 0 0 0 10p... |
src/components/video_detail.js | simondate/Youtube-react-app | 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-respons... |
src/routes/index.js | thangngoc89/react-base | import React from 'react'
import { Route, IndexRoute } from 'react-router'
import CoreLayout from 'layouts/CoreLayout'
import HomeView from 'views/HomeView'
import AboutView from 'views/AboutView'
export default (
<Route component={CoreLayout} path='/'>
<IndexRoute component={HomeView} />
<Route component={A... |
src/components/ForgotUserName/ForgotUserNameCtrl.js | folio-org/stripes-core | import React, { Component } from 'react';
import {
withRouter,
Redirect,
} from 'react-router-dom';
import { connect as reduxConnect } from 'react-redux';
import PropTypes from 'prop-types';
import { validateForgotUsernameForm } from '../../validators';
import processBadResponse from '../../processBadResponse';
im... |
app/javascript/mastodon/components/admin/ReportReasonSelector.js | MitarashiDango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import api from 'mastodon/api';
import { injectIntl, defineMessages } from 'react-intl';
import classNames from 'classnames';
const messages = defineMessages({
other: { id: 'report.categories.other', defaultMessage: 'Other' },
spam: { id: 'report.categ... |
client/src/components/Dashboard/CustomerDashboard.js | bwuphan/raptor-ads | import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { Container, Header, Card, Divider, Loader } from 'semantic-ui-react';
import Listing from '../shared/Listing';
import capitalize from '../helpers/capitalize';
import convertTime from '../helpers/convertT... |
docs/src/routes/error/ErrorPage.js | bmatthews/haze-lea | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
lens-ui/app/components/QueryBoxComponent.js | sushrutikhar/grill | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
packages/components/src/List/Toolbar/ColumnChooserButton/ColumnChooser/ColumnChooserFooter/ColumnChooserFooter.component.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import ActionButton from '../../../../../Actions/ActionButton';
import { useColumnChooserContext } from '../columnChooser.context';
import RichLayout from '../../../../../Rich/Layout';
import cssModule from '../ColumnChooser.scss';
import { getTheme } from ... |
src/components/TextBox/index.js | indec-it/react-native-form-builder | import React from 'react';
import PropTypes from 'prop-types';
import {Text, View} from 'react-native';
import {mergeStyles, stylePropType} from '@indec/react-native-commons/util';
import styles from './styles';
const TextBox = ({text, style}) => {
const computedStyles = mergeStyles(styles, style);
return (
... |
packages/frontend/src/client.js | jimpick/lambda-comments | import React from 'react'
import { render } from 'react-dom'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import makeRoutes from './routes'
import Root from './root'
import configureStore from './store'
// Create redux store and sync with react-router-redux. W... |
src/svg-icons/action/g-translate.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGTranslate = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09 4.09-4... |
front/components/app.js | bigkangtheory/wanderly | import React, { Component } from 'react';
import Navbar from './navbar/navbar';
const App = (props) => {
console.log(props)
return(
<div>
<Navbar pathname={props.location.pathname}/>
{props.children}
</div>
)
}
export default App;
|
src/svg-icons/communication/swap-calls.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationSwapCalls = (props) => (
<SvgIcon {...props}>
<path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8... |
src/index.js | chipnin/React-TodoApp | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import './assets/sass/main.scss';
ReactDOM.render(
<App/>,
document.getElementById('root')
); |
dispatch/static/manager/src/js/pages/Videos/VideoPage.js | ubyssey/dispatch | import React from 'react'
import VideoEditor from '../../components/VideoEditor'
export default function VideoPage(props) {
return (
<VideoEditor
itemId={props.params.videoId}
goBack={props.router.goBack}
route={props.route} />
)
} |
src/svg-icons/social/sentiment-very-dissatisfied.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentVeryDissatisfied = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.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 8... |
src/utils/index.js | liuminosity/dage | import React from 'react';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
export function createConstants (...constants) {
return constants.reduce((acc, constant) => {
acc[constant] = constant;
return acc;
}, {});
}
export function createReducer (initialState, reducerMap) {
... |
packages/react/src/components/atoms/contact/Address/index.js | massgov/mayflower | /**
* Address module.
* @module @massds/mayflower-react/Address
* @requires module:@massds/mayflower-assets/scss/01-atoms/address
* @requires module:@massds/mayflower-assets/scss/01-atoms/decorative-link
*/
import React from 'react';
import PropTypes from 'prop-types';
import parse from 'react-html-parser';
import... |
client/components/charts/in-out-chart.js | ZeHiro/kresus | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import c3 from 'c3';
import { get } from '../../store';
import { translate as $t, round2, getWellsColors } from '../../helpers';
import ChartComponent from './chart-base';
import DisplayIf from '../ui/display-if';
im... |
tia/project/project/static/scripts/jsx/index.js | JakubNvk/school | import React from 'react';
import ReactDOM from 'react-dom';
import ExpeditionsList from './ExpeditionsList'
import Profile from './Profile'
import Dashboard from './Dashboard'
import CreateExpedition from './CreateExpedition'
import EditProfile from './EditProfile'
var path = window.location.pathname;
if (path == '/... |
src/SettingsItemNotifications/index.js | christianalfoni/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import SettingsItem from '../SettingsItem';
import Spacer from '../Spacer';
import ToggleButtonWithLabel from '../ToggleButtonWithLabel';
import Typography from '../Typography';
import Wrapper from '../Wrapper';
import styles from './styles.css';
class Se... |
src/components/App.js | rjbernaldo/lines | import React, { Component } from 'react';
import { Switch, Route } from 'react-router-dom';
import GApp from 'grommet/components/App';
import GBox from 'grommet/components/Box';
import GSplit from 'grommet/components/Split';
import CHome from '../containers/CHome';
import CSidebar from '../containers/CSidebar';
cons... |
client/components/player-component.js | DonPage/TelePlay | import React from 'react';
class Player extends React.Component {
render() {
return <div id="player"></div>;
}
}
// Export dependencies like this:
export default Player;
|
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js | mitchellporter/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
import ActorClient from 'utils/ActorClient';
import { Styles, FlatButton } from 'material-ui';
import { KeyCodes } from 'constants/ActorAppConstant... |
react+redux/src/js/compont/header.js | fruitGirl/mm | /**
* Created by Administrator on 2017/8/15 0015.
*/
import React from 'react';
const Header = ({name,onClick}) => {
return(
<nav className="navHeader">
<div className="headerLeft left" onClick={onClick}>
<span className="iconfont icon-fanhui iconSm colorGrey"></span>... |
public/js/cat_source/es6/components/analyze/ChunkAnalyze.js | riccio82/MateCat | import React from 'react'
import {TransitionGroup, CSSTransition} from 'react-transition-group'
import ChunkAnalyzeHeader from './ChunkAnalyzeHeader'
import ChunkAnalyzeFile from './ChunkAnalyzeFile'
class ChunkAnalyze extends React.Component {
constructor(props) {
super(props)
this.state = {
showFile... |
12-Service description & Metadata/admin-on-rest/UI/src/index.js | vulcainjs/vulcain-samples | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/containers/About/About.js | zerkedev/zerke-app | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import { injectIntl, intlShape } from 'react-intl';
import { ZerkeIcon } from '../../components/Icons';
import { Activity } from '../../containers/Activity';
import {MarkdownElement} from '../../components/MarkdownElement';
import readM... |
Server/app/assets/javascripts/components/ProfileComponent.js | codemeow5/Carnival | import React from 'react';
/**
* this.props.menu = [
* {title: 'Account Settings', icon: 'settings', link: '#/account_settings', active: true}
* ];
*/
export var ProfileCardComponent = React.createClass({
render: function(){
let menu = [];
this.props.menu.forEach(function(item, i... |
node_modules/react-bootstrap/es/ModalHeader.js | superKaigon/TheCave | 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 ... |
docs/src/NotFoundPage.js | johanneshilden/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const NotFoundPage = React.createClass({
render() {
return (
<div>
<NavMain activePage='' />
<PageHeader
title='404'
subT... |
src/layouts/CoreLayout.js | wali-s/react-redux-starter-kit | import React from 'react';
import 'styles/core.scss';
export default class CoreLayout extends React.Component {
static propTypes = {
children : React.PropTypes.element
}
constructor () {
super();
}
render () {
return (
<div className='page-container'>
<div className='view-containe... |
src/web/forms/editor/__mocks__/DraggableFieldEditor.js | asha-nepal/AshaFusionCross | /**
* Copyright 2018 Yuichiro Tsuchiya
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
src/components/streams/StreamDetails.js | zebras-filming-videos/streamr-web | import React from 'react'
import UserCardContainer from '../users/UserCardContainer'
import VoteButtonContainer from './VoteButtonContainer'
export default ({
stream = {},
topic
}) => (
<div className='stream-details'>
<div className='basic-info'>
<h1>{stream.title}</h1> {topic ? <h4>{topic.name}</h4>... |
src/app/components/market/SearchMarketItem.js | maullerz/eve-react | import React, { Component } from 'react';
import Autosuggest from 'react-autosuggest';
import { connect } from 'react-redux';
import { searchItem, addItem, resetSearch } from '../../actions/marketActions';
import { debounce } from 'lodash';
import Helper from '../../helpers';
const getSuggestionValue = suggestion => ... |
js/components/pages/NotFound.react.js | antonybritto/React-Kit | import React, { Component } from 'react';
import { Link } from 'react-router';
class NotFound extends Component {
render() {
return (
<article>
<h1>Page not found.</h1>
<Link to="/" className="btn">Home</Link>
</article>
);
}
}
export default NotFound;
|
src/components/common/svg-icons/communication/call-merge.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMerge = (props) => (
<SvgIcon {...props}>
<path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/>
</SvgIcon>
);
CommunicationCallMerge... |
nCoda-win32-x64/resources/app/js/react/structure_view.js | nCoda/Windows | // -*- coding: utf-8 -*-
// ------------------------------------------------------------------------------------------------
// Program Name: Julius
// Program Description: User interface for the nCoda music notation editor.
//
// Filename: js/react/structure_view.js
// Purpose: ... |
src/baseModalProvider.js | myaskevich/react-redux-modal-provider | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import eventEmitter from './eventEmitter';
import { DELAY_BEFORE_REMOVE_MSEC } from './constants';
export default class BaseModalProvider extends Component {
componentWillMount() {
eventEmitter.on('showModal', (args) => this.props.sho... |
src/App.js | spearkkk/spearkkk.github.io | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/... |
demo/src/Users.js | sidferreira/aor-firebase-client | import React from 'react';
import { List, Datagrid, EmailField, TextField } from 'admin-on-rest';
export const UserList = (props) => (
<List title="All users" {...props}>
<Datagrid>
<TextField source="id" />
<TextField source="name" />
<TextField source="username" />
... |
app/client/src/views/TableInfo.js | lealhugui/schema-analyser | import React, { Component } from 'react';
import JsonApiReq from '../Requests';
import {
API_URL,
addLogoAnimation,
removeLogoAnimation
} from '../constants';
import { TableCard } from './Cards';
import './TableInfo.css';
class TableInfo extends Component {
constructor(props){
super(props);
this.state = {t... |
docs/src/app/components/pages/customization/Styles.js | ArcanisCz/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../CodeExample';
import MarkdownElement from '../../MarkdownElement';
import stylesText from './styles.md';
import stylesOverridingInlineText from './styles-overriding-inline.md';
import StylesOverridingInlineExample from ... |
src/components/waste-water/sidebar-info/index.js | impact-initiatives/reach-jor-zaatari-webmap | import React from 'react';
import styles from '../../../styles/index.js';
import * as language from '../../../constants/languages';
import messages from '../../../translations/waste-water.js';
import Language from '../../common/info/language.js';
import About from '../../common/info/about.js';
// import Download from '... |
src/components/display_RFP_list.js | santhoshml/Bookbild-UI | import React, { Component } from 'react';
import { connect } from 'react-redux';
import DataGrid from './data_grid_example';
import cUtils from '../utils/common_utils';
import Dropdown from 'react-dropdown'
import formatCurrency from 'format-currency';
import constants from '../utils/constants';
import {Link} from 'rea... |
packages/react-error-overlay/src/containers/StackFrame.js | 0xaio/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React, { Component } from 'react';
import CodeBlock from './StackFrameCodeBlock';
import { getPrettyURL } from '../ut... |
docs/src/app/components/pages/components/IconButton/ExampleSize.js | kittyjumbalaya/material-components-web | import React from 'react';
import IconButton from 'material-ui/IconButton';
import ActionHome from 'material-ui/svg-icons/action/home';
const styles = {
smallIcon: {
width: 36,
height: 36,
},
mediumIcon: {
width: 48,
height: 48,
},
largeIcon: {
width: 60,
height: 60,
},
small: {
... |
src/svg-icons/editor/border-outer.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderOuter = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v2h2V7zm0 4h-2v2h2v-2zm4 0h-2v2h2v-2zM3 3v18h18V3H3zm16 16H5V5h14v14zm-6-4h-2v2h2v-2zm-4-4H7v2h2v-2z"/>
</SvgIcon>
);
EditorBorderOuter =... |
mlflow/server/js/src/experiment-tracking/components/ExperimentListView.js | mlflow/mlflow | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
EditOutlined,
LeftSquareFilled,
RightSquareFilled,
PlusSquareFilled,
} from '@ant-design/icons';
import { Tree, Input, Typography } from '@databricks/design-system';
import { Link } from 'react-router-dom';
import './Experime... |
mealbotui/src/js/components/CustomMenu.js | qjflores/mealbot | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
class CustomMenu extends Component {
constructor(props, context) {
super(props, context);
this.onChange = e => this.setState({ value: e.target.value });
this.state = { value: '' };
}
focusNext() {
const input = ReactD... |
client/components/bundle.js | mickael-kerjean/nuage | // taken from https://reacttraining.com/react-router/web/guides/code-splitting
import React from 'react';
import Path from 'path';
import load from "little-loader";
export class Bundle extends React.Component {
state = { mod: null };
componentDidMount() {
this.load(this.props)
}
componentWill... |
app/javascript/mastodon/components/modal_root.js | MitarashiDango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import 'wicg-inert';
import { createBrowserHistory } from 'history';
import { multiply } from 'color-blend';
export default class ModalRoot extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
... |
src/jsx-render-engine/strategy/react/withInitialProps.js | yeojz/metalsmith-react-templates | import React from 'react';
import InitialState from './InitialState';
function withInitialProps(Component) {
function PropsProvider(props) {
return (
<div className='withInitialProps'>
<Component {...props} />
<InitialState {...props} />
</div>
);
}
return PropsProvider;
}
... |
docs/src/app/components/pages/components/List/Page.js | pomerantsev/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import listReadmeText from './README';
import listExampleSimpleCode from '!raw!.... |
blueocean-material-icons/src/js/components/svg-icons/image/rotate-left.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageRotateLeft = (props) => (
<SvgIcon {...props}>
<path d="M7.11 8.53L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47zm1.01 5.32c1.16.9 2.51 1.... |
src/components/ActivityDescriptor.js | scolab/Exploding-Dots-PIXI | import React from 'react';
import PropTypes from 'prop-types';
const ActivityDescriptor = (props) => {
return (
<div
style={{
clear: 'right',
textAlign: 'center',
}}
>
{props.children}
</div>
);
};
ActivityDescriptor.propTypes = {
children: PropTypes.node,
};
expor... |
storybook/config.js | developer-mstdn18/mstdn18 | import { configure, setAddon } from '@kadira/storybook';
import IntlAddon from 'react-storybook-addon-intl';
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import '../app/assets/stylesheets/compone... |
app/javascript/mastodon/components/status.js | corzntin/mastodon | 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... |
es/components/viewer2d/scene.js | dearkaran/react-planner | var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err;... |
tools/public-components.js | kwnccc/react-bootstrap | import React from 'react';
import * as index from '../src/index';
let components = [];
Object.keys(index).forEach(function (item) {
if (index[item] instanceof React.Component.constructor) {
components.push(item);
}
});
export default components;
|
src/components/Breadcrumbs.js | swapnilabnave/swapnilabnave.github.io | import React from 'react';
import PropTypes from 'prop-types';
import { Route, Link } from 'react-router-dom';
import Interactive from 'react-interactive';
import s from '../styles/style';
|
src/pages/404.js | codeformuenster/weihnachtsmarkt | import React from 'react'
import Layout from '../components/layout'
const NotFoundPage = () => (
<Layout>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</Layout>
)
export default NotFoundPage
|
src/components/Dashboard/LogOut.js | bibleexchange/be-front-new | import React from 'react';
import { Link } from 'react-router';
import {
createFragmentContainer,
graphql,
} from 'react-relay/compat';
class LogOut extends React.Component {
componentWillMount(){
this.props.handleLogout('/me')
}
render() {
return (null)
}
}
export default createFragmentContai... |
src/routes/dashboardPages/finances/index.js | happyboy171/Feeding-Fish-View- | import React from 'react';
import Finances from './Finances';
export default {
path: '/finances',
action() {
return <Finances />;
}
};
|
src/examples/card.js | JiaoJian1221/react-mdc-web | import React from 'react';
import {
Button,
Card, CardHeader, CardText, CardMedia, CardActions, CardTitle, CardSubtitle,
} from '../components'
export class CardTest extends React.Component {
render() {
return (
<section style={{display: 'flex', flexDirection: 'column', flex: '1 1 auto'}}>
<Car... |
frontend/src/index.js | kevto/cssd2webapp | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/svg-icons/image/tune.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTune = (props) => (
<SvgIcon {...props}>
<path d="M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"/>
</SvgIcon>
);
ImageTune = pure... |
app/javascript/mastodon/features/reblogs/index.js | Kirishima21/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchReblogs ... |
src/Native/NativeOverlayAlignment.js | infinitered/reactotron | import React from 'react'
import PropTypes from 'prop-types'
import NativeOverlayAlignmentButton from './NativeOverlayAlignmentButton'
const Styles = {
container: {},
row: {
display: 'flex',
flexDirection: 'row'
}
}
const NativeOverlayAlignment = props => {
const { onChange, justifyContent, alignItems... |
app/javascript/flavours/glitch/features/blocks/index.js | glitch-soc/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import PropTypes from 'prop-types';
import LoadingIndicator from 'flavours/glitch/components/loading_indicator';
import ScrollableList from '../../components/s... |
src/pages/ShoutemUI.js | marktani/react-native-express-1 | import React from 'react'
import markdown from 'markdown-in-js'
import markdownOptions from '../utils/MarkdownOptions'
import DefaultPage from './DefaultPage'
import { WebPlayer, GithubRepositoryLink } from '../components'
const code = `import React, { Component } from 'react'
import { AppRegistry, ScrollView } from ... |
react-youtube-adaptive-loading/src/components/Rating/Rating.js | GoogleChromeLabs/adaptive-loading | import React from 'react';
import './Rating.scss';
import {Icon, Progress} from "semantic-ui-react";
import {getShortNumberString} from '../../services/number/number-format';
export function Rating(props) {
let rating = null;
let likeCount = props.likeCount !== 0 ? props.likeCount : null;
let dislikeCount = null... |
src/components/footer/footer.js | JohannBillar/Quality-Link | import React from 'react';
import Link from 'gatsby-link';
import { rhythm } from '../../utils/typography';
import './footer.css';
const container = {
margin: `0 auto`,
maxWidth: 960,
padding: `${rhythm(1)} ${rhythm(3 / 4)}`,
paddingTop: 0
};
const Footer = () => (
<footer className="footer">
<section s... |
ajax/libs/react-select/1.0.0-rc.8/react-select.es.js | tholu/cdnjs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import AutosizeInput from 'react-input-autosize';
import classNames from 'classnames';
function arrowRenderer(_ref) {
var onMouseDown = _ref.onMouseDown;
return React.createElement('span', {
className: ... |
src/svg-icons/action/settings-power.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsPower = (props) => (
<SvgIcon {...props}>
<path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-... |
src/svg-icons/communication/email.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationEmail = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
CommunicationEmai... |
src/svg-icons/action/card-giftcard.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCardGiftcard = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H... |
app/javascript/mastodon/features/ui/util/react_router_helpers.js | pso2club/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import ColumnLoading from '../components/column_loading';
import BundleColumnError from '../components/bundle_column_error';
import BundleContainer from '../containers/bundle_container';
// Small wrapper t... |
src/components/GlobalFooter/index.js | ascrutae/sky-walking-ui | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
TodoWonder/js/TaskRow.js | lintonye/react-native-diary | /**
* @flow
*/
import React from 'react'
import {
View,
Text,
Image,
StyleSheet,
TouchableOpacity,
} from 'react-native'
class TaskRow extends React.Component {
render() {
return (
<TouchableOpacity onPress={this._editTask.bind(this)}>
<View style={styles.row}>
<Image source=... |
components/Dropdown.js | Ineigo/react-library-components | import React from 'react';
class Dropdown extends React.Component {
constructor(props) {
super(props);
this.state = { isOpened: props.isOpened || false };
}
toogleState = () => this.setState({ isOpened: !this.state.isOpened });
render() {
let dropdownText = '';
if (thi... |
src/components/common/modals/Modal.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports
*/
import React from 'react';
// Required components
import Heading from '../typography/Heading';
/**
* Component
*/
class Modal extends React.Component {
//*** Component Lifecycle ***//
componentDidMount() {
// Component styles
require('./Modal.scss');
}
//*** Te... |
app/javascript/mastodon/features/reblogs/index.js | lynlynlynx/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchReblogs ... |
packages/material-ui/src/Snackbar/Snackbar.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import EventListener from 'react-event-listener';
import { polyfill } from 'react-lifecycles-compat';
import withStyles from '../styles/withStyles';
import { duration } from '../styles/transitions';
import ClickAwayListe... |
src/SplitToggle.js | bvasko/react-bootstrap | import React from 'react';
import DropdownToggle from './DropdownToggle';
export default class SplitToggle extends React.Component {
render() {
return (
<DropdownToggle
{...this.props}
useAnchor={false}
noCaret={false}
/>
);
}
}
SplitToggle.defaultProps = DropdownToggle... |
src/components/Empty/Empty.js | pmg1989/lms_mobile | import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
import { Icon } from 'components'
import styles from './Empty.less'
const Empty = ({ type, className, children }) => {
return (
<div className={classnames(styles.empty_box, className || '')}>
{type === 'nomal' ... |
do-over/blueprints/dumb/files/__root__/components/__name__/__name__.js | saem/hairpiece | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
frontend/app/components/SearchDialect/SearchDialectContainer.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import SearchDialectPresentation from 'components/SearchDialect/SearchDialectPresentation'
import SearchDialectData from 'components/SearchDialect/SearchDialectData'
/**
* @summary SearchDialectContainer
* @version 1.0.1
* @component
*
* @param {object}... |
src/app/Todo/TodoContainer.js | harsh376/Hector | import React from 'react';
import Button from 'react-bootstrap/lib/Button';
import { connect } from 'react-redux';
import ItemList from './components/ItemList/ItemList';
import {
fetchItems,
deleteItem,
addItem,
updateItem,
} from './actions/actionCreators';
export class TodoContainer extends React.Component ... |
docs/src/examples/modules/Sidebar/Usage/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const SidebarUsageExamples = () => (
<ExampleSection title='Usage'>
<ComponentExample
title='Callbacks'
description=... |
src/svg-icons/action/room.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRoom = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.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.5z... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.