path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
packages/logos/src/ubuntu.js | yldio/joyent-portal | import React from 'react';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
colors = {},
...rest
}) => (
<svg
id="svg4300"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 42 42"
{...rest}
>
<path
fill={calcFill({ fill, disabled, ligh... |
src/routes/error/index.js | BankaiMikeH/HackWSU2017_AirRands | /**
* 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 ErrorPage from './Err... |
lib/Loading/stories/Loading.stories.js | folio-org/stripes-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import withReadme from 'storybook-readme/with-readme';
import Readme from '../readme.md';
import Loading from '../Loading';
import LoadingView from '../LoadingView';
import LoadingPane from './LoadingPane.story';
storiesOf('Loading', module)
.a... |
app/javascript/mastodon/features/blocks/index.js | dwango/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import PropType... |
src/demos/building-a-geospatial-app/2-scatterplot-overlay/src/controls.js | uber-common/vis-academy | import React, { Component } from 'react';
import { mapStylePicker, layerControl } from './style';
export const HEXAGON_CONTROLS = {
showHexagon: {
displayName: 'Show Hexagon',
type: 'boolean',
value: true
},
radius: {
displayName: 'Hexagon Radius',
type: 'range',
value: 250,
step: 50,... |
ki1st-xtqb/src/main/webapp/front/app/containers/AddTodo.js | chosenki/chosenki-2016 | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
}
dispatch(addTodo(input.v... |
frontend/src/Components/Filter/Builder/MinimumAvailabilityFilterBuilderRowValue.js | geogolem/Radarr | import React from 'react';
import translate from 'Utilities/String/translate';
import FilterBuilderRowValue from './FilterBuilderRowValue';
const protocols = [
{ id: 'announced', name: translate('Announced') },
{ id: 'inCinemas', name: translate('InCinemas') },
{ id: 'released', name: translate('Released') }
];
... |
public/app/src/components/Panel.js | wjwu/blog | import React from 'react';
import PropTypes from 'prop-types';
const Panel = props => {
const { header, children, footer } = props;
let headerElement,
footerElement;
if (header) {
if (typeof header === 'string') {
headerElement = (
<div className='panel-heading'>
<h3 className='pa... |
client/src/components/home/BurndownChartComponent.js | krzysztofkolek/github-bugtracker | 'use strict';
require('styles//BurndownChart.css');
import React from 'react';
import { connect } from "react-redux"
import {AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip} from 'Recharts';
const data = [
{name: '12-12-2016', uv: 4000, pv: 2400, amt: 2400},
{name: '13-12-2016', uv: 3000, pv: 1398... |
app/javascript/mastodon/features/ui/index.js | lynlynlynx/mastodon | import classNames from 'classnames';
import React from 'react';
import { HotKeys } from 'react-hotkeys';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { Redirect, withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import NotificationsContai... |
node_modules/antd/es/pagination/Pagination.js | ZSMingNB/react-news | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
examples/todos-flow/src/containers/AddTodo.js | jhwgnu/redux | // @flow
import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
import type { Dispatch } from '../types'
import type { Connector } from 'react-redux'
type Props = {
dispatch: Dispatch
};
const AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form o... |
src/components/Alexandria/components/PlayBar.js | dloa/react-alexandria-ux | import React from 'react';
export class PlayBarShadow extends React.Component {
render() {
return (
<div className="playbar-shadow">
<h2>
You need to pay the artist or pin the file/album in order to play this track !
</h2>
</div>
... |
packages/wix-style-react/src/ModalPreviewLayout/docs/examples/FullWidthContent.js | wix/wix-style-react | /* eslint-disable */
import React from 'react';
import ModalPreviewLayout from '../..';
import { Modal, Box, Button, TextButton, IconButton } from 'wix-style-react';
class FullWidthContentExample extends React.Component {
state = {
isModalOpened: false,
};
openModal() {
this.setState({ isModalOpened: ... |
ajax/libs/react-instantsearch/4.1.0-beta.2/Dom.js | tholu/cdnjs | /*! ReactInstantSearch 4.1.0-beta.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
demo/components/Copy.js | solid/solid-auth-client | // @flow
import React from 'react'
import auth from '../../src/'
export default class Copy extends React.Component<Object, Object> {
componentWillMount() {
auth.trackSession((session) =>
this.setState({ webId: session && session.webId })
)
}
render() {
const { webId } = this.state
return ... |
examples/react-native-vanilla/index.ios.js | jribeiro/storybook | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
// This is the default file as put down by RN
/* eslint-disable */
import React, { Component } from 'react';
import { AppRegistry, StyleSheet, Text, View } from 'react-native';
export default class ReactNativeVanilla extends Comp... |
app/scripts/app.js | transmute-industries/monarch-portal | import React from 'react'
import {render} from 'react-dom'
import {Router, hashHistory} from 'react-router'
import routes from './routes'
require('../styles/app.less')
if (process.env.NODE_ENV !== 'production') {
localStorage.debug = true
}
document.addEventListener('DOMContentLoaded', () => {
const root = docu... |
website/src/components/layout.js | explosion/thinc | import React from 'react'
import SEO from './seo'
import '../styles/base.sass'
const Layout = ({ title, description, className, children }) => (
<>
<SEO title={title} description={description} />
<main className={className}>{children}</main>
</>
)
export default Layout
|
src/views/grid.js | bulletcms/bullet-tracer | import React from 'react';
class Grid extends React.Component{
/**
* props:
* strict: boolean - no margins between columns
* array: boolean - should double grid at 4k
* vcenter: boolean - flexbox vertical center
* vstretch: boolean - flexbox vertical stretch
*/
render(){
const center... |
src/entypo/CreditCard.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--CreditCard';
let EntypoCreditCard = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M18,3H2C0.899,3,0,3.9,0,5v10c0,1.1,0.899,2,2,2h16c1.1,0,2-0.9,2-2V5C20,3.9,19.1,3,18,3z M18,1... |
examples/real-world/containers/Root.js | jstrimpel/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from '../store/configureStore';
import App from './App';
import UserPage from './UserPage';
import RepoPage from './RepoPage';
const store = configureStore();
export de... |
src/media/js/site/components/subnav.js | mozilla/marketplace-submission | import React from 'react';
export class Subnav extends React.Component {
render() {
return (
<nav className="page--subnav">
<ul>
{this.props.children}
</ul>
</nav>
);
}
}
|
src/components/background.js | prodigygod0209/prodigygod0209.github.io | import React from 'react';
import Helmet from 'react-helmet';
import Link from 'gatsby-link';
import styled from 'styled-components';
const Kai = styled.div`
&:before{
position: absolute;
content: "";
width: 0;
height: 0;
border-style: solid;
border-width: 0 100vh 100vh 0;
border-color: transparent t... |
static/src/components/islands/IslandShrooms.js | andribja/airhornbot | // @flow
// jscs:disable maximumLineLength
import React from 'react';
type Props = {
number: number,
paused: boolean
};
export default ({number, paused}: Props): React.Element => {
let className = 'island shrooms';
if (number) {
className += `-${number}`;
}
if (paused) {
className += ' paused';
... |
GitLab-LIGO-Display-Wall/src/DIsplay Wall/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | qwerjkl112/CMPEN482 | 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'));
|
app/views/Splash.js | AndryYu/ReadingGank | import React from 'react';
import { Dimensions,Animated } from 'react-native';
import store from 'react-native-simple-store';
import { registerApp } from 'react-native-wechat';
import AV from 'leancloud-storage';
import NavigationUtil from '../utils/NavigationUtil';
const maxHeight = Dimensions.get('window').height;
c... |
frontend/src/components/JobActionEvaluate/JobActionEvaluate.js | Wintermute1/hashi-ui | import React from 'react'
import { connect } from 'react-redux'
import { EVALUATE_JOB, JOB_HIDE_DIALOG } from '../../sagas/event'
class JobActionEvaluate extends React.Component {
handleSubmit = () => {
this.props.dispatch({ type: JOB_HIDE_DIALOG })
this.props.dispatch({ type: EVALUATE_JOB, payload: this.pr... |
src/app/checkbox.js | calvinterpstra/FTCResQCalculatorWebApp | import React from 'react';
import Checkbox from 'material-ui/Checkbox';
const styles = {
block: {
maxWidth: 250,
},
checkbox: {
marginBottom: 16,
},
};
const CheckboxExampleSimple = () => (
<div style={styles.block}>
<Checkbox
label="test"
style={styles.checkbox}
/>
<Checkb... |
src/svg-icons/image/exposure.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposure = (props) => (
<SvgIcon {...props}>
<path d="M15 17v2h2v-2h2v-2h-2v-2h-2v2h-2v2h2zm5-15H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 5h6v2H5V5zm15 15H4L20 4v16z"/>
</... |
src/components/app.js | b-pmcg/ptravels | import Leaflet from 'leaflet';
import React from 'react';
import PtravelsMap from './ptravels-map';
/*Main react app*/
Leaflet.Icon.Default.imagePath =
'//cdnjs.cloudflare.com/ajax/libs/leaflet/1.2.0/images/'
const App = () => (
<div>
<PtravelsMap />
</div>
)
export default App
|
src/svg-icons/action/history.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHistory = (props) => (
<SvgIcon {...props}>
<path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ... |
src/parser/demonhunter/havoc/modules/spells/azeritetraits/ChaoticTransformation.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import Events from 'parser/core/Events';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import SpellUsable ... |
information/blendle-frontend-react-source/app/modules/coupon/components/CouponAuth.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'instances/i18n';
import FacebookConnectContainer from 'components/facebookConnect/FacebookConnectContainer';
import SignUpContainer from 'components/signUp/SignUpContainer';
import LoginContainer from 'components/login/LoginContai... |
frontend/App.js | honggzb/practise_node | import React from 'react';
import Header from './component/Header';
import Footer from './component/Footer';
import TopicList from './component/TopicList';
export default class App extends React.Component {
render() {
return (
<div className="container">
<Header />
{this.props.children ? th... |
src/containers/single_collection_product.js | b0ts/react-redux-sweetlightstudios-website | import React, { Component } from 'react';
import { connect } from 'react-redux'; // glue between react and redux
import Product from '../components/product';
class SingleCollectionProduct extends Component {
updateProduct = (product) => {
if (this.props.collectionProducts) {
// never modify this.props d... |
blueocean-material-icons/src/js/components/svg-icons/image/crop-landscape.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageCropLandscape = (props) => (
<SvgIcon {...props}>
<path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/>
</SvgIcon>
);
ImageCropLandscape.displayName = 'ImageCropLandscape';
ImageCropLan... |
src/auth/components/AddAccount.js | algernon/mad-tooter | // @flow
/* The Mad Tooter -- A Mastodon client
* Copyright (C) 2017 Gergely Nagy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your o... |
example/src/views/modal/components/info/info.js | TransferGo/react-subrouter | import React from 'react';
export default class extends React.Component{
render() {
return (
<div className="content">
Info Content
</div>
);
}
}
|
src/svg-icons/action/settings-power.js | rhaedes/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-... |
app/packs/src/components/collection_management/MySharedCollections.js | ComPlat/chemotion_ELN | import React from 'react';
import Tree from 'react-ui-tree';
import {Button, ButtonGroup, FormControl, Modal} from 'react-bootstrap';
import ManagingModalSharing from '../managing_actions/ManagingModalSharing';
import CollectionStore from '../stores/CollectionStore';
import CollectionActions from '../actions/Collection... |
react-life/src/App.js | CaMnter/front-end-life | 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/... |
src/components/EditSections/EditContactInfo/EditContactInfo.js | folio-org/ui-users | import React from 'react';
import {
FormattedMessage,
injectIntl,
} from 'react-intl';
import PropTypes from 'prop-types';
import { Field } from 'react-final-form';
import {
Select,
TextField,
Row,
Col,
Accordion,
Headline,
} from '@folio/stripes/components';
import { AddressEditList } from '@folio/stri... |
src/components/services/content/Services.js | GustavoKatel/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer, PropTypes as MobxPropTypes } from 'mobx-react';
import { Link } from 'react-router';
import { defineMessages, intlShape } from 'react-intl';
import Webview from './ServiceWebview';
import Appear from '../../ui/effects/Appe... |
src/icons/PhotoLibraryIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class PhotoLibraryIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M44 32V8c0-2.21-1.79-4-4-4H16c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4zm-22-8l4.0... |
src/ui/site/AppLayout.js | philiplopez/webappjourney | import React from 'react'
import Link from 'react-router/lib/Link'
import Header from "./Header"
import Footer from "./Footer"
export default class AppLayout extends React.Component {
render() {
return (
<div>
<Header />
<nav>
<ul>
<li>
<Link to="/">Home... |
packages/material-ui-icons/src/Shuffle.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04-3.13-3.13z" /></g>
, 'Shuffle');
|
src/components/common/svg-icons/content/drafts.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentDrafts = (props) => (
<SvgIcon {...props}>
<path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>... |
src/components/Search/Search.js | nikhilfusion/substitutionApp | import React, { Component } from 'react';
import SearchResultList from './SeachResultList';
import './Search.css';
class Search extends Component {
constructor(props) {
super(props);
this.state = {
randomState: '',
};
}
render() {
return (
<div className="searchPageContainer">
... |
src/screens/InicioScreen.js | Grilados/site | import React, { Component } from 'react';
import Header from '../components/Header';
import { MenuSimples } from '../components/Menus';
import { CardNoticias } from '../components/Cards';
import { Alert } from '../components/Alert';
import './css/InicioScreen.css';
const MENU_HEADER = [
'Início',
'Vídeos',
'Cont... |
client/src/components/Navbar/index.js | qasim/what-class-is-this | import React from 'react';
import githubLogo from './../../static/images/github-logo.svg';
import './style.css';
const Navbar = () => (
<div className="app__navbar">
<div className="navbar__container">
<div className="container__name">
<a href="/" title="What Class Is This??">logo</a>
</div>
... |
packages/mcs-lite-ui/src/StatusLight/StatusLight.js | MCS-Lite/mcs-lite | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
export const Svg = styled.svg`
width: 12px;
> * {
fill: ${props => props.theme.color[props.color]};
transition: fill cubic-bezier(0.47, 0, 0.75, 0.72) 0.3s;
}
`;
const StatusLight = props => (
<Svg ... |
client/modules/App/__tests__/App.spec.js | eantler/simmeme-client | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow, mount } from 'enzyme';
import { App } from '../App';
import styles from '../App.css';
import { intlShape } from 'react-intl';
import { intl } from '../../../util/react-intl-test-helper';
import { toggleAddPost } from '../App... |
docs/app/Examples/collections/Message/Variations/MessageExampleFloating.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleFloating = () => (
<Message floating>
Way to go!
</Message>
)
export default MessageExampleFloating
|
Albums/src/components/AlbumList.js | deepmehtait/React-Native-Albums | import React, { Component } from 'react';
import { ScrollView } from 'react-native';
import axios from 'axios';
import AlbumDetail from './AlbumDetail';
class AlbumList extends Component {
state = { albums: [] };
componentWillMount() {
console.log('inside componentWillMount');
axios.get('https://rallycod... |
src/components/const/selectableList.js | motion123/mbookmakerUI | /**
* Created by tomino on 17/03/06.
*/
import React from 'react';
import {List, ListItem,makeSelectable} from 'material-ui/List';
let Selectable = makeSelectable(List);
export default class SelectableList extends React.Component {
render() {
const {
onSelect,
selectIndex,
} = this... |
src/svg-icons/action/print.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPrint = (props) => (
<SvgIcon {...props}>
<path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"/>
</... |
docs/src/examples/modules/Checkbox/Types/CheckboxExampleShorthandElement.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Checkbox } from 'semantic-ui-react'
const CheckboxExampleShorthandElement = () => (
<Checkbox label={<label>Make my profile visible</label>} />
)
export default CheckboxExampleShorthandElement
|
client/util/requireAuth.js | rystecher/senior-design | import React from 'react';
import { connect } from 'react-redux';
export default function (ComposedComponent) {
class Authenticate extends React.Component {
componentWillMount() {
if (!this.props.isAuthenticated) {
this.context.router.push('/');
}
}
... |
src/index.js | Lukkub/Redux-ShopCartApp | import React from 'react';
import App from './containers/App';
import { combineReducers } from 'redux';
import { Provider } from 'react-redux';
import { createStore, renderDevTools } from './utils/devTools';
import * as reducers from './reducers';
const reducer = combineReducers(reducers);
const store = createS... |
src/components/EditHost.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import { get } from 'lodash';
import { FormattedMessage } from 'react-intl';
import withIntl from '../lib/withIntl';
import styled from 'styled-components';
import { Flex, Box } from '@rebass/grid';
import { Radio } from '@material-ui/core';
import CreateH... |
amartonline-ui/src/components/app/app.js | gruberchris/AmartOnline | import React, { Component } from 'react';
import { Grid } from 'react-bootstrap';
import { Route, Switch } from 'react-router-dom';
import axios from 'axios';
import Header from '../header/header';
import Home from '../home/home';
import Orders from '../orders/orders';
import ShoppingCart from '../shoppingCart/shopping... |
RNAPPDemo/ReactComponent/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | xuchengcheng/RNAPPDemo | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
app/javascript/mastodon/features/blocks/index.js | increments/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-4';
import Column from '../ui/componen... |
src/components/buttons/toggleDocProperties.js | DictumMortuum/dictum-dev | 'use strict';
import React from 'react';
import IconButton from 'material-ui/IconButton';
import Settings from 'material-ui/svg-icons/action/settings';
import { createSelector } from 'reselect';
import { connect } from 'react-redux';
import { Config } from '../../redux/actions';
class tpl extends React.Component {
... |
App/web/src/js/main.js | javierarmendariz/react-flux-material-design | import React from 'react';
import ReactDOM from 'react-dom';
import Scaffold from './views/scaffold/scaffold';
import injectTapEventPlugin from 'react-tap-event-plugin';
import AppCanvas from 'material-ui/lib/app-canvas';
injectTapEventPlugin();
ReactDOM.render(<AppCanvas><Scaffold /></AppCanvas>, document.getElementB... |
app/components/PostForm/ImageUploader.js | vlastoun/picture-uploader-crud | import React from 'react';
import PropTypes from 'prop-types';
import Script from 'react-load-script';
import RaisedButton from 'material-ui/RaisedButton';
const SCRIPT_URL = '//widget.cloudinary.com/global/all.js';
const buttonStyle = {
marginTop: '2em',
};
/* eslint-disable react/prefer-stateless-function */
/* es... |
src/pages/about.js | elliotschultz/gatsby-portfolio-test | import React from 'react'
import { Redirect } from 'react-router';
import Link from 'gatsby-link'
import styled, { keyframes } from 'styled-components'
import { GridProvider, Grid, Row, Col } from 'zooper-grid'
import * as theme from '../theme'
const AboutPage = () =>
<SiteWrapper>
<AboutWrap>
<Title>
... |
examples/IconSizes.js | mattBlackDesign/react-materialize | import React from 'react';
import Section from '../src/Section';
import Icon from '../src/Icon';
import Row from '../src/Row';
import Col from '../src/Col';
export default
<Section>
<Row className='center'>
<Col s={3}>
<Icon tiny>insert_chart</Icon>
<p>tiny</p>
</Col>
<Col s={3}>
<Icon ... |
webnn/src/App.js | lcgong/alchemy | 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" />
<h1 className="App-title">Welco... |
client/components/AboutProfile.js | LinearAtWorst/cogile | import React, { Component } from 'react';
class AboutProfile extends Component {
render() {
return (
<div className="col-md-3">
<h3 className="about-names">{this.props.name}</h3>
<div className="img-container"><img className="about-img" src={this.props.image}></img>
</div>
<... |
src/DropdownButton.js | adampickeral/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Dropdown from './Dropdown';
import NavDropdown from './NavDropdown';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
import omit from 'lodash/object/omit';
class Dropdown... |
webapp/app/components/CreateUser/Form/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Component form in create user page
//
import React from 'react';
import Username from 'containers/CreateUser/Form/Username';
import Email from 'containers/CreateUser/Form/Email';
import Password from 'containers/CreateUser/Form/Password';
import PasswordConfirmation from 'containers/CreateUser/Form/PasswordConfi... |
internals/templates/app.js | andyfrith/weather.goodapplemedia.com | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
src/svg-icons/image/brush.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrush = (props) => (
<SvgIcon {...props}>
<path d="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34c-.39-.39-1.02-.39-1.41 0L9 12.25... |
containers/App.js | hutsi/bookkeeping | import React from 'react';
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import { blue } from '@material-ui/core/colors';
import Paper from '@material-ui/core/Paper';
import Header from '../components/Header';
const theme = createMuiTheme({
palette: {
primary: blue,
},
typogra... |
src/examples/example-mouseover/example-mouseover.js | smollweide/react-speed-dial | import React from 'react';
import Avatar from 'material-ui/Avatar';
import { blue500 } from 'material-ui/styles/colors';
import IconEdit from 'material-ui/svg-icons/image/edit';
import { SpeedDial, BubbleList, BubbleListItem } from '../../speed-dial';
import fakerImage from '../faker-image';
const list = {
items: [
... |
app/javascript/mastodon/features/video/index.js | pinfort/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { is } from 'immutable';
import { throttle, debounce } from 'lodash';
import classNames from 'classnames';
import { isFullscreen, requestFullscreen, exitFullscreen } from '../... |
webpack/move_to_pf/LoadingState/LoadingState.js | tstrachota/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Spinner } from 'patternfly-react';
import './LoadingState.scss';
class LoadingState extends Component {
constructor(props) {
super(props);
this.state = {
render: false,
};
}
componentDidMount() {
setTime... |
app/javascript/mastodon/features/account_gallery/index.js | kazh98/social.arnip.org | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from 'mastodon/actions/accounts';
import { expandAccountMediaTimeline } from '../../actions/timelines';
import LoadingIndicator from '... |
packages/recon-engine/src/engine/__tests__/__fixtures__/basic-app/src/button.js | recon-js/recon | /* eslint-disable */
import React from 'react';
export default function Button({theme, children}) {
return <button color={theme}>{children}</button>;
}
|
react/Text/Text.sketch.js | seekinternational/seek-asia-style-guide | import React from 'react';
import mapKeys from 'lodash/mapKeys';
import Text from './Text';
export const text = {
'Screaming': <Text screaming>Screaming text</Text>,
'Yelling': <Text yelling>Yelling text</Text>,
'Shouting': <Text shouting>Shouting text</Text>,
'Waving': <Text waving>Waving text</Text>,
'Whis... |
docs/app/Examples/elements/Header/Types/HeaderExampleContent.js | koenvg/Semantic-UI-React | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExampleContent = () => (
<div>
<Header size='huge'>Huge Header</Header>
<Header size='large'>Large Header</Header>
<Header size='medium'>Medium Header</Header>
<Header size='small'>Small Header</Header>
<Header size=... |
src/client/components/pages/entities/title.js | bookbrainz/bookbrainz-site | /*
* Copyright (C) 2017 Ben Ockmore
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distr... |
modules/Link.js | djkirby/react-router | import React from 'react'
import invariant from 'invariant'
import { routerShape } from './PropTypes'
import { ContextSubscriber } from './ContextUtils'
const { bool, object, string, func, oneOfType } = React.PropTypes
function isLeftClickEvent(event) {
return event.button === 0
}
function isModifiedEvent(event) {... |
src/components/common/svg-icons/content/gesture.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentGesture = (props) => (
<SvgIcon {...props}>
<path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.... |
src/components/menus/MainMenu.js | openvcash/vcash-electron | import React from 'react'
import { translate } from 'react-i18next'
import { withRouter } from 'react-router-dom'
import { action, extendObservable, reaction } from 'mobx'
import { inject, observer } from 'mobx-react'
/** Ant Design */
import Menu from 'antd/lib/menu'
@translate(['common'])
@inject('connections')
@ob... |
src/containers/DevTools/DevTools.js | UncleYee/crm-ui | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor /... |
src/components/library/managed/books/LibraryBooks.js | great-design-and-systems/cataloguing-app | import { FontAwesome, ResponsiveButton } from '../../../common/';
import {
LABEL_AUTHOR,
LABEL_EDITION,
LABEL_LIBRARY_BOOKS,
LABEL_PUBLISHER,
LABEL_SUB_TITLE,
LABEL_TITLE
} from '../../../../labels/';
import { Book } from '../../../../api/books/';
import PropTypes from 'prop-types';
import React from 'reac... |
packages/@lyra/vision/src/LyraVision.js | VegaPublish/vega-studio | import React from 'react'
import lyraClient from 'part:@lyra/base/client'
import Button from 'part:@lyra/components/buttons/default'
import schema from 'part:@lyra/base/schema?'
import Select from './lyra/Select'
import Vision from './Vision'
import visionGui from './css/visionGui.css'
import jsonInspector from './css... |
docs/src/pages/components/accordion/DetailedAccordion.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import clsx from 'clsx';
import Accordion from '@material-ui/core/Accordion';
import AccordionDetails from '@material-ui/core/AccordionDetails';
import AccordionSummary from '@material-ui/core/AccordionSummary';
import AccordionActions fr... |
app/containers/TransactionsPage.js | soosgit/vessel | // @flow
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Redirect } from 'react-router';
import { connect } from 'react-redux';
import { Dimmer, Header, Loader, Segment } from 'semantic-ui-react';
import MenuBar from './MenuBar';
import Balances from '../components/Transa... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js | Technaesthetic/ua-tools | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
src/client/components/Home.js | josh--newman/blog | import React from 'react';
import { Link } from 'react-router';
import { SideBar } from './Shared';
import MainContent from './MainContent';
const links = [
<Link key='about' to='/'>About this blog</Link>,
<Link key='12ppm' to='/'>12PPM challenge</Link>,
<Link key='admin' to='/signin'>Sign in</Link>
];
const st... |
src/scripts/components/control-panel.js | brandly/ss15-queso | /** @jsx REACT.DOM */
import React from 'react';
import PianoKeyboard from './piano-keyboard';
import MicRecorder from './mic-recorder';
import SynthShape from './synth-shape';
export default React.createClass({
render: function () {
const trackType = this.props.track ? this.props.track.type : null;
const i... |
docs/src/sections/PopoverSection.js | lzcmaro/react-ratchet | import React from 'react';
import Samples from '../Samples'
import ReactPlayground from '../ReactPlayground'
export default function PopoverSection() {
return (
<div>
{/* Popovers */}
<ReactPlayground id="popovers" title='Popovers' desc='Popovers are designed to only fire from title bars. Set the value of th... |
src/entry.js | doeg/skeleton | import React from 'react';
import ReactDOMServer from 'react-dom/server';
import Root from './components/Root.jsx';
// Client render (optional):
if (typeof document !== 'undefined') {
// Client render code goes here...
}
// Exported static site renderer.
// @param locals.path - The path currently being rendered
// ... |
src/components/UIShell/HeaderNavigation.js | joshblack/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.
*/
import { settings } from 'carbon-components';
import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
imp... |
examples/react-client/src/routes/shows/ShowRoute.js | mobx-little-router/mobx-little-router | import React from 'react'
import { inject, observer } from 'mobx-react'
import styled from 'styled-components'
import { Link } from 'mobx-little-router-react'
import Modal from '../../components/Modal'
const ShowRoute = ({ route: { params, query }, className, ShowsStore }) => {
let prevShow, nextShow
if (ShowsSt... |
app/javascript/mastodon/components/status.js | 8796n/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 MediaGallery from... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.