path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/image/crop-5-4.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop54 = (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> ); ImageCrop54 = pure(ImageCrop54); ImageCro...
src/components/Recommended/Recommended.js
wolfpilot/Traveller
import React, { Component } from 'react'; import { render } from 'react-dom'; import { RecommendedList } from './'; const Recommended = ({destinations}) => { return ( <div className="recommended-list"> <h2 className="subheading"> Recommended </h2> <RecommendedList destinations={destinations} /> ...
docs/app/Examples/views/Item/Content/ItemExampleRatings.js
mohammed88/Semantic-UI-React
import React from 'react' import { Icon, Item } from 'semantic-ui-react' const ItemExampleRatings = () => ( <Item.Group> <Item> <Item.Image size='tiny' src='http://semantic-ui.com/images/avatar/large/jenny.jpg' /> <Item.Content verticalAlign='middle'> <Item.Header> <Icon name='like...
src/app/components/auth/groups/createGroupDialog.js
rokbar/vivdchat
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { FlatButton, TextField, Dialog, Paper } from 'material-ui'; import { connect } from 'react-redux'; import { createNewGroup } from '../../../actions'; class CreateGroupDialog extends Component { constructor(props) { s...
node_modules/react-router/es/RouterContext.js
Kgiberson/welp
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _typeof = typeof Symbol === "function" && typeof Symbol.i...
packages/icon-builder/tpl/SvgIcon.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '{{{ muiRequireStmt }}}'; let {{className}} = (props) => ( <SvgIcon {...props}> {{{paths}}} </SvgIcon> ); {{className}} = pure({{className}}); {{className}}.displayName = '{{className}}'; {{className}}.muiName = 'SvgIcon'; expor...
packages/es-components/src/components/navigation/useNavigation.js
TWExchangeSolutions/es-components
import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; const VerticalNavigation = styled.nav` background-color: ${props => props.theme.colors.white}; box-shadow: 2px 2px 5px ${props => props.theme.colors.gray6}; ul { list-style: none; margin: 0; paddin...
src/pages/Exec/ExecCreateAnnouncement.js
BoilerMake/frontend
import React, { Component } from 'react'; import { Form } from 'semantic-ui-react' class ExecCreateAnnouncement extends Component { constructor(props) { super(props); this.state = {value: ''}; this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bi...
frontend/scripts/components/common/OptionsPicker.js
jakubzloczewski/react-exercise
import React from 'react'; import _ from 'lodash'; import Button from './Button.js'; class OptionPicker extends React.Component { constructor(props) { super(props); this.state = {selectedOption: _.first(this.props.options)}; } render() { const {options} = this.props; retu...
definitions/npm/react-addons-css-transition-group_v15.x.x/test_react-addons-css-transition-group.js
doberkofler/flow-typed
// @flow import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; const shouldWork = () => ( <div> <ReactCSSTransitionGroup transitionName="div" transitionEnterTimeout={500} transitionLeaveTimeout={300}> <div /> </ReactCSSTransitionGroup> ...
reactviews/src/customRoutes.js
yvesago/dioc
import React from 'react'; import { Route } from 'react-router-dom'; import authCallBack from './authCallback'; export default [ <Route exact path="/callback" component={authCallBack} noLayout />, ];
src/components/pages/client/thank-you.js
jackblandin/react_express_template
import React from 'react'; export default class ClientThankYou extends React.Component { render() { return ( <div> <h3>Thank You</h3> <p>Thank you for your interest in Panoskin. Stay tuned. Someone will be reaching out to you shortly!</p> </div> ); } }
Libraries/Components/Keyboard/Keyboard.js
aaron-goshine/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/components/withViewport.js
mcfa77y/isla_de_pescua
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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, { Component } from 'react'; // eslint-disabl...
packages/material-ui-icons/src/QuestionAnswer.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z" /></g> , 'QuestionAnswer');
src/components/common/Header.js
msalem07/LectureRecorder
import React from 'react'; import { Text, View } from 'react-native'; export function Header(props) { const { textStyle, viewStyle } = styles; return ( <View style={viewStyle}> <Text style={textStyle}>{props.headerText}</Text> </View> ); } const styles = { viewStyle: { ...
src/components/App.js
oshalygin/react-slingshot
import React from 'react'; import PropTypes from 'prop-types'; import { Link, IndexLink } from 'react-router'; // This is a class-based component because the current // version of hot reloading won't hot reload a stateless // component at the top-level. class App extends React.Component { render() { return ( ...
src/components/listen/components/playButton.js
cannoneyed/tmm-glare
import React from 'react' import classNames from 'classnames' import { PlayIconSVG, PauseIconSVG } from './icons' let { PropTypes, Component } = React class PlayButton extends Component { shouldComponentUpdate(nextProps) { let { playing, seeking } = this.props return ( playing !== nextProps.playing ||...
src/js/components/App/Dashboard.js
scaphold-io/graphql-subscriptions-realtime-starter-kit
import React from 'react'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import {Row, Col} from 'react-bootstrap'; let LineChart = require("react-chartjs").Line; class Dashboard extends React.Component { constructor(props) { super(props); this.state = { totalUsers: 0, to...
src/components/Parent/index.js
dadongfang/react_redux_webpack_es6_qiniu
import React from 'react' import { connect } from 'react-redux' import { renderRoutes } from 'react-router-config' class Parent extends React.Component { constructor(props, context) { super(props, context) } componentWillMount() { const { route, history, location } = this.props if (locati...
src/routes/postsGenerator/index.js
goldylucks/adamgoldman.me
import React from 'react' import axios from 'axios' import PostsGenerator from './PostsGenerator' import Layout from '../../components/Layout' const title = 'Posts Generator' async function action({ params, path }) { const { data } = await axios.get(`/api/posts/${params.post}`) return { chunks: ['postsGener...
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js
9618211/react-router
import React from 'react'; class Announcements extends React.Component { render () { return ( <div> <h3>Announcements</h3> {this.props.children || <p>Choose an announcement from the sidebar.</p>} </div> ); } } export default Announcements;
src/svg-icons/image/flare.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlare = (props) => ( <SvgIcon {...props}> <path d="M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-...
13. ReactJS Fundamentals - Feb 2019/05. Higher Order Components/Warning/warning/src/components/RegisterForm/RegisterForm.js
zrusev/SoftwareUniversity2016
import React, { Component } from 'react'; class RegisterForm extends Component { render() { return ( <div> <header> <span className="title">Register</span> </header> <form> Username: <input type="text" /><br...
app/containers/App/index.js
prashantpawar/bitcoin-streamer
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
src/js/all/stories/TypographyLarge.js
grommet/grommet
import React from 'react'; import { Grommet, Box, Heading, Paragraph, Text } from 'grommet'; import { grommet } from 'grommet/themes'; const paragraphFiller = ` Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. `; export const Large = () => ( ...
src/pages/404.js
akabekobeko/akabeko.me
import React from 'react' import PropTypes from 'prop-types' import { graphql } from 'gatsby' import Header from '../components/header.js' const NotFoundPage = ({ data }) => ( <div className="page"> <div className="container"> <Header siteTitle={data.site.siteMetadata.title} siteSubTitle={d...
src/Kanban/index.js
edulan/react-virtual-kanban
import React from 'react'; import HTML5Backend from 'react-dnd-html5-backend'; import withScrolling, { createHorizontalStrength } from 'react-dnd-scrollzone'; import { Grid } from 'react-virtualized'; import scrollbarSize from 'dom-helpers/util/scrollbarSize'; import { updateLists, findListIndex, findItemIndex, ...
test/helpers/setupTest.js
ratchagarn/react-redux-playground
/** * -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= * Helper - setup test * -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */ import React from 'react'; import { Provider } from 'react-redux'; import { shallow } from 'enzyme'; /** * Setup component for test. * * @param {bject} store ...
src/index.js
TotoroLiu0131/react-webApp
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter, Route } from "react-router-dom"; import 'semantic-ui-css/semantic.min.css' ; import { createStore, applyMiddleware } from "redux"; import { Provider } from "react-redux" ; import thunk from "redux-thunk"; import decode from "jwt-decode...
src/js/components/Icon.js
akonyushevskiy/matchmaking
import React, { Component } from 'react'; export default (props) => { return ( <svg {...props} role="img"><use xlinkHref={`/images/sprite.symbol.svg#${props.name}`}/></svg> ); };
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js
amido/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. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(users) { return [ { id: 1, name: '1' ...
src/components/App.js
AdlerPlanetarium/pluto-poll
import React from 'react'; export default class App extends React.Component { _returnSomething(something) { // this is only for testing purposes. Check /test/components/App-test.js return something; } render() { return ( <div> <section className="content-section"> {this.props...
src/components/Main.js
SKoschnicke/react-test
require('normalize.css'); require('styles/App.css'); import React from 'react'; class HeroList extends React.Component { constructor(props) { super(props); } onSelect(id) { this.props.onSelect(id) } getSelectedClass(id) { if (this.props.selected.id == id) { return "selected"; } else...
V2-Node/esquenta.v2/UI/src/views/Widgets/Widget01.js
leandrocristovao/esquenta
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Card, CardBody, Progress } from 'reactstrap'; import classNames from 'classnames'; import { mapToCssModules } from 'reactstrap/lib/utils'; const propTypes = { header: PropTypes.string, mainText: PropTypes.string, smallText: Pr...
src/client/components/splash.js
berkeley-homes/near-miss-positive-intervention
import React from 'react' import { Link } from 'react-router-dom' export default () => <div className='pa4 vh-100'> <Link to='/site'> <div className='h-100 w-100 flex flex-column justify-around'> <img className='h-90 center db' src='/img/NearMiss_splash_onboarding_logo.svg' ...
browser/scripts/main.js
Fredrik-Oberg/electric-json
'use babel'; import React from 'react'; import ReactDOM from 'react-dom'; import List from '../views/list.jsx'; import RawText from '../views/rawText.jsx'; import InspectJson from '../views/inspect.jsx'; ReactDOM.render(<div> <RawText/> </div>, document.getElementById('rawTextContainer')); ReactDOM.render(<div...
packages/showcase/sankey/link-hint.js
uber/react-vis
import React from 'react'; import Sankey from 'react-vis/sankey'; import Hint from 'react-vis/plot/hint'; const BLURRED_LINK_OPACITY = 0.3; const FOCUSED_LINK_OPACITY = 0.6; const nodes = [{name: 'a'}, {name: 'b'}, {name: 'c'}]; const links = [ {source: 0, target: 1, value: 10}, {source: 0, target: 2, value: 20}...
frontend/src/components/partners/profile/overview/verification/partnerOverviewVerification.js
unicef/un-partner-portal
import React from 'react'; import Grid from 'material-ui/Grid'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Typography from 'material-ui/Typography'; import HeaderList from '../../../../common/list/headerList'; import VerificationContent from './verificationContent'; const message...
app/components/Right.js
FermORG/FermionJS
// @flow import React, { Component } from 'react'; import styles from './photon.scss'; import coreStyles from './Core.scss'; import panelStyles from './Panels.scss'; import State from '../containers/StateConfig'; import Props from '../containers/PropsConfig'; import Styles from '../containers/StylesConfig'; import Even...
app/javascript/mastodon/components/missing_indicator.js
kirakiratter/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import illustration from 'mastodon/../images/elephant_ui_disappointed.svg'; import classNames from 'classnames'; const MissingIndicator = ({ fullPage }) => ( <div className={classNames('regeneration-indicato...
client/src/utils/asyncRoute.js
shahen94/react-modular
import React, { Component } from 'react'; export default function asyncRoute(getComponent) { return class AsyncComponent extends Component { static Component = null; mounted = false; state = { Component: AsyncComponent.Component }; componentWillMount() { if ( this.state.Component ==...
src/containers/search/SearchFoiRequestDetailsScreen.js
jfilter/frag-den-staat-app
// not sure why this is needed here but the app crashes if if not // present (on Android) import 'moment/locale/de'; import { NavigationActions } from 'react-navigation'; import { connect } from 'react-redux'; import React from 'react'; import { fetchSingleFoiRequest } from '../../actions/singleFoiRequest'; import Fo...
src/svg-icons/editor/format-textdirection-r-to-l.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatTextdirectionRToL = (props) => ( <SvgIcon {...props}> <path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/> </SvgIcon> ); EditorFormatTextdirectionRTo...
src/AppBar/index.js
reactivers/react-mcw
/** * Created by Utku on 25/03/2017. */ import React from 'react'; import PropTypes from 'prop-types'; import '@material/toolbar/dist/mdc.toolbar.css'; import classNames from 'classnames'; export class AppBarTitle extends React.PureComponent { static propTypes = { iconAlignment: PropTypes.string, ...
src/svg-icons/content/filter-list.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFilterList = (props) => ( <SvgIcon {...props}> <path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/> </SvgIcon> ); ContentFilterList = pure(ContentFilterList); ContentFilterList.displayName = 'Con...
src/svg-icons/image/looks.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks = (props) => ( <SvgIcon {...props}> <path d="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-1...
docs/src/app/components/pages/get-started/Examples.js
pradel/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import examplesText from './examples.md'; const Examples = () => ( <div> <Title render={(previousTitle) => `Examples - ${previousTitle}`} /> <MarkdownElement text={examplesText} /> </...
modules/Redirect.js
Nedomas/react-router
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { formatPattern } from './PatternUtils' import { falsy } from './PropTypes' const { string, object } = React.PropTypes /** * A <Redirect> is used to declare another URL path a client should b...
docs/src/pages/components/menus/ContextMenu.js
lgollut/material-ui
import React from 'react'; import Menu from '@material-ui/core/Menu'; import MenuItem from '@material-ui/core/MenuItem'; import Typography from '@material-ui/core/Typography'; const initialState = { mouseX: null, mouseY: null, }; export default function ContextMenu() { const [state, setState] = React.useState(i...
components/Sparkline.js
holderdeord/hdo-enighet
import React, { Component } from 'react'; import d3 from 'd3'; export default class Sparkline extends Component { render() { const { width, data, height, interpolation } = this.props; const x = d3.scale.linear() .range([0, width]) .domain(d3.extent(data, (d, i) => i)) ...
src/components/page_header.js
DavidSunny/mastering-react
import React from 'react'; class PageHeader extends React.Component { render() { return ( <header className='page-header'> {this.props.children} </header> ); } } export default PageHeader
src/svg-icons/image/photo-filter.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoFilter = (props) => ( <SvgIcon {...props}> <path d="M19.02 10v9H5V5h9V3H5.02c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zM17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7l2.06.94zm-3.75....
src/parser/shaman/elemental/modules/talents/MasterOfTheElements.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import { formatNumber, formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SP...
app/pages/ButtonPage.js
czn574775237/AmazeuiOnReact
import React from 'react'; import { Alert, Button } from '../components'; export default class ButtonPage extends React.Component { render() { let closeText = ( <span style={{fontSize: '12px', color: '#fff'}}>不再提醒</span> ); return ( <div> <div> <Button>普通按钮</Button> ...
packages/reactor-kitchensink/src/examples/FormFields/EmailField/EmailField.js
markbrocato/extjs-reactor
import React from 'react'; import { FormPanel, EmailField } from '@extjs/ext-react'; Ext.require('Ext.data.validator.Url'); export default function EmailFieldExample() { return ( <FormPanel shadow> <EmailField width={250} placeholder="user@domain.com" ...
spec/javascripts/jsx/speed_grader/SpeedGraderPostGradesMenuSpec.js
djbender/canvas-lms
/* * Copyright (C) 2019 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
frontend/src/App.js
linea-it/qlf
import React from 'react'; import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles'; import Landing from './screens/landing/landing'; import { Route } from 'react-router'; import { Provider } from 'react-redux'; import { store, history } from './store'; import { ConnectedRouter } from 'react-router-r...
app/components/Cards.js
wenwuwu/redux-restful-example
import React from 'react' import Card from './Card' import NavLink from './NavLink' const Cards = ({cards}) => ( <div id="cards-wrapper"> <NavLink to='/cards/new' txt='New Card' /> <div className="section cards"> { cards.map(card => ( <Card ...
src/components/Page/Page.js
kuao775/mandragora
/** * 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-...
src/svg-icons/maps/local-drink.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalDrink = (props) => ( <SvgIcon {...props}> <path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6....
src/Badge.js
reactstrap/reactstrap
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules, tagPropType } from './utils'; const propTypes = { color: PropTypes.string, pill: PropTypes.bool, tag: tagPropType, innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropT...
src/app/routes/index.js
michalniemiec288/clocker
import React from 'react' import {Route, IndexRoute} from 'react-router' import App from './App' import Home from './Home' // firebase import UserLogin from '../components/user/login' import UserLogout from '../components/user/logout' import UserRegister from '../components/user/register' import UserProfile from '../c...
src/svg-icons/image/looks-one.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooksOne = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14h-2V9h-2V7h4v10z"/> </SvgIcon> ); ImageLooksOne = pure(ImageLooksOn...
app/javascript/mastodon/features/ui/components/report_modal.js
summoners-riftodon/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports'; import { expandAccountTimeline } from '../../../actions/timelines'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-pro...
pages/blog/index.js
creeperyang/react-static-boilerplate
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Blog</h1> <p>Coming soon....
server/sonar-web/src/main/js/apps/projects/visualizations/VisualizationsHeader.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
src/svg-icons/content/content-paste.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentContentPaste = (props) => ( <SvgIcon {...props}> <path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s...
src/components/forms/submit-button.js
adrienhobbs/redux-glow
import React from 'react'; import styles from './submit-button.css'; const SubmitButton = React.createClass({ propTypes: { disabled: React.PropTypes.bool }, shouldComponentUpdate (nextProps) { return (nextProps.disabled !== this.props.disabled); }, render () { return ( <div className={style...
node_modules/react-bootstrap/es/Glyphicon.js
mohammed52/door-quote-automator
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 ...
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/oembed/index.js
wpexpertsio/WP-Secure-Maintainance
/** * The external dependencies. */ import $ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import { isEmpty, debounce } from 'lodash'; import { compose, withHandlers, setStatic, withState } from 'recompose'; /** * The internal dependencies. */ impor...
app/javascript/mastodon/features/ui/components/tabs_bar.js
theoria24/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage, injectIntl } from 'react-intl'; import { debounce } from 'lodash'; import { isUserTouching } from '../../../is_mobile'; import Icon from 'mastodon/components/icon'; import No...
src/server/ssr.js
ruffers9/django-react-boilerplate
// Node Modules import fs from 'fs'; import {basename, join} from 'path'; // Libraries import React from 'react'; import {renderToString} from 'react-dom/server'; // Redux // import {push} from 'react-router-redux'; import createStore from 'universal/redux/createStore.js'; import createHistory from 'history/createMem...
example/src/cluster.js
lamuertepeluda/react-mapbox-gl
import React, { Component } from 'react'; import style from './style.json'; import config from './config.json'; import places from './places.json'; import ReactMapboxGl, { Marker, Cluster } from "react-mapbox-gl"; const containerStyle = { height: '100vh', width: '100%' }; const styles = { clusterMarker: { w...
src/components/LoaderButton.js
availabs/avail_app_bootstrap
import React from 'react'; import { Button, Glyphicon } from 'react-bootstrap'; import './LoaderButton.css'; export default ({ isLoading, text, loadingText, className = '', disabled = false, ...props }) => ( <Button className={`LoaderButton ${className}`} disabled={disabled || isLoading} {......
src/components/tasks/tasks.js
thinktopography/reframe
import { CSSTransition } from 'react-transition-group' import PropTypes from 'prop-types' import Button from '../button' import React from 'react' class Tasks extends React.Component { static childContextTypes = { tasks: PropTypes.object } static contextTypes = { drawer: PropTypes.object, modal: Pr...
src/entypo/Cake.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Cake'; let EntypoCake = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M9.584,6.036c1.952,0,2.591-1.381,1.839-2.843c-0.871-1.693,1.895-3.155,0.521-3.155c-1.301,0-3.736,1.418-4....
src/app/components/search/SearchResultsTable/ShareCountCell.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import NumberCell from './NumberCell'; export default function ShareCountCell({ projectMedia }) { const shareCount = projectMedia.list_columns_values.share_count; return <NumberCell value={shareCount} />; } ShareCountCell.propTypes = { projectMedia: ...
src/containers/Root.js
andrew-filonenko/habit-tracker
import React, { Component } from 'react'; import { ReduxRouter } from 'redux-router'; import App from '../containers/App'; import LoginPage from '../containers/LoginPage'; import GoalPage from '../containers/GoalPage'; import { Route, IndexRedirect } from 'react-router'; export default class Root extends Component { ...
src/svg-icons/image/image.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageImage = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImageImage = p...
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
fhchina/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import classnames from 'classnames'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ContactItem extends React.Com...
src/components/StaticAppBar/StaticAppBar.react.js
isuruAb/chat.susi.ai
import './StaticAppBar.css'; import $ from 'jquery'; import AppBar from 'material-ui/AppBar'; import Chat from 'material-ui/svg-icons/communication/chat'; import Close from 'material-ui/svg-icons/navigation/close'; import Cookies from 'universal-cookie'; import Dashboard from 'material-ui/svg-icons/action/dashboard'; i...
examples/containers/CounterApp.js
skevy/redux
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'redux/react'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; @connect(state => ({ counter: state.counter })) export default class CounterApp { render() { co...
node_modules/react-router/es/IndexRoute.js
saniko/Universal-React
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
src/initial_state.js
cuku/team-directory
/*eslint-disable react/display-name */ /*eslint-disable react/no-multi-comp */ import React from 'react'; import md5 from 'md5-jkmyers'; import VCard from 'vcf'; import { Base64 } from 'js-base64'; const initialState = { message: '', error: '', options: { account: '', repo: '', team: '', form: '...
app/js/pages/QuestionAnswerPage.js
niksoc/srmconnect
import React from 'react'; import {Nav, NavItem, PageHeader} from 'react-bootstrap'; import PageTitle from '../components/PageTitle'; import SimpleDetailViewPage from './SimpleDetailViewPage'; import DetailView from '../components/ModelViews/DetailView'; import axios from 'axios'; import {BASE_URL} from '../constants';...
app/javascript/mastodon/components/button.js
foozmeat/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
src/svg-icons/notification/more.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationMore = (props) => ( <SvgIcon {...props}> <path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.97.89 1.66.89H22c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5...
src/views/Feed/FeedLabel.js
shengnian/shengnian-ui-react
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, createHTMLImage, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Icon from '../../elements/Icon' /** * An event can contain an image or icon label. */ func...
src/svg-icons/image/timer-off.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimerOff = (props) => ( <SvgIcon {...props}> <path d="M19.04 4.55l-1.42 1.42C16.07 4.74 14.12 4 12 4c-1.83 0-3.53.55-4.95 1.48l1.46 1.46C9.53 6.35 10.73 6 12 6c3.87 0 7 3.13 7 7 0 1.27-.35 2.47-.94 3.49l1....
app/javascript/mastodon/features/account_timeline/components/header.js
kagucho/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ActionBar from '../../account/components/action_bar'; import MissingIndicator from '../../../components/missing_indicator'; import ...
src/components/trash/index.js
andresgutgon/donald-trash
import React, { Component } from 'react'; import { DropTarget } from 'react-dnd'; import CONSTANTS from '../../constants'; import styles from './styles/index.css'; class Trash extends Component { getClasses() { const { isOver, donaldDropped } = this.props; if (donaldDropped && donaldDropped.target === 'tras...
src/components/home/index.js
Tsarpf/babel-webpack-react-router-eslint-hot-loader-boilerplate
import React from 'react'; import { Link } from 'react-router'; export default class Home extends React.Component { render() { return ( <div> <div> <Link to="/about"> About </Link> </div> <div> <Link to="/map"> Map </Link> </div> </div> ) } }
app/components/ContactPage/ContactPage.js
tenhaus/bbwelding
import React from 'react'; import Radium from 'radium'; import Page from '../Page/Page'; import Style from './_ContactPage.Style'; class ContactPage extends React.Component { render() { return ( <Page title='Contact'> <div style={Style.split}> {/* Contact Details*/} <div styl...
scripts/index3.js
philholden/react-iframe-bind
'use strict'; import Css from '../style/frame1.scss'; import React from 'react'; import ClickCounterWrapper from './components/ClickCounterWrapper'; React.render(<ClickCounterWrapper />, document.getElementById('root'));
app/javascript/mastodon/components/missing_indicator.js
MastodonCloud/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const MissingIndicator = () => ( <div className='regeneration-indicator missing-indicator'> <div> <div className='regeneration-indicator__figure' /> <div className='regeneration-indicator__label'> <FormattedMessage id=...
src/components/code.js
lowsky/spectacle
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getStyles } from '../utils/base'; import styled from 'react-emotion'; const format = (str) => { return str.replace(/</g, '&lt;').replace(/>/g, '&gt;'); }; const StyledCode = styled.code(props => props.styles); export default cla...
src/components/layout/AppBar.js
zhoutk/material-admin
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import MuiAppBar from 'material-ui/AppBar'; import muiThemeable from 'material-ui/styles/muiThemeable'; import compose from 'recompose/compose'; import { toggleSidebar as toggleSidebarAction } from '../../actions'; co...
src/svg-icons/action/search.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSearch = (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/icons/Icons.stories.js
ipfs/webui
import React from 'react' import { storiesOf } from '@storybook/react' import { withKnobs, text, number, color } from '@storybook/addon-knobs' const requireContext = require.context('.', true, /\.js?$/) const modules = requireContext.keys().filter((c) => !c.includes('.stories')) const icons = modules.map(m => ({ nam...