path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/app/Examples/views/Card/Content/CardExampleHeaderCard.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Card } from 'semantic-ui-react' const CardExampleHeaderCard = () => ( <Card.Group> <Card> <Card.Content> <Card.Header>Matthew Harris</Card.Header> <Card.Meta>Co-Worker</Card.Meta> <Card.Description>Matthew is a pianist living in Nashville.</Card.De...
Console/app/node_modules/antd/es/input-number/index.js
RisenEsports/RisenEsports.github.io
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
src/components/Navbar/Navbar.js
uiruson/chorongi
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ 'use strict'; import React from 'react'; var Navbar = React.createClass({ render() {...
src/Input.js
buildo/rc-datepicker
import React from 'react'; import cx from 'classnames'; import { props } from 'tcomb-react'; import t from 'tcomb'; import View from 'react-flexview'; import skinnable from './utils/skinnable'; import pure from './utils/pure'; @pure @skinnable() @props({ value: t.maybe(t.String), onInputChange: t.Function, iconC...
docs/src/Routes.js
SSLcom/Bootsharp
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import ComponentsPage from './ComponentsPage'; import NotFoundPage from './NotFoundPage'; import Root from './Root'; export default ( <Route path="/" component={Root}> <IndexRoute component={ComponentsPage} /> <Route path="componen...
src/logo.js
coma/spotify
import React from 'react'; import style from './logo.css'; class Logo extends React.Component { render () { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 40" className={ style.main }> <path className={ style.a } d="M45,25c0,9.32 -10.074,15 -22.5,15c-12.426,0...
app/javascript/mastodon/features/compose/containers/warning_container.js
WitchesTown/mastodon
import React from 'react'; import { connect } from 'react-redux'; import Warning from '../components/warning'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { me } from '../../../initial_state'; const APPROX_HASHTAG_RE = /(?:^|[^\/\)\w])#(\w*[a-zA-Z·]\w*)/i; const mapStateT...
src/containers/SearchFormContainer.js
blwoosky/DigCSS-Theme-v4-Redesign
import React, { Component } from 'react'; import SearchForm from "./../components/SearchForm"; import { Link,browserHistory } from 'react-router'; import { connect } from "react-redux"; import { search } from "./../actions"; export default class SearchFormContainer extends Component { constructor(props) { ...
src/Fade.js
mengmenglv/react-bootstrap
import React from 'react'; import Transition from 'react-overlays/lib/Transition'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; class Fade extends React.Component { render() { let timeout = this.props.timeout || this.props.duration; retu...
src/routes.js
ProjectSunday/rooibus
import React from 'react' import { Route, IndexRoute } from 'react-router' import About from './components/about' import Root from './components/root' import FriendMap from './components/friend-map' import Session from './components/session' export default ( <Route path="/" component={Root}> <IndexRoute component=...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Listing/MoreMenu.js
Minoli/carbon-apimgt
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Button from 'material-ui/Button'; import Grow from 'material-ui/transitions/Grow'; import Paper from 'material-ui/Paper'; import { withStyles } from 'material-ui/styles'; import { Manager, Target, Popper } from 'r...
app/javascript/mastodon/components/status_content.js
tootcafe/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Permalink from './permalink'; import classnames from 'classnames'; import PollContainer from 'mastodon/containers/poll_container'; import Icon ...
src/components/pages/PatientsSummary/patients-summary.config.js
PulseTile/PulseTile-React
import React from 'react'; import { get } from 'lodash'; import { themePatientSummaryConfig } from '../../theme/config/plugins'; import { allergiesPrevImage, problemsPrevImage, contactsPrevImage, medicationsPrevImage, } from './ImageSources'; import { themeConfigs } from '../../../themes.config'; import { isPlu...
node_modules/react-bootstrap/es/Table.js
xuan6/admin_dashboard_local_dev
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 ...
developers.diem.com/src/pages/index.js
libra/libra
import React from 'react'; import {Redirect} from '@docusaurus/router'; import useBaseUrl from '@docusaurus/useBaseUrl'; function Home() { return <Redirect to={useBaseUrl('/docs/welcome-to-diem/')} />; } export default Home;
lib/Card.js
robbiegreiner/weathrly
import React from 'react'; const Card = ({ time, condition, img, temp, }) => { return ( <div className='card'> <p className='time'>{time}</p> <div className='card-condition'> <p>{condition}</p> </div> <div className='img-background'> <img src={img} alt={condition}/...
src/containers/layout/List/List.js
max-gram/react-saga-universal
import React from 'react' import PropTypes from 'prop-types' import { Grid, Row } from 'react-flexbox-grid' import css from './List.css' const List = ({children, className}) => { return ( <section className={className ? className : css.section}> <Grid fluid> <Row middle="xs" className={css.row}> ...
docs/Documentation/DatePickerPage.js
reactivers/react-mcw
/** * Created by muratguney on 29/03/2017. */ import React from 'react'; import {Card, IconButton,CardHeader,DatePicker,Table, TableRow, TableHeaderColumn, TableHeader, TableRowColumn, TableBody} from '../../lib'; import Highlight from 'react-highlight.js' export default class ChipPage extends React.Component { ...
blueocean-material-icons/src/js/components/svg-icons/image/wb-sunny.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageWbSunny = (props) => ( <SvgIcon {...props}> <path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79-1.4 ...
tp-3/juan-pablo-gonzalez/src/components/Root.js
solp/sovos-reactivo-2017
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import App from './App'; import { BrowserRouter as Router } from 'react-router-dom'; export default class Root extends Component { render() { return ( <Router> <App /> </Router> ); } } Root.propTypes = { h...
src/containers/LandingPage/AboutPidc/index.js
westoncolemanl/tabbr-web
import React from 'react' import Body from './Body' export default () => { window.scrollTo(0, 0) return ( <div> <Body /> </div> ) }
app/components/EarningsTableFooter/index.js
projectcashmere/web-server
/** * * EarningsTableFooter * */ import React from 'react'; import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; const Table = styled.table` background-color: grey; color: white; height: 40px; margin: 5px; margin-bottom: 20px; width: 100%; ...
packages/react/src/components/ErrorBoundary/ErrorBoundary.js
carbon-design-system/carbon-components
/** * 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 React from 'react'; import PropTypes from 'prop-types'; import { ErrorBoundaryContext } from './ErrorBoundaryContext'; /** * React i...
app/jsx/external_apps/components/AppDetails.js
djbender/canvas-lms
/* * Copyright (C) 2014 - 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...
src/icons/index.stories.js
resmio/mantecao
import React from 'react' import { storiesOf } from '@storybook/react' import AddIcon from './AddIcon' import ArrivedIcon from './ArrivedIcon' import ArrowIcon from './ArrowIcon' import BlankIcon from './BlankIcon' import BookIcon from './BookIcon' import BookingIcon from './BookingIcon' import CalendarIcon from './Cal...
src/components/shell/Shell.js
ipfs/webui
import React from 'react' import classNames from 'classnames' const Shell = ({ title = 'Shell', children, className }) => { return ( <div className={classNames('br1 overflow-hidden', className)}> <div className='f7 mb0 sans-serif ttu tracked charcoal pv1 pl2 bg-black-20'>{ title }</div> <div cl...
examples/with-clerk/pages/index.js
zeit/next.js
import React from 'react' import Head from 'next/head' import Link from 'next/link' import styles from '../styles/Home.module.css' import { SignedIn, SignedOut } from '@clerk/nextjs' const ClerkFeatures = () => ( <Link href="/user"> <a className={styles.cardContent}> <img src="/icons/layout.svg" /> <...
src/components/GlobalNavigation/NavBar/BackButton.android.js
aaron-edwards/Spirit-Guide
import React from 'react'; import { I18nManager, Image, StyleSheet, TouchableNativeFeedback, View } from 'react-native' import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; export default NavigationHeaderBackButton = (props: Props) => { return ( <TouchableNativeFeedback style={[styles.butt...
modules/RouteUtils.js
calebmichaelsanchez/react-router
import React from 'react' import warning from 'warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName, p...
src/js/OrderSentPage.js
merlox/dapp-transactions
import React from 'react' import Header from './Header' import {Link} from 'react-router-dom' import './../stylus/index.styl' import './../stylus/ordersentpage.styl' import LINKS from './utils.js' class OrderSentPage extends React.Component { constructor(props) { super(props) } render(){ return (...
src/routes/Home/components/TopicListing/TopicListing.js
spbsamuel/digg-clone
import React from 'react' import classes from './TopicListing.scss' import TopicCard from '../TopicCard' import Shuffle from 'react-shuffle' export const TopicListing = ({topics, visibleTopics, upVoteTopic, downVoteTopic}) => { return ( <div> <Shuffle> {visibleTopics.map(id => <div key={i...
docs/src/examples/elements/Rail/Types/RailExampleDividing.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Grid, Image, Rail, Segment } from 'semantic-ui-react' const RailExampleDividing = () => ( <Grid centered columns={3}> <Grid.Column> <Segment> <Image src='/images/wireframe/paragraph.png' /> <Rail dividing position='left'> <Segment>Left Rail Cont...
examples/src/components/States.js
pedroseac/react-select
import React from 'react'; import Select from 'react-select'; const STATES = require('../data/states'); var StatesField = React.createClass({ displayName: 'StatesField', propTypes: { label: React.PropTypes.string, searchable: React.PropTypes.bool, }, getDefaultProps () { return { label: 'States:', sea...
examples/windows/components/navPane.js
gabrielbull/react-desktop
import React, { Component } from 'react'; import { NavPane, NavPaneItem, Text } from 'react-desktop/windows'; export default class extends Component { static defaultProps = { color: '#cc7f29', theme: 'light' }; constructor() { super(); this.state = { selected: 'Item 1' } } render(...
spec/javascripts/jsx/grading/AssignmentPostingPolicyTray/AssignmentPostingPolicyTraySpec.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...
src/index.js
zumbara/zumbara-web
// @flow import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import createHistory from 'history/createBrowserHistory'; import { injectGlobal } from 'styled-components'; import 'normalize.css/normalize.css'; import ...
src/Button.story.js
prometheusresearch/react-ui
/** * @flow */ import React from 'react'; import {storiesOf} from '@kadira/storybook'; import Button from './Button'; import I18N from './I18N'; export function createButtonStories(Button: any) { storiesOf(`<${Button.displayName || Button.name} />`, module) .add('Default state', () => <Button>Click me</Button...
src/svg-icons/navigation/arrow-downward.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDownward = (props) => ( <SvgIcon {...props}> <path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/> </SvgIcon> ); NavigationArrowDownward = pure(NavigationArrowDownward); Na...
src/page/TimePickerPage.js
jerryshew/react-uikits
import React, { Component } from 'react'; import {CN, TitleBlock} from '../util/tools'; import {TimePicker} from '../component'; import CodeView from './CodeView'; export class TimePickerPage extends Component { constructor(props) { super(props); this.state = { value: 4981 } ...
examples/custom-grid/src/index.js
Hellenic/react-hexgrid
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
app/addons/documents/mango/components/ExecutionStats.js
popojargo/couchdb-fauxton
// 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 agreed to in writing, software // distributed un...
web/assets/js/detailpage-need-to-integrate/CarDetail.js
xuqiantong/NY_Auto
/** * Created by jeanliu on 4/14/17. */ import React, { Component } from 'react'; import './CarDetail2.css'; var Row = require('react-bootstrap/lib/Row'); var Col = require('react-bootstrap/lib/Col'); var Button = require('react-bootstrap/lib/Button'); // const PHOTOS = [ // {id: 0, imgpath: './static/bundles...
app/components/Icon.js
nmorel/magic-counter
import React from 'react'; import {StyleSheet, Text} from 'react-native'; export const icons = { new: convertFontCode('e05e'), addPlayer: convertFontCode('e7f0'), reset: convertFontCode('e042'), menu: convertFontCode('e3c7'), add: convertFontCode('e147'), remove: convertFontCode('e15c'), }; function conve...
src/examples/react/src/editors/InputPet.js
nikospara/egkyron
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Pet from 'model/Pet'; import Vaccination from 'model/Vaccination'; import InputText from 'controls/InputText'; import InputGender from './InputGender'; import InputArray from './InputArray'; import InputVaccination from './InputVaccina...
src/components/google_map.js
CaseyKelly/react-redux-weather-charts
import React, { Component } from 'react'; class GoogleMap extends Component { componentDidMount() { new google.maps.Map(this.refs.map, { zoom: 12, center: { lat: this.props.lat, lng: this.props.lon } }); } render() { return <div ref="map" />; } } export default G...
example/src/client.js
tizmagik/react-head
import React from 'react'; import { hydrate } from 'react-dom'; import { HeadProvider } from 'react-head'; import App from '../App'; hydrate( <HeadProvider> <App /> </HeadProvider>, document.getElementById('root') ); if (module.hot) { module.hot.accept(); }
packages/react-devtools-shared/src/devtools/views/ReactLogo.js
mjackson/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * 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 from 'react'; import styles from './ReactLogo.css'; type Props = {| className?: string, |}; export d...
src/components/Datepicker/index.js
wiki1024/sam-bs
import React from 'react' import moment from 'moment' import _ from 'lodash' import Calendar from './Calendar' import { Collapse } from 'react-bootstrap' import { updateMonth, selectDate, toggleOpen } from '../../actions/datePickerAction' import { debounce } from '../../util' import Header from './header' import Month ...
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
cojennin/react-router
import React from 'react'; import { Link } from 'react-router'; class Sidebar extends React.Component { render () { var assignments = COURSES[this.props.params.courseId].assignments return ( <div> <h3>Sidebar Assignments</h3> <ul> {assignments.map(assignment => ( ...
frontend/component/TopicDetail.js
wangmuming/node-forum
import React from 'react'; import 'highlight.js/styles/github-gist.css'; import {getTopicDetail, addComment, deleteComment, deleteTopic} from '../lib/client'; import {renderMarkdown} from '../lib/utils'; import { Router, Route, Link, browserHistory } from 'react-router'; import CommentEditor from './CommentEditor'; imp...
web/client/configdev/src/config/ScreensaverMenu.js
project-owner/Peppy
/* Copyright 2019 Peppy Player peppy.player@gmail.com This file is part of Peppy Player. Peppy Player 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 3 of the License, or (at your option) any la...
src/views/Components/Buttons/Buttons.js
corbinpage/react-play
import React, { Component } from 'react'; class Buttons extends Component { render() { return ( <div className="animated fadeIn"> <div className="row"> <div className="col-md-6"> <div className="card"> <div className="card-header"> <strong>Options...
js/source/Customizer.js
peano-ito/giuseppe
/*********************************************************************/ /* Customizer */ /* (c) 2017 Peano System Inc. */ /*********************************************************************/ 'use strict'; import React from ...
client/node_modules/uu5g03/doc/main/client/src/components/component-loader.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import UU5 from 'uu5'; import './component-loader.css'; export default React.createClass({ //@@viewOn:mixins mixins: [ UU5.Common.BaseMixin, UU5.Common.LoadMixin, UU5.Layout.ContainerMixin ], //@@viewOff:mixins //@@viewOn:statics statics: { tagName: 'UU5.Doc.Co...
packages/mineral-ui-icons/src/IconPlayCircleOutline.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconPlayCircleOutline(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {......
from-zero-to-vertical/src/components/atoms/PApp/PApp2.js
Muzietto/react-playground
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; // cfr. https://codeburst.io/my-journey-to-make-styling-with-material-ui-right-6a44f7c68113 const useStyles = makeStyles(() => ({ outlinedRoot: { // if the style the root, the field...
src/components/Switch/index.js
HenriBeck/materialize-react
// @flow strict-local import React from 'react'; import PropTypes from 'prop-types'; import getNotDeclaredProps from 'react-get-not-declared-props'; import Ripple from '../Ripple'; import { ENTER, SPACE_BAR, } from '../../utils/constants'; import Sheet, { type Data } from './Sheet'; type Props = { toggled: bo...
app/jsx/shared/components/CreateOrUpdateUserModal.js
djbender/canvas-lms
/* * Copyright (C) 2017 - 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...
src/components/vidoe_detail.js
dulik06/ReduxStarter
import React from 'react'; const VideoDetail = (props) => { const video = props.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-...
src/PlayerView.js
hannes-hochreiner/more-podcasts
import React, { Component } from 'react'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import PlayerPresenter from './PlayerPresenter'; import Toolbar from '@material-ui/core/Toolbar'; import AppBar from '@material-ui/core/AppBar'; import Menu from '@material-ui/core/Men...
packages/ringcentral-widgets/components/CircleButton/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import styles from './styles.scss'; /** * Circle Button with SVG */ function CircleButton(props) { let icon; if (props.icon) { const Icon = props.icon; icon = ( <Icon className={classnames(st...
src/svg-icons/image/add-a-photo.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAddAPhoto = (props) => ( <SvgIcon {...props}> <path d="M3 4V1h2v3h3v2H5v3H3V6H0V4h3zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10h3zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-...
test/helpers/shallowRenderHelper.js
Solshal/solshal-chrome-extension
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
es/Switch/Switch.js
uplevel-technology/material-ui-next
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; }; function _objectWithoutProperties(obj, keys) { var target = {...
app/javascript/mastodon/features/list_editor/components/account.js
MitarashiDango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../compone...
actor-sdk/sdk-web/src/components/sidebar/HeaderSection.react.js
y0ke/actor-platform
/* * Copyright (C) 2015-2016 Actor LLC. <https://actor.im> */ import React, { Component } from 'react'; import { Container } from 'flux/utils'; import classnames from 'classnames'; import ActorClient from '../../utils/ActorClient'; import { escapeWithEmoji } from '../../utils/EmojiUtils' import confirm from '../../u...
app/components/Toggle/index.js
gihrig/react-boilerplate
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
src/js/Codedojo/Not.js
pankiv/news
/** * Created by Vasul on 03.10.2017. */ import React from 'react'; const Not = () => { return ( <h1>Not fount</h1> ) }; export default Not;
src/esm/components/graphics/icons/ellipsis-icon/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; export var EllipsisIcon = function EllipsisIcon(_ref) { var color =...
pkg/interface/chat/src/js/components/lib/backlog-element.js
ngzax/urbit
import React, { Component } from 'react'; import classnames from 'classnames'; export class BacklogElement extends Component { render() { let props = this.props; return ( <div className="center mw6"> <div className="db pa3 ma3 ba b--gray4 bg-gray5 b--gray2-d bg-gray1-d white-d flex items-ce...
src/pages/vida-bela.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Vida Bela' /> )
src/components/TextInputBEM/TextInputBEM.js
coryhouse/ps-react
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({htmlId, name, label, type = "text", required = false, onChange, placehold...
client/vehicle-finder-spa/src/containers/user-management/single-user.js
Del7a/vehicle-finder
import React, { Component } from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {setCurrentUser, formChanged} from '../../actions/user'; import {updateSingleUser} from '../../actions/user-management'; import Form from '../../components/profile/info'; class SingleUser ex...
app/routes/method/CreateRoute.js
ryrudnev/dss-wm
import React from 'react'; import Helmet from 'react-helmet'; import { Route } from '../../core/router'; import { Model as Method } from '../../entities/Method'; import { Collection as MethodTypes } from '../../entities/MethodType'; import { PageHeader, Row, Col, Panel } from 'react-bootstrap'; import MethodForm from '...
docs/src/NotFoundPage.js
egauci/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...
app/containers/LoginPage/index.js
gitlab-classroom/classroom-web
/* * * LoginPage * */ import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import styled from 'styled-components'; import selectLoginPage from './selectors'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import Paper from...
docs/src/app/components/pages/components/Card/ExampleControlled.js
ArcanisCz/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import Toggle from 'material-ui/Toggle'; export default class CardExampleControlled extends React.Component { constructor(props) { super(pro...
fields/types/titleposition/TitlePositionField.js
nickhsine/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; import cx from 'classnames'; /** * TODO: * - Custom path support */ const CENTER = 'center'; const BOTTOM = 'bottom'; const BOTTOMLEFT = 'bottom-left'; const imageSrc = { [CENTE...
V2-Node/esquenta.v2/UI/src/views/Base/Collapses/Collapses.js
leandrocristovao/esquenta
import React, { Component } from 'react'; import { Badge, Button, Card, CardBody, CardFooter, CardHeader, Col, Collapse, Fade, Row } from 'reactstrap'; class Collapses extends Component { constructor(props) { super(props); this.onEntering = this.onEntering.bind(this); this.onEntered = this.onEntered.bin...
fixtures/nesting/src/modern/App.js
cpojer/react
import React from 'react'; import {useState, Suspense} from 'react'; import {BrowserRouter, Switch, Route} from 'react-router-dom'; import HomePage from './HomePage'; import AboutPage from './AboutPage'; import ThemeContext from './shared/ThemeContext'; export default function App() { const [theme, setTheme] = useS...
app/timer/timer.page.js
kosich/pomodoro-pi
// @flow import React, { Component } from 'react'; import Timer from './timer.component.js'; export default class TimerPage extends Component { render() { return ( <Timer /> ); } }
src/svg-icons/av/video-label.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideoLabel = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H3V5h18v11z"/> </SvgIcon> ); AvVideoLabel = pure(AvVideoLabel); AvVid...
stories/components/label/index.js
NestorSegura/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import Label from 'shared/components/label/label'; storiesOf('shared/components/label', module) .add('Default', () => ( <div style={{ marginTop: '12px', display: 'flex', flexDirection: 'row', justifyCo...
www/js/components/Sidebar.js
grant/CSE-The-Game
import React, { Component } from 'react'; const sidebarItems = [ { id: 'item1', name: 'Item 1', subitems: [{ id: 'subitem1', name: 'Subitem 1', }, { id: 'subitem2', name: 'Sub 2', subitems: [{ id: 'subsubitem1', name: 'sub sub item 1', }], }], ...
App/Client/Component/person.js
qianyuchang/React-Chat
import React from 'react' import { mockData } from './mockData' const ArrowIcon=React.createClass({ render:function(){ return( <i className="arrow fa fa-angle-right"></i> ); } }); const QrcodeIcon=React.createClass({ render:function(){ return( <i className="qrcode fa fa-qrcode"></i> ); } }); const...
src/collections/Form/FormSelect.js
aabustamante/Semantic-UI-React
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Select from '../../addons/Select' import FormField from './FormField' /** * Sugar for <Form.Field control={Select} />. * @see Form * @see Select */ function FormSelect(props) { const { ...
video-player/src/components/SearchBar.js
HeroSizy/Modern-react-with-redux
import React from 'react' import { Component } from 'react' class SearchBar extends Component { constructor(props){ super(props); //only can manipulate state using '=' //in constructor this.state = { term: '' }; //to not lose context, use bind this.onInputChange = ...
packages/material-ui-icons/src/InsertLink.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-...
sample-app/EmployeeDirectory/index.ios.js
TGPSKI/cavy
import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import { Provider } from 'react-redux'; import { reduxForm } from 'redux-form'; import { Tester, TestHookStore } from 'cavy'; import EmployeeDirectoryApp from 'App/EmployeeDirectoryApp'; import GLOBAL from 'Helpers/globals.js'; if ...
fields/types/azurefile/AzureFileColumn.js
asifiqbal84/keystone
import React from 'react'; var AzureFileColumn = React.createClass({ renderValue () { var value = this.props.data.fields[this.props.col.path]; if (!value) return; return <a href={value.url} target='_blank'>{value.url}</a>; }, render () { return ( <td className="ItemList__col"> <div className="ItemLis...
src/js/ui/components/welcome/signUpForm.js
heartnotes/heartnotes
import $ from 'jquery'; import _ from 'lodash'; import React from 'react'; import Button from '../button'; import ExternalLink from '../externalLink'; import ProgressButton from '../progressButton'; import EmailInput from '../emailInput'; import NewPasswordInput from '../newPasswordInput'; import UserShouldRememberPas...
src/index.js
shibe97/react-awesome-modal
import React, { Component } from 'react'; import style from './style.js'; export default class Modal extends Component { constructor(props) { super(props); let effect = props.effect || 'fadeInDown'; this.setSize(effect); this.state = { visible : props.visible, ...
chrome/extension/inject.js
CKPalk/PA-POC-Video-Contoller
import React from 'react' import ReactDOM from 'react-dom' import VideoRoot from '../../app/containers/VideoRoot' import { getUid } from '../../app/utils/helpers' import { getState, onStateChange } from '../../app/utils/localStorage' /** * Whether this youtube video is currently an advertisement. * @param {Objec...
web/app/containers/RepoListItem/index.js
agapic/TwitchChatStreaming
/** * RepoListItem * * Lists the name and the issue count of a repository */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { FormattedNumber } from 'react-intl'; import IssueIcon from './IssueIcon'; import IssueLink from './IssueLink'; import L...
tp-4/euge/src/pages/posts/Listado.js
jpgonzalezquinteros/sovos-reactivo-2017
import React from 'react'; import PropTypes from 'prop-types'; import { Layout, Table, Button } from 'antd'; const { Content } = Layout; const columns = [{ title: 'title', dataIndex: 'title', width: '30%', }, { title: 'body', dataIndex: 'body', width: '20%', }]; class Listado extends React.Component { ...
src/js/components/gallery/ImportAlbumPopup.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { FACEBOOK_PHOTOS_SCOPE, GOOGLE_PHOTOS_SCOPE } from '../../constants/Constants'; import translate from '../../i18n/Translate'; @translate('ImportAlbumPopup') export default class ImportAlbumPopup extends Component { static propTy...
12_ReactJS Fundamentals/01_contacter/src/index.js
akkirilov/SoftUniProject
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();
app/javascript/mastodon/features/ui/components/media_modal.js
imas/mastodon
import React from 'react'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import classNames from 'classnames'; import { defineMessages, injectIntl } from 'react-intl'; i...
modules/gob-web/modules/course-table/year.js
hawkrives/gobbldygook
// @flow import React from 'react' import {connect} from 'react-redux' import {FlatButton} from '../../components/button' import Semester from './semester' import {findFirstAvailableSemester} from '../../helpers/find-first-available-semester' import {expandYear, semesterName} from '@gob/school-st-olaf-college' import ...
blueocean-material-icons/src/js/components/svg-icons/content/create.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentCreate = (props) => ( <SvgIcon {...props}> <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/> </SvgIcon> ); ContentCreate.d...