path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-forms-calendar.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, SwipeMixin, LsiMixin} from './../common/common.js'; import {Glyphicon} from './../bricks/bricks.js'; import './calendar.less'; export default React.createClass({ mixins: [ BaseMixin, ElementaryMixin, SwipeMixin, LsiMixin ], statics...
src/routes/tenants/index.js
medevelopment/updatemeadmin
import React from 'react'; import Tenants from './Tenants'; import Layout from '../../components/Layout'; export default { path: '/tenants', async action({ fetch }) { const resp = await fetch('/graphql', { body: JSON.stringify({ query: '{news{title,link,content}}', }), }); const ...
src/js/components/Bar/index.js
nitin42/terminal-in-react
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { TerminalTopBar } from './styled-elements'; class Bar extends Component { static displayName = 'Bar'; static propTypes = { style: PropTypes.object, // eslint-disable-line showActions: PropTypes.bool, handleMinimise: ...
src/modules/auth/components/UpdateForV2Message/UpdateForV2Message.js
CtrHellenicStudies/Commentary
import React from 'react'; import { Link } from 'react-router-dom'; import './UpdateForV2Message.css'; const UpdateForV2Message = () => ( <div className="authContainer"> <div className="at-form"> <div className="at-pwd-form updateForV2Message"> <div className="at-title"> <h3> Welcome to th...
src/svg-icons/action/find-in-page.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFindInPage = (props) => ( <SvgIcon {...props}> <path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5...
src/svg-icons/editor/format-paint.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatPaint = (props) => ( <SvgIcon {...props}> <path d="M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4h-3z"/> </SvgIco...
src/components/organisms/with-auth-protection.js
raulfdm/cv
import React from 'react'; import { useAuth } from 'src/config/auth'; import Layout from 'components/layout'; import PageLoader from 'molecules/page-loader'; const withAuthProtection = WrappedComponent => function withAuth(props) { const { isAuth, isChecking, ...restAuth } = useAuth(); if (isChecking) { ...
src/app/budget/BudgetSummary.js
cityofasheville/simplicity2
import React from 'react'; import PropTypes from 'prop-types'; import { Query } from 'react-apollo'; import gql from 'graphql-tag'; import SummaryUse from './SummaryUse'; import SummaryDepartments from './SummaryDepartments'; import SummaryCashFlow from './SummaryCashFlow'; import PageHeader from '../../shared/PageHead...
src/components/Search/GridItem.js
ndlib/beehive
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' import { Card, CardMedia, GridListTile } from '@material-ui/core' import { makeStyles } from '@material-ui/core/styles' import ItemImage from './ItemImage' import TextOverlay from 'components/Shared/TextOverlay' import ...
client/src/js/components/LoadSpinner.js
abitlog/retube
import React from 'react'; import Spinner from 'react-spinkit'; const LoadSpinner = ({ isLoading, isActive, isDone}) => { return ( <div className="load-spinner"> <Spinner overrideSpinnerClassName="spinner" spinnerName='circle' noFadeIn/> </div> ); }; export default LoadSpinner;
src/components/diff-blocks.component.js
housseindjirdeh/git-point
// @flow import React from 'react'; import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; import { colors, fonts } from 'config'; type Props = { additions: number, deletions: number, showNumbers: boolean, onPress: Function, }; const styles = StyleSheet.create({ container: { flexDire...
src/components/common/svg-icons/action/view-agenda.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewAgenda = (props) => ( <SvgIcon {...props}> <path d="M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.5...
src/svg-icons/av/forward-10.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward10 = (props) => ( <SvgIcon {...props}> <path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.8 3H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0...
src/my-react-component.js
KevinAst/ReactShoppingCart
'use strict'; import React from 'react'; /** * A common base class for all my app's react components. */ class MyReactComponent extends React.Component { constructor(...args) { super(...args); // autobind each method of our class to self, supporting efficient React event registration // NOTE: curren...
actor-apps/app-web/src/app/components/modals/InviteUser.react.js
boneyao/actor-platform
import _ from 'lodash'; import React from 'react'; import ActorClient from 'utils/ActorClient'; import { KeyCodes } from 'constants/ActorAppConstants'; import InviteUserActions from 'actions/InviteUserActions'; import ContactStore from 'stores/ContactStore'; import InviteUserStore from 'stores/InviteUserStore'; im...
packages/react-interactions/events/src/dom/Drag.js
rricard/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 type { ReactDOMResponderEvent, ReactDOMResponderContext, } from 'shared/ReactDOMTypes'; import type { Eve...
test/fixtures/spread/expected.js
layershifter/babel-plugin-transform-react-handled-props
import PropTypes from 'prop-types'; import React from 'react'; const someProps = { active: PropTypes.boolean }; function Example() { return <div />; } Example.handledProps = ["children", "className"]; Example.propTypes = { ...someProps, children: PropTypes.node, className: PropTypes.string }; export default E...
docs/app/Examples/collections/Table/Types/TableExampleStructured.js
shengnian/shengnian-ui-react
import React from 'react' import { Icon, Table } from 'shengnian-ui-react' const TableExampleStructured = () => ( <Table celled structured> <Table.Header> <Table.Row> <Table.HeaderCell rowSpan='2'>Name</Table.HeaderCell> <Table.HeaderCell rowSpan='2'>Type</Table.HeaderCell> <Table.H...
src/svg-icons/maps/local-atm.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalAtm = (props) => ( <SvgIcon {...props}> <path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 1...
react-poc-guests/app/containers/HomePage/index.js
Meesayen/react-poc
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor it and remove * the ...
src/components/Typeahead/Typeahead.js
GetAmbassador/react-ions
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames/bind' import enhanceWithClickOutside from 'react-click-outside' import fuzzy from 'fuzzy' import debounce from 'lodash/debounce' import Spinner from '../Spinner' import Input from '../Input' import Icon from '../Icon' import...
Example/src/pages/Menu/index.js
ErikMediaMonks/react-native-native-navigation
import React, { Component } from 'react'; import { Button, processColor, Text, View } from 'react-native'; import Detail from '../Detail'; import Detail2 from "../Detail2"; import { SingleView } from "react-native-native-navigation"; export default class Menu extends Component { static pageMap = [Detail]; handleMen...
app/containers/UserOrders/index.js
monkeyzealer/Webstore-FrontEnd
/* * * UserOrders * */ import React from 'react'; import Helmet from 'react-helmet'; import {Link} from 'react-router'; import Footer from 'components/Footer'; import NavBar from 'components/NavBar'; import Header from 'components/Header' import Responsive from 'react-responsive'; import Dialog from 'mater...
app/javascript/mastodon/features/ui/components/list_panel.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { fetchLists } from 'mastodon/actions/lists'; import { connect } from 'react-redux'; import { createSelector } from 'rese...
reactjs/react-beginners/src/components/Name.component.js
sharduul/lpages
import React, { Component } from 'react'; class NameComponent extends Component { constructor(props) { super(props); this.onClick = this.onClick.bind(this); this.state = { array: [3,4], userName: 'ninja' }; } componentDidMount() { console.log("name mounted"); } onClick() ...
src/components/Dataset/OrganizationFilter.js
giux78/daf-dataportal
import React from 'react'; import organizationList from '../../data/organizationList' import { serviceurl } from '../../config/serviceurl' import { Link } from 'react-router-dom'; export default class OrganizationFilter extends React.Component { constructor(props) { super(props) this.state = pr...
src/AffixMixin.js
azmenak/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; const AffixMixin = { propTypes: { offset: React.PropTypes.number, offsetTop: React.PropTypes.number, offsetBottom: React.PropTypes.number }, getInitialState() { return { a...
app/main.js
codeforabq/Open-Budget-ABQ
'use strict'; import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, IndexRoute } from 'react-router' import d3 from 'd3' import App from './components/app' import departments from './components/departments' import department from './components/department' import goals fr...
src/client.js
mikekidder/react-redux-universal-hot-example
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import queryString from 'query-string'; import cre...
app/index.js
Ivanwangcy/github-battle-tutorial
import React from 'react'; import ReactDOM from 'react-dom'; import routers from './config/routers'; ReactDOM.render( routers, document.getElementById('root') );
examples/custom-server-koa/pages/index.js
dizlexik/next.js
import React from 'react' import Link from 'next/link' export default () => ( <ul> <li><Link href='/b' as='/a'><a>a</a></Link></li> <li><Link href='/a' as='/b'><a>b</a></Link></li> </ul> )
src/scripts/shared/components/Main.js
Fourwinged/react-quizz
/* Main ** ** Base component where routes are injected */ import React from 'react'; class Main extends React.Component { render() { return ( <main className="base-main"> { this.props.children } </main> ); } } Main.propTypes = { children: Rea...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
olhakhomyak/cvMaker
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'));
src/components/Description/index.js
menikhilpandey/menikhilpandey.github.io
import React from 'react' import './index.css' class Description extends React.PureComponent { render() { return ( <div className={'DescriptionContainer'}> <div className={'NameContainer'}>Nikhil Pandey</div> <div className={'DesignationContainer'}> ...
app/javascript/mastodon/components/intersection_observer_article.js
esetomo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import scheduleIdleTask from '../features/ui/util/schedule_idle_task'; import getRectFromEntry from '../features/ui/util/get_rect_from_entry'; import { is } from 'immutable'; // Diff these props in the "rendered" state const updateOnPropsForRendered = ['id...
src/Button/Button.js
AndriusBil/material-ui
// @flow // @inheritedComponent ButtonBase import React from 'react'; import type { ComponentType, Node } from 'react'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import { fade } from '../styles/colorManipulator'; import ButtonBase from '../ButtonBase'; export const styles = (...
js/components/inputgroup/error.js
YeisonGomez/RNAmanda
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, Text, Body, Left, Right, IconNB, Item, Input } from 'native-base'; import { Actions } from 'react-native-router-flu...
examples/DemoSupportTagA.js
MrCheater/text-resize-and-word-wrap-provider
import React from 'react'; import { Text, textResizeAndWordWrap } from '../src'; import { randomContent } from './randomContent' @textResizeAndWordWrap export class DemoSupportTagA extends React.Component { render() { return ( <div> <svg width = {`${this.prop...
components/time_picker/ClockMinutes.js
react-toolbox/react-toolbox
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { range } from '../utils/utils'; import Hand from './ClockHand'; import Face from './ClockFace'; const minutes = range(0, 60, 5); const step = 360 / 60; class Minutes extends Component { static propTypes = { center: PropTypes.s...
src/js/components/icons/Pulse.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Add from './base/Add'; import CSSClassnames from '../../utils/CSSClassnames'; import classnames from 'classnames'; const CLASS_ROOT = CSSClassnames.PULSE; export d...
src/components/MagicWand.js
scolab/Exploding-Dots-PIXI
import React from 'react'; import PropTypes from 'prop-types'; import img from './images/magicWand.gif'; const MagicWand = (props) => { /* eslint-disable no-dupe-keys */ return ( <button className="topRightMenuItem" style={{ // backgroundColor : '#efefef', background: '#efefef', /* ...
src/js/components/Button/stories/Multiple.js
HewlettPackard/grommet
import React from 'react'; import { Box, Button } from 'grommet'; import { Add } from 'grommet-icons'; export const Multiple = () => ( <Box align="center" pad="large"> <Box direction="row" align="center" gap="small" pad="xsmall"> <Button label="Cancel" onClick={() => {}} /> <Button color="d...
docs/app/Examples/collections/Message/Types/MessageIconPropExample.js
jamiehill/stardust
import React from 'react' import { Message } from 'stardust' const MessageIconPropExample = () => ( <Message icon='inbox' header='Have you heard about our mailing list?' content='Get the best news in your e-mail every day.' /> ) export default MessageIconPropExample
src/js/modules/videoAnchor/UI/ToolBtn.js
zacyu/bilibili-helper
/** * Author: DrowsyFlesh * Create: 2018/10/10 * Description: */ import React from 'react'; import styled from 'styled-components'; import ToolContentBuilder from './ToolContent'; export default () => { const ToolContent = ToolContentBuilder(); const HelperBtn = styled.span` display: inline-block; ...
node_modules/react-router/es/StaticRouter.js
raheelhassan1214/tanveerhospital
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 = {...
src/components/AboutAndHelp.js
IAmPicard/StarTrekTimelinesSpreadsheet
import React from 'react'; import { getAppVersion, openShellExternal } from '../utils/pal'; import snarkdown from 'snarkdown'; import STTApi from '../api'; export class AboutAndHelp extends React.Component { constructor(props) { super(props); STTApi.getGithubReleases().then((data) => { this.setState({ vers...
examples/shared-root/app.js
Nedomas/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/shared-root' }) class App extends React.Component { render() { return ( <div> <p> This illustrates ...
src/containers/ErranAndrews.js
uglybunnies/ub-react
import React from 'react' import { Head } from 'react-static' // var popPic = require('js/popPic.js') export default () => ( <div> <Head> <title>Ugly Bunnies -- Erran Andrews Hair Design</title> </Head> <header className="splash lh0"> <img src="/assets/web-projects/er...
src/modules/pages/ApiListPage/ApiListPage.js
hellofresh/janus-dashboard
import React from 'react' import { Link } from 'react-router-dom' import { connect } from 'react-redux' import SearchingContainer from '../../../components/SearchBar/searchContainer' import ApiListContainer from './apiListContainer' import Section from '../../Layout/Section/Section' import Row from '../../Layout/Row/...
src/js/components/icons/base/FormAdd.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/components/Layout/Layout.js
ACGNTaiwan/acgnFront
/** * 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-...
actor-apps/app-web/src/app/components/Main.react.js
voidException/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from '../actions/VisibilityActionCreators'; import FaviconActionCreators from 'actions/FaviconActionCreators'; import FaviconStore from 'stores/FaviconStore'; import ActivitySection from 'components/ActivitySecti...
src/svg-icons/maps/local-library.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalLibrary = (props) => ( <SvgIcon {...props}> <path d="M12 11.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6.64 1.35-9 3.55zM12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3-...
components/User/UserRegistration/UserRegistration.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import {navigateAction} from 'fluxible-router'; import {connectToStores} from 'fluxible-addons-react'; import {Microservices} from '../../../configs/microservices'; import {publicRecaptc...
src/components/avatar/avatar.stories.js
teamleadercrm/teamleader-ui
import React from 'react'; import { Avatar, Bullet } from '../../index'; import avatars from '../../static/data/avatar'; import { addStoryInGroup, MID_LEVEL_BLOCKS } from '../../../.storybook/utils'; export default { component: Avatar, title: addStoryInGroup(MID_LEVEL_BLOCKS, 'Avatar'), parameters: { design...
src/components/common/svg-icons/action/search.js
abzfarah/Pearson.NAPLAN.GnomeH
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...
packages/reflow-board/src/components/Project/index.js
Bamieh/re-flow
import React from 'react'; import { Link } from 'react-router-dom'; import moment from 'moment'; import StatusCircle from '../StatusCircle'; import './style.css'; const getProjectDetails = (project) => { // this is a hack, it must be contianed inside the graphQL project result const BACKEND = "cHJvamVjdF82MzY2OT...
internals/templates/app.js
perry-ugroop/ugroop-react-dup2
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved, import/extensions */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name]....
js/components/button/disabled.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { View } from 'react-native'; import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text, H3 } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { actions } from 'react-native-na...
react-flux-mui/js/material-ui/src/svg-icons/av/add-to-queue.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAddToQueue = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z"/> ...
frontend/components/app.js
Pklong/twooter
import React from 'react' import { Route } from 'react-router-dom' import { ProtectedRoute, AuthRoute } from '../util/route-util' import Landing from './landing' import UserIndex from './users/user-index' import TwootFeed from './twoots/twoot-feed' const App = () => ( <main> <AuthRoute exact path="/" if={TwootFe...
js/src/components/Editor/index.js
understory-dev/react-draft-wysiwyg
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Editor, EditorState, RichUtils, convertToRaw, convertFromRaw, CompositeDecorator, } from 'draft-js'; import { changeDepth, handleNewLine, getCustomStyleMap, extractInlineStyle, } from 'draftjs-utils';...
src/Containers/Login.js
TaylorRayHoward/ReactReduxMessageBoard
import React, { Component } from 'react'; import SimpleBox from '../Components/SimpleBox'; import InputField from '../Components/InputField'; import FooterFormButton from '../Components/FooterFormButton'; import { login, getUser, googleLogin, twitterLogin } from '../Actions/UserActions'; import { connect } from 'react-...
docs/src/app/components/pages/components/List/ExampleFolders.js
owencm/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ActionInfo from 'material-ui/svg-icons/action/info'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; import Avatar from 'material-ui/Avatar...
site/pages/APIPage.js
jchristman/react-context-menus
import React, { Component } from 'react'; import Header from '../components/Header'; import PageBody from '../components/PageBody'; import SideBar from '../components/SideBar'; import StaticHTMLBlock from '../components/StaticHTMLBlock'; import { APIPages } from '../Constants'; export default class APIPage extends Com...
sublime3/Packages/babel-sublime-master/test/syntax_test_react_class_OLD.js
constantx/dotfiles
// SYNTAX TEST "Packages/babel-sublime/JavaScript (Babel).tmLanguage" import React from 'react'; //^^^^ keyword.operator.module //<- source.js // ^^^^^ variable.other.readwrite // ^^^^ keyword.operator.module // ^^^^^^^ string.quoted // ^ string.quoted punctuation.definition...
src/pages/lopaka.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Lopaka' /> )
src/components/Footer/Navigation/Views/Desktop/tpl.js
HopeUA/tv.hope.ua-react
/** * [IL] * Library Import */ import React from 'react'; /** * [IS] * Style Import */ import Styles from './Styles/main.scss'; import Grids from 'theme/Grid.scss'; /** * [IA] * Assets Import */ import Instagram from 'components/Assets/Social/Instagram'; import Facebook from 'components/Assets/Social/Fb'; im...
src/components/icons/EmptyStateIcon.js
austinknight/ui-components
import React from 'react'; const EmptyStateIcon = props => ( <svg {...props.size || { width: '144px', height: '144px' }} {...props} viewBox="0 0 144 144"> {props.title && <title>{props.title}</title>} <defs> <path d="M76,8 L20,8 C15.6,8 12,11.6 12,16 L12,72 C12,76.4 15.6,80 20,80 L36,80 L48,92 L60,80...
docs/src/pages/demos/dialogs/FullScreenDialog.js
AndriusBil/material-ui
/* eslint-disable flowtype/require-valid-file-annotation */ import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Button from 'material-ui/Button'; import Dialog from 'material-ui/Dialog'; import List, { ListItem, ListItemText } from 'material-ui/List'; ...
src/components/DialogCloseAnimation/index.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; /** * Component that handles the material-ui/Dialog close animation when a Dialog unmounts. */ export default class DialogCloseAnimation extends React.Component { timeout = null; static propTypes = { children: PropTypes.element, delay: PropT...
shared/components/game/boardPanel/tiles.react.js
marek-sed/cogni
import React from 'react'; import Tile from './tile.react.js'; import _ from 'lodash'; const Tiles = ({currentRound: { token: {signalPosition, endPosition}}, player: {role}}) => { const getText = id => role !== 'Sender' ? '' : id === signalPosition && signalPosition === endPosition ...
__mocks__/react-native.js
marmelab/Posters_Galore_Android
/* eslint-disable react/no-multi-comp */ /** * @see http://www.schibsted.pl/2015/10/testing-react-native-components-with-jest/ */ import React from 'react'; const ReactNative = React; ReactNative.StyleSheet = { create: function create(styles) { return styles; }, }; class View extends React.Component...
src/js/views/NotFoundView/index.js
nikenou/redux-cart
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class NotFoundView extends Component { render () { return ( <div className='container text-center'> <h1>This is a demo 404 page!</h1> <hr /> <Link to='/'>Back To Home View</Link> </di...
src/scenes/home/landing/membership/membership.js
hollomancer/operationcode_frontend
import React from 'react'; import Section from 'shared/components/section/section'; import IconCard from 'shared/components/iconCard/iconCard'; import styles from './membership.css'; const Membership = () => ( <Section title="Membership" theme="white"> <div className={styles.intro}> <p> Joining Op-...
src/test-common.js
nirhart/wix-style-react
import React from 'react'; import ReactDOM from 'react-dom'; const componentFactory = Component => { let element; let componentInstance; const wrapperDiv = document.createElement('div'); const ClonedComponent = React.cloneElement(Component, {ref: r => componentInstance = r}); ReactDOM.render(<div ref={r => ...
components/input.js
icarlossz/icarlossz.github.io
import React from 'react' export default ({...props}) => { const type = props.type || 'text' const value = props.value || '' const name = props.name || value.toLowerCase() || '' const textarea = props.textarea || false const classNames = textarea && 'textarea' || 'input' return ( <div className={`inputContain...
src/message/IconStarMessage.js
nashvail/zulip-mobile
/* @flow */ import React from 'react'; import { StyleSheet, View } from 'react-native'; import { IconStar } from '../common/Icons'; const styles = StyleSheet.create({ iconWrapper: { marginTop: 4, flex: 0.1, }, iconStar: { fontSize: 20, color: '#447C22', alignSelf: 'flex-end', }, }); expor...
src/svg-icons/image/image.js
ruifortes/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...
packages/wix-style-react/.wuf/generator/templates/$ComponentName/$ComponentName.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import Text from '../Text'; import Button from '../Button'; import { st, classes } from './<%= ComponentName %>.st.css'; import { dataHooks } from './constants'; /** <%= description %> */ class <%= ComponentName %> extends React.PureComponent { state = ...
src/PageItem.js
xsistens/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import SafeAnchor from './SafeAnchor'; const PageItem = React.createClass({ propTypes: { href: React.PropTypes.string, target: React.PropTypes.string, title: React.PropTypes.string, disabled: React.PropTypes.bool, previous: React.Pr...
src/components/todos/todo/TodoCheck.js
thiagoc7/mp_parse
import React from 'react' const Checkbox = ({isChecked, onClick}) => ( <input type="checkbox" style={{margin: 5}} checked={isChecked} onChange={onClick}/> ) Checkbox.propTypes = { isChecked: React.PropTypes.bool.isRequired, onClick: React.PropTypes.func.isRequired }; export de...
src/interface/others/RestorationShamanSpreadsheet.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import PrePotion from 'parser/shared/modules/items/PrePotion'; import BaseHealerStatValues from 'parser/shared/modules/features/BaseHealerStatValues'; im...
src/components/Footer.js
Jalissa/rss-feed-client
import React from 'react'; const Footer = () => { return ( <footer className="footer"> <div className="container"> <p className="text-muted">BLAH BLAH BLAH BLAH BLAH....</p> </div> </footer> ); }; export default Footer;
src/utils/grid_helper.js
jonathanweiss/pixelboard
import React from 'react'; import Column from '../components/column.jsx'; import Row from '../components/row.jsx'; import Led from '../components/led.jsx'; import { characters, missingno } from './configuration.js'; const getBits = (character, gridConfiguration) => { const grid = []; const source = characters[ch...
src/Card/CardActions.js
skarnecki/material-ui
import React from 'react'; function getStyles() { return { root: { padding: 8, position: 'relative', }, action: { marginRight: 8, }, }; } class CardActions extends React.Component { static propTypes = { /** * If true, a click on this card component expands the card. ...
docs/src/pages/404.js
evanlucas/node-tap
import React from 'react'; import Navbar from '../components/navbar'; import styled from 'styled-components'; import {Flex} from 'rebass'; import exclamationMark from '../images/exclamation.gif'; import EncircledImage from '../components/EncircledImage'; import SEO from '../components/seo'; const Container = styled(Fl...
geonode/monitoring/frontend/src/components/molecules/total-requests/index.js
mcldev/geonode
import React from 'react'; import PropTypes from 'prop-types'; import CircularProgress from 'material-ui/CircularProgress'; import HoverPaper from '../../atoms/hover-paper'; import styles from './styles'; class TotalRequests extends React.Component { static propTypes = { requests: PropTypes.number, } stati...
examples/cancellable-counter/src/main.js
granmoe/redux-saga
/*eslint-disable no-unused-vars*/ import "babel-polyfill" import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { createStore, applyMiddleware } from 'redux' import createSagaMiddleware from 'redux-saga' import sagaMonitor from '../../sagaMonitor' import reducer fr...
app/javascript/mastodon/components/button.js
Chronister/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/containers/ui/NavbarMenuButton/NavbarMenuButtonView.js
eventures-io/ldn-retail-demo
/** * Navbar Menu Button * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import PropTypes from 'prop-types'; import { TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; /* Component =======================...
fields/types/boolean/BooleanFilter.js
ratecity/keystone
import React from 'react'; import { SegmentedControl } from '../../../admin/client/App/elemental'; const VALUE_OPTIONS = [ { label: 'Is Checked', value: true }, { label: 'Is NOT Checked', value: false }, ]; function getDefaultValue () { return { value: true, }; } var BooleanFilter = React.createClass({ propTy...
src/docs/examples/TextInputCSSModules/ExampleError.js
emanualjade/react-jade
import React from 'react'; import TextInputCSSModules from 'ps-react/TextInputCSSModules'; export default class ExampleError extends React.Component { render() { return ( <TextInputCSSModules htmlId="example-optional" label="First Name" name="firstname" required erro...
client/app/components/TrainStation.js
w1nston/trainhack
import React from 'react'; export default function TrainStation({ stationName, onClick }) { return ( <tr> <td> <a href="#" onClick={onClick}>{ stationName }</a> </td> </tr> ); }
src/components/Main.js
lynnaloo/mullet
import React from 'react'; import ReactDOM from 'react-dom'; import Facebook from './Facebook'; ReactDOM.render( <Facebook title="Welcome to the Mullet Stack." subtitle="Facebook in the front. Walmart in the back." />, document.getElementById('facebook') );
src/client.js
dongxiaofen/react-redux-motion
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './redux/create'; // import ApiClient from './helpers/ApiClient'; import {Provider} from 'react-redux'; ...
app/routes/index.js
amrit92/educron-ssr
import React from 'react'; import {Router, Route, IndexRoute, hashHistory} from 'react-router'; import {redirectIfGuest, redirectIfAuthenticated} from '../redux/containers/requireAuth'; import AppMaster from '../components/layouts/master/AppMaster'; import {LoginContainer, ProfileContainer, RegisterContainer, LogoutC...
app/assets/scripts/views/upload.js
orma/openroads-vn-analytics
'use strict'; import React from 'react'; import config from '../config'; import T from '../components/t'; var Upload = React.createClass({ render: function () { return ( <section className='inpage'> <header className='inpage__header'> <div className='inner'> <div className='i...
bai/src/components/RelatedOrganizations/index.js
blackinai/blackinai.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import { Container, Divider, Chip, Button, Avatar, Link} from '@material-ui/core/'; import Typography from './../Typography'; import backgroundImage from './.....
src/containers/app.js
TedtheDev/Tic-Tac-Toe
import React, { Component } from 'react'; import { Route, Switch, Redirect } from 'react-router-dom'; import { withRouter } from 'react-router'; import { } from '../actions/index'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Navbar from '../containers/navbar'; import Home ...