path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/addons/config/layout.js
garrensmith/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...
src/index.js
mkoennecke/radieschenjs
import React from 'react'; import ReactDOM from 'react-dom'; import Radieschen from './Radieschen'; import './index.css'; ReactDOM.render( <Radieschen />, document.getElementById('root') );
packages/mineral-ui-icons/src/IconStarBorder.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 IconStarBorder(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
shared/modules/utils/components/Loader.js
founderlab/fl-base-webapp
import React from 'react' import PropTypes from 'prop-types' export default function Loader(props) { return (<div className="loader-wrapper"><div className="loader">loading...</div></div>) }
modules/gui/src/widget/leaveAlert.js
openforis/sepal
import {compose} from 'compose' import {connect} from 'store' import React from 'react' import _ from 'lodash' export const withLeaveAlert = mapStateToLeaveAlert => WrappedComponent => { class HigherOrderComponent extends React.Component { constructor() { super() ...
src/svg-icons/device/bluetooth-disabled.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothDisabled = (props) => ( <SvgIcon {...props}> <path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29...
src/containers/HomeSearch/index.js
kokengthecoder/github-user-search
import React, { Component } from 'react'; import SearchBar from './SearchBar'; import ListUser from './ListUser'; import { Grid } from 'semantic-ui-react'; class HomeSearch extends Component { render() { return ( <Grid centered> <Grid.Row> <h1>Github User Search</h1> </Grid.Row> <Grid.Row> ...
internals/templates/homePage.js
ReelTalkers/reeltalk-web
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react' export function HomePage() { return ( <h1>This is the Homepage!</h1> ) } export default HomePage
packages/material-ui-icons/src/PermIdentity.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let PermIdentity = props => <SvgIcon {...props}> <path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 ...
lib/editor/components/editors/FinisherEditor.js
jirokun/survey-designer-js
import React, { Component } from 'react'; import { connect } from 'react-redux'; import cuid from 'cuid'; import { Col, FormGroup, ControlLabel, FormControl } from 'react-bootstrap'; import tinymce from 'tinymce'; import HtmlEditorPart from '../question_editors/parts/HtmlEditorPart'; import * as EditorActions from '../...
src/client/components/dialogs/Confirm.js
vanpaz/vbi
import React from 'react' import Dialog from 'material-ui/lib/dialog' import FlatButton from 'material-ui/lib/flat-button' import bindMethods from '../../utils/bindMethods' /** * Usage: * * <Confirm ref="confirmDialog" /> * * this.refs.confirmDialog.show({ * title: 'Sign in', * description...
app/components/clock.js
romankhrystynych/raspitron
// @flow import moment from 'moment'; import React, { Component } from 'react'; import styles from './styles.css'; class Clock extends Component { constructor(props) { super(props); this.state = { time: '' }; } componentWillMount() { this.setTime(); } componentDidMount() { this.lo...
app/containers/FeaturePage/index.js
jdm85kor/sentbe
/* * FeaturePage * * List all the features */ import React from 'react'; import Helmet from 'react-helmet'; import messages from './messages'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import List from './List'; import ListItem from './ListItem'; import ListItemTitle from './Li...
app/javascript/mastodon/features/account_timeline/containers/header_container.js
danhunsaker/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import Header from '../components/header'; import { followAccount, unfollowAccount, unblockAccount, unmuteAccount, pinAccount, unpinAccount, } from '../../../actions/accounts'; import { m...
javascript/components/VectorSource.js
bsudekum/react-native-mapbox-gl
import React from 'react'; import PropTypes from 'prop-types'; import {NativeModules, requireNativeComponent} from 'react-native'; import {cloneReactChildrenWithProps, viewPropTypes, isFunction} from '../utils'; const MapboxGL = NativeModules.MGLModule; export const NATIVE_MODULE_NAME = 'RCTMGLVectorSource'; /** *...
scr-app/src/components/AutoComplete.js
tlatoza/SeeCodeRun
//Original: https://material-ui-next.com/demos/autocomplete/ import React from 'react'; import PropTypes from 'prop-types'; import Autosuggest from 'react-autosuggest'; import match from 'autosuggest-highlight/match'; import parse from 'autosuggest-highlight/parse'; import Paper from '@material-ui/core/Paper'; import M...
demo/app/client/packages/users/index.js
jsdf/webpack_rails
import React from 'react' import automountComponent from '../automountComponent' console.log('a')
public/src/components/input/input.js
rafaelfbs/rmodel
import React, { Component } from 'react'; import * as inputs from './inputs/index'; import { observer } from 'mobx-react'; export default class Input extends Component { get type() { const { model, name } = this.props; return model.fields[name].inputType; } get component() { const input =...
data-browser-ui/public/app/components/tableComponents/columnOptionsComponent.js
CloudBoost/cloudboost
import React from 'react'; import { observer } from "mobx-react" import {Checkbox,TextField} from 'material-ui' import configObject from '../../config/app.js' import {Popover, PopoverAnimationVertical} from 'material-ui/Popover' @observer class ColumnOptions extends React.Component { constructor(){ super() this.s...
app/index.js
w1nston/jwdotcom
import React from 'react'; import ReactDOM from 'react-dom'; import Main from './Main'; ReactDOM.render( <Main />, document.getElementById('root-content') );
docs/src/app/components/pages/components/Toggle/Page.js
ichiohta/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import toggleReadmeText from './README'; import ToggleExampleSimple from './Exam...
app/javascript/mastodon/features/picture_in_picture/index.js
tri-star/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import Audio from 'mastodon/features/audio'; import { removePictureInPicture } from 'mastodon/actions/picture_in_picture'; import Header from './components/header'; import F...
client/Contests/components/MessageComponent.js
rystecher/senior-design
import React from 'react'; import { getTeamMessages, sendMessageToJudge } from '../ContestActions.js'; import { ChatFeed, Message } from './chat-ui/lib/index.js'; export default class MessageComponent extends React.Component { constructor(props) { super(props); this.state = { messageObjs: [] }; ...
src/Game/UI/Row/Character.js
digijin/space-station-sim
//@flow import {keys} from 'lodash' import type Character from 'Game/Type/Character' import Bar from 'Game/UI/Components/Bar' import React from 'react' import type {Skill} from 'Game/Data/Character/Skill' type Props = {character:Character} export default class CharacterRow extends React.Component { props: Props...
test/js/AR/selectASurface.js
viromedia/viro
/** * Copyright (c) 2017-present, Viro Media, 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. */ import Re...
src/client/vendor/ReduxInfiniteScroll.js
busyorg/busy
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; function topPosition(domElt) { if (!domElt) { return 0; } return domElt.offsetTop + topPosition(domElt.offsetParent); } function leftPosition(domElt) { if (!domElt) { return 0; } return domElt.offsetLe...
src/svg-icons/content/drafts.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentDrafts = (props) => ( <SvgIcon {...props}> <path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>...
src/pagination/index.js
wisedu/bh-react
import React from 'react'; import RCPagination from 'rc-pagination'; import Select from 'rc-select'; require('rc-select/assets/index.css'); require('./bh-pagination.scss'); const prefixCls = 'bhr-pagination'; module.exports = React.createClass({ render: function() { let className = this.props.className; if (...
src/components/Header.js
kjwatke/weather_app_updated_July-2017
import React from 'react'; import Logo from './Logo'; const Header = () => (<div className="navbar-fixed"> <nav className="green darken-4"> <div className="nav-wrapper"> <Logo className="brand-logo" /> </div> </nav> </div>); export default Header;
src/common/components/Error.js
nnnoel/graphql-apollo-resource-manager
import React from 'react'; import Box from 'grommet/components/Box'; import Anchor from 'grommet/components/Anchor'; import Article from 'grommet/components/Article'; import Status from 'grommet/components/icons/Status'; export default ({ message, onClick }) => ( <Article id="error-display" pad="none" full="vertical...
app/components/svg/index.js
ayrton/pinata
/* @flow */ import InlineSVG from 'svg-inline-react'; import React from 'react'; /** * Svg component. */ export default function Svg(props: Object): ReactElement { return ( <InlineSVG raw={true} {...props} /> ); }
frontend/src/Activity/Queue/QueueRowConnector.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { grabQueueItem, removeQueueItem } from 'Store/Actions/queueActions'; import createMovieSelector from 'Store/Selectors/createMovieSelector'; import creat...
js/components/Form.react.js
mxstbr/login-flow
/** * Form.react.js * * The form with a username and a password input field, both of which are * controlled via the application state. * */ import React, { Component } from 'react'; import { changeForm } from '../actions/AppActions'; import LoadingButton from './LoadingButton.react'; import ErrorMessage from './...
src/parser/deathknight/unholy/modules/runicpower/RunicPowerDetails.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Panel from 'interface/others/Panel'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import { formatPercentage } from 'common/format'; import Icon from 'common/Icon'; import ResourceBreakdown from 'parser/shar...
src/ChallengeMeta4/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import Typography from '../Typography'; import LabelSmall from '../LabelSmall'; import classNames from 'classnames'; import styles from './styles.css'; function ChallengeMeta4(props) { let teamLabel = ''; if (props.yourTeam) { teamLabel = props.yo...
src/js/components/pagination/pagination.js
rafaelfbs/realizejs
import React, { Component } from 'react'; import PropTypes from '../../prop_types'; import { mixin } from '../../utils/decorators'; import { CssClassMixin } from '../../mixins'; import { Input, PaginationItem } from '../../components'; @mixin(CssClassMixin) export default class Pagination extends Component { static...
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/phone-paused.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationPhonePaused = (props) => ( <SvgIcon {...props}> <path d="M17 3h-2v7h2V3zm3 12.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45...
src/svg-icons/action/invert-colors.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInvertColors = (props) => ( <SvgIcon {...props}> <path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 1...
src/pages/index.js
victormoya/lavergeweb
import React from 'react'; import Helmet from 'react-helmet'; import PlayButton from '../components/playButton'; import Modal from 'react-modal'; import Template from '../layouts/template'; import '../../static/scss/all.scss'; const modalStyles = { content: { top: '50%', left: '50%', right:...
src/Router.js
allfix53/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
react-router-tutorial/lessons/11-productionish-server/modules/Repo.js
zerotung/practices-and-notes
import React from 'react' export default React.createClass({ render() { return ( <div> <h2>{this.props.params.repoName}</h2> </div> ) } })
src/hoc/selectable-enhance.js
mikedklein/material-ui
import React from 'react'; import ThemeManager from '../styles/theme-manager'; import StylePropable from '../mixins/style-propable'; import ColorManipulator from '../utils/color-manipulator'; import DefaultRawTheme from '../styles/raw-themes/light-raw-theme'; export const SelectableContainerEnhance = (Component) => { ...
client/src/dataProviders/sharedDataProviders.js
verejnedigital/verejne.digital
// @flow import React from 'react' import {receiveData} from '../actions/sharedActions' import {setEntityDetails} from '../actions/publicActions' import {ModalLoading} from '../components/Loading/Loading' import type {Company, NewEntityDetail} from '../state' import type {Dispatch} from '../types/reduxTypes' import typ...
indico/web/client/js/jquery/widgets/jinja/datetime_widget.js
indico/indico
// This file is part of Indico. // Copyright (C) 2002 - 2022 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. import React from 'react'; import ReactDOM from 'react-dom'; import {WTFDateTimeField} from 'indico...
information/blendle-frontend-react-source/app/components/dialogues/Confirm.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import Dialogue from './Dialogue'; import Button from 'components/Button'; import classNames from 'classnames'; import { keyCode } from 'app-constants'; class Confirm extends React.Component { static propTypes = { title: PropTypes.string.isRequired, ...
src/icons/AndroidRadioButtonOff.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidRadioButtonOff extends React.Component { render() { if(this.props.bare) { return <g> <g id="Icon_20_"> <g> <path d="M256,48C141.601,48,48,141.601,48,256s93.601,208,208,208s208-93.601,208-208S370.399...
src/routes.js
cessien/buzzer
// src/routes.js import React from 'react' import { Route, IndexRoute, browserHistory } from 'react-router' import Base from './components/Base'; import IndexPage from './components/IndexPage'; import Login from './components/Login'; import Splash from './components/Splash'; import Register from './components/Re...
src/containers/AppGame.js
jonishaso/nice-tdl
import React, { Component } from 'react'; import '../style/game.css'; const selectedCell = { background: "white" } const randomCell = { background: "green" } const crashCell = { background: "orange" } let sytleShow = (self, randomString, currentString) => { // isCurrent = selectedCell , isRandom = randonCell...
src/templates/article.js
yen223/yens-blog
import React from 'react' import Link from 'gatsby-link' import Typography from 'typography' export const Article = (props) => { const article = props.data.markdownRemark const html = {__html: article.html} return ( <div> <h1> {article.frontmatter.title} </h1> <div dangerouslySetInne...
packages/web/src/components/modal/ModalPortal.js
hwaterke/inab
import PropTypes from 'prop-types' import React from 'react' /** * This is the basic presentation for a modal. * It should never be used alone. * The Modal component renders this in a modal div using a react portal */ export class ModalPortal extends React.Component { static propTypes = { children: PropTypes...
demo/input/index.js
hhhyaaon/chequer
import React from 'react'; import ReactDOM from 'react-dom'; import Container from '../../tpls/index'; import Input from '../../components/input'; import Icon from '../../components/icon'; import './index.scss'; export default class D_Input extends React.Component { constructor(props) { super(props); } rend...
static/src/containers/App/index.js
pfarnach/pulse
import React, { Component } from 'react'; import socket from '../../utils/socket'; import _ from 'lodash'; import MapContainer from '../MapContainer/mapContainer'; import './style.scss'; const sendPulse = _.debounce(() => socket.emit('client_pulse', {}), 500, { leading: true }); export class App extends Component { ...
src/TodoApp/TodoList/Todo.js
ksmithbaylor/react-todo-list
import React from 'react'; export default class Todo extends React.Component { static propTypes = { text: React.PropTypes.string.isRequired } state = { completed: false } render() { const style = { textDecoration: this.state.completed ? 'line-through' : undefined, marginTop: '0', ...
examples/counter/containers/App.js
ytiurin/redux
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider r...
src/react.js
ze-flo/redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, Connector, provide, connect } = createAll(React);
example/src/index.js
erikras/redux-form-material-ui
import React from 'react' import ReactDOM from 'react-dom' import injectTapEventPlugin from 'react-tap-event-plugin' import { Provider } from 'react-redux' import { createStore, combineReducers } from 'redux' import { reducer as reduxFormReducer } from 'redux-form' import getMuiTheme from 'material-ui/styles/getMuiThem...
src/containers/food.js
rosiene/growup-game
import React from 'react'; import Circle from './circle'; class Food extends React.Component { render(){ return( <Circle r={this.props.r} cx={this.props.cx} cy={this.props.cy} fill={this.props.fill} /> ); } } export default Food;
src/decorators/withViewport.js
neilhighley/fintechathon_svr
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
src/chromeApp/window.js
zalmoxisus/remotedev-app
import React from 'react'; import { render } from 'react-dom'; import App from '../app'; chrome.storage.local.get({ 'monitor': 'InspectorMonitor', 'test-templates': null, 'test-templates-sel': null, 's:hostname': null, 's:port': null, 's:secure': null }, options => { render( <App selectMonitor=...
app/javascript/src/components/packageBlocks/InserterForm.js
michelson/chaskiq
import React from 'react' import FormDialog from '../../components/FormDialog' import Button from '../../components/Button' import ErrorBoundary from '../../components/ErrorBoundary' import { AppList, } from './AppList' export default function InserterForm({ isOpen, closeHandler, loading, handleAdd, packages, ...
src/components/Link.js
lingxiao-Zhu/react-redux-demo
/** * Created by larry on 2017/1/6. */ import React from 'react'; const Link = ({active,children,onClick}) => { if(active){ return <span>{children}</span> } return( <a href="#" onClick={e=>{ e.preventDefault(); onClick(); }} > {children} </a> ) } expor...
src/libs/popup/Popup/index.js
erhathaway/cellular_automata
import React from 'react'; import Component from './Component'; export default ({ show, ...props }) => { if (show) return (<Component {...props} />); return null; };
actor-apps/app-web/src/app/components/modals/MyProfile.react.js
liuzwei/actor-platform
//import _ from 'lodash'; import React from 'react'; import { KeyCodes } from 'constants/ActorAppConstants'; import MyProfileActions from 'actions/MyProfileActions'; import MyProfileStore from 'stores/MyProfileStore'; import AvatarItem from 'components/common/AvatarItem.react'; import Modal from 'react-modal'; imp...
src/components/common/icons/Warning.js
WendellLiu/GoodJobShare
import React from 'react'; /* eslint-disable */ const Warning = (props) => ( <svg {...props} width="148" height="148" viewBox="0 0 148 148"> <g fillRule="evenodd" transform="translate(0 5)"> <ellipse cx="73.959" cy="111.077" rx="5.2" ry="5.205"/> <path d="M69.3353998,53.0952988 L69.3353998,93.02983 C...
src/svg-icons/communication/no-sim.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1....
docs/app/Examples/views/Feed/Content/FeedExampleSummaryDateShorthand.js
mohammed88/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const FeedExampleSummaryDate = () => ( <Feed> <Feed.Event> <Feed.Label image='http://semantic-ui.com/images/avatar/small/jenny.jpg' /> <Feed.Content> <Feed.Summary content='You added Jenny Hess to your coworker group...
examples/src/index.js
perminder-klair/react-sound
import React from 'react'; import Example from './Example'; React.render(<Example />, document.getElementById('app'));
pages/api/grid.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './grid.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
app/components/Home.js
bopace/headrest
import React from 'react'; import Tappable from 'react-tappable'; import Habit from './Habit'; import '../css/home.css'; import HabitStore from '../stores/habit'; const Home = React.createClass({ displayName: 'Home', login() { this.props.loginAction(); }, render: function() { return ...
src/components/popup/popup_header.js
n7best/react-weui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; /** * Sample Popup header for Popup * */ const PopupHeader = (props) => { const { left, right, leftOnClick, rightOnClick, className } = props; const cls = classNames('weui-popup__hd', className);...
src/js/components/icons/base/TestDesktop.js
linde12/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/Grid/components/__tests__/Header-test.js
jmcriffey/react-ui
import Mingus from 'mingus'; import React from 'react'; import fixtures from './fixtures'; import Header from '../Header'; Mingus.createTestCase('HeaderTest', { testRender() { const columnIndex = 0; const column = fixtures.columns[columnIndex]; const rendered = this.renderComponent( ...
app/components/IssueIcon/index.js
j921216063/chenya
import React from 'react'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className} > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
src/data/warranties.js
aries-auto/ariesautomotive
import React from 'react'; module.exports = { addressHtml: ( <div> <p>ATTN: WARRANTY DEPT.</p> <p></p> <p>ARIES AUTOMOTIVE</p> <p>2611 Regent Boulevard</p> <p>Suite 300</p> <p>DFW Airport, TX 75261 USA</p> <p></p> <p>Phone: (888) 635-9824</p> <p></p> <p>Fax: (972) 352-2617</p> <p>Ema...
node_modules/react-router/es/Router.js
oiricaud/horizon-education
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 _classCallCheck(instance, Constructor) { if (!(insta...
submissions/arqex/src/components/AppContainer.js
enkidevs/flux-challenge
import React, { Component } from 'react'; import State from '../State'; import App from './App'; export default class AppContainer extends Component { render() { var state = State.get(); return ( <div className="app-container"> <App appState={ state } /> </div> ); } componentDidMount(){ State.on('...
src/app/components/Summer.js
omarglz/rgvelite
import React from 'react'; export class Summer extends React.Component { render() { return ( <div className="summer-camp"> <div className="summer-camp-title bg-white"> <div className="summer-camp-title-overlay ph5-ns ph4 ph6-l pv4"> <h1 className="db f1-ns f2 lh-solid tc fw3 mt0 pa0 prim-...
docs/src/index.js
bokuweb/react-motion-menu
import React from 'react'; import { render } from 'react-dom'; import Example from './example'; render(<Example />, document.querySelector('.content'));
app/javascript/pawoo/containers/followers_you_follow_column.js
pixiv/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../mastodon/components/avatar'; import Permalink from '../../mastodon/components/permalink'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import { ...
examples/basic/src/containers/Home.js
calvinrbnspiess/react-static
import React from 'react' import { getSiteProps } from 'react-static' // import logoImg from '../logo.png' export default getSiteProps(() => ( <div> <h1 style={{ textAlign: 'center' }}>Welcome to</h1> <img src={logoImg} alt="" /> </div> ))
app/javascript/mastodon/features/notifications/components/filter_bar.js
5thfloor/ichiji-social
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; const tooltips = defineMessages({ mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' }, favourites: { id: '...
app/containers/tutorial/fourth.js
DeividasK/my-future-ai
import React from 'react' import SimpleList from 'components/lists/simple' import { updateStep, updateHeading, updateActions } from '../../actions/TutorialActions' import { FormattedMessage, defineMessages, injectIntl } from 'react-intl' const content = defineMessages({ title: { id: 'app.tutorial.step4.title', defaul...
src/components/label.js
selfcontained/labelr-react-ampersand-demo
import React from 'react'; import ampersandMixin from 'ampersand-react-mixin'; export default React.createClass({ displayName: 'Label', mixins: [ampersandMixin], getInitialState () { const {name, color} = this.props.label; return { name: name, color: color ...
internal/reactgroup/storybook/demo/src/Profile.stories.js
agrc/Presentations
import React from 'react'; import Profile from './Profile'; import profileImage from './monkey.png' export default { title: 'Profile', component: Profile, }; const data = { firstName: 'Story', lastName: 'Book', profileImage, bio: 'enjoys foraging for food in the rain forest', contact: '123-456-7890' } ...
services/ui/src/components/RestoreButton/Prepare.js
amazeeio/lagoon
import React from 'react'; import gql from 'graphql-tag'; import { Mutation } from 'react-apollo'; import Button from 'components/Button'; const addRestore = gql` mutation addRestore($input: AddRestoreInput!) { addRestore(input: $input) { id } } `; const Prepare = ({ backupId }) => ( <Mutation mut...
src/interface/report/PlayerSelection/PlayerTile.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import SpecIcon from 'common/SpecIcon'; import { getClassName } from 'game/ROLES'; import getAverageItemLevel from 'game/getAverageItemLevel'; import Icon from 'common/Icon'; i...
packages/terra-table/src/SelectableUtils.js
mschile/terra-core
import React from 'react'; /** * Returns a validated max count for selection. Validates the max count prop, and if undefined * returns a max of the count of children. */ const validatedMaxCountSelection = (rows, maxSelectionCount) => { if (maxSelectionCount !== undefined) { return maxSelectionCount; } ret...
app/components/Common/PageError/index.js
VineRelay/VineRelayStore
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; const Wrapper = styled.div` `; const PageError = ({ error }) => ( <Wrapper> {error.message} </Wrapper> ); PageError.propTypes = { error: PropTypes.object.isRequired, }; export default PageError;
src/app.js
alexbonine/react-starter-kit
/* * 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 'babel/polyfill'; import React from 'react'; import emptyFunction ...
frontend/src/index.js
kryptn/modulario
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import 'semantic-ui-css/semantic.min.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
client/components/DevTools.js
bbviana/alexandria-mern
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> ...
src/render.js
zab/jumpsuit
import React from 'react' import { render } from 'react-dom' // import ConnectStore from './connectStore' export default function (...params) { // If passed a raw state object, combine/create/connect it to the component const hasState = typeof params[0] === 'object' && typeof params[1] === 'object' const states ...
pkg/users/delete-account-dialog.js
deryni/cockpit
/* * This file is part of Cockpit. * * Copyright (C) 2020 Red Hat, Inc. * * Cockpit 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 2.1 of the License, or * (at your option) any l...
src/js/components/icons/base/FormPrevious.js
odedre/grommet-final
/** * @description FormPrevious SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. ...
monkey/monkey_island/cc/ui/src/components/pages/ReportPage.js
guardicore/monkey
import React from 'react'; import {Route} from 'react-router-dom'; import {Col, Nav} from 'react-bootstrap'; import AuthComponent from '../AuthComponent'; import MustRunMonkeyWarning from '../report-components/common/MustRunMonkeyWarning'; import AttackReport from '../report-components/AttackReport'; import SecurityRep...
pkg/interface/chat/src/js/components/chat.js
ngzax/urbit
import React, { Component } from 'react'; import classnames from 'classnames'; import _ from 'lodash'; import moment from 'moment'; import { Route, Link } from "react-router-dom"; import { store } from "/store"; import { ResubscribeElement } from '/components/lib/resubscribe-element'; import { BacklogElement } from '...
examples/with-atlaskit/components/ButtonComponent.js
JeromeFitz/next.js
import React from 'react' import Button, { ButtonGroup } from '@atlaskit/button' export default function ButtonComponent() { return ( <React.Fragment> <Button style={{ margin: 10 }}>Button</Button> <Button style={{ margin: 10 }} appearance="primary"> Primary Button </Button> <Butt...
src/App.js
lumio/waveblock
import React from 'react'; import styled from 'styled-components'; import WaveBlock from './components/WaveBlock'; import AudioData from './components/AudioData'; import Controls from './components/Controls'; const AppWrapper = styled.div` width: 100vw; height: 100vh; display: flex; justify-content: center; ...
src/pages/inndax.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Inndax' /> )
stories/examples/ControlledChipInput.js
TeamWertarbyte/material-ui-chip-input
/* global alert */ import React from 'react' import PropTypes from 'prop-types' import ChipInput from '../../src/ChipInput' class ControlledChipInput extends React.Component { constructor (props) { super(props) this.state = { chips: ['react'] } } onBeforeAdd (chip) { return chip.length >= ...