path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
web/src/js/utils.js | ddworken/mitmproxy | import _ from 'lodash'
import React from 'react'
import shallowEqual from 'shallowequal'
window._ = _;
window.React = React;
export var Key = {
UP: 38,
DOWN: 40,
PAGE_UP: 33,
PAGE_DOWN: 34,
HOME: 36,
END: 35,
LEFT: 37,
RIGHT: 39,
ENTER: 13,
ESC: 27,
TAB: 9,
SPACE: 32,
... |
vendor/htmlburger/carbon-fields/assets/js/fields/components/oembed/search-input.js | FolsomCreative/storynav | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { compose, withHandlers, defaultProps } from 'recompose';
import { debounce } from 'lodash';
/**
* The internal dependencies.
*/
import { KEY_ENTER } from 'lib/constants';
/**
* Render the field used to filt... |
src/admin/views/activation/security.js | ccetc/platform | import React from 'react'
import $ from 'jquery'
class Security extends React.Component {
render() {
return (
<div className="chrome-session chrome-signin">
<div className="chrome-session-widget">
<h1>MyCCE</h1>
<h3>Cornell Cooperative Extension of Tompkins County</h3>
... |
components/animals/tamarinZlutoruky.adult.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/tamarinZlutoruky/0... |
client/room.js | assemble-live/assemble | import React from 'react'
import { render } from 'react-dom'
import { LocaleProvider } from 'antd'
import enUS from 'antd/lib/locale-provider/en_US'
import Main from './room/main'
window.onload = () => {
render(
<LocaleProvider locale={enUS}>
<Main />
</LocaleProvider>,
document.querySelector('#rea... |
client/src/containers/Login.js | DemocracyGuardians/DGTeam |
import React from 'react';
import { connect } from "react-redux";
import { LocalForm, Control } from 'react-redux-form'
import { Link, withRouter } from 'react-router-dom'
import { Button, Container, Input, Message } from 'semantic-ui-react'
import PropTypes from 'prop-types'
import { RSAA } from 'redux-api-middleware... |
app/index.js | jmarthernandez/react-foundation-sites | import React from 'react';
import ReactDOM from 'react-dom';
import './styles/index.scss';
// Component Sections
import TabSection from 'sections/TabSection';
import AccordionSection from 'sections/AccordionSection';
ReactDOM.render(
<div>
<TabSection />
<AccordionSection />
</div>,
document.getElementB... |
src/SparklinesLine.js | borisyankov/react-sparklines | import PropTypes from 'prop-types';
import React from 'react';
export default class SparklinesLine extends React.Component {
static propTypes = {
color: PropTypes.string,
style: PropTypes.object,
};
static defaultProps = {
style: {},
onMouseMove: () => {},
};
render() {
const { data, po... |
client/components/home/TodoSection.js | jabhishek/react-express-webpack-boilerplate | import React from 'react';
import TodoList from '../common/TodoList';
import InputField from '../common/inputField';
import styles from './todoSection.less';
import shouldUpdate from '../../utils/shouldUpdate';
@shouldUpdate('todos')
export default class TodoSection extends React.Component {
onTodoSave(text) {
if (... |
webpack-demo/demo16/index.js | zhangjunhd/react-examples | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, Link, IndexRoute, browserHistory } from 'react-router';
require('./app.css');
var App = React.createClass({
render: function () {
return (
<div>
<header>
<ul>
<li><Link to="/app">Dashboard<... |
src/components/Aside/Aside.js | Cruis-R/GestionOutil | import React, { Component } from 'react';
import { TabContent, TabPane, Nav, NavItem, NavLink, Progress } from 'reactstrap';
import classnames from 'classnames';
class Aside extends Component {
constructor(props) {
super(props);
this.toggle = this.toggle.bind(this);
this.state = {
activeTab: '1'
... |
packages/lightning-core/common/NavFooter.js | DaReaper/lightning-app | import React from 'react'
import { Box, Media, Text } from 'lightning-components'
import NavFooterAccount from './NavFooterAccount'
import { Money, MoneySign } from './'
import { total } from '../helpers/wallet'
export const NavFooter = ({ pubkey, currency, balances, onClickAccount }) => {
return (
<div>
... |
client/src/components/uploaders/Uploader.js | misha-slyusarev/invoices | import React, { Component } from 'react';
import Dropzone from 'react-dropzone';
import { Segment } from 'semantic-ui-react'
export default class Uploader extends Component {
render() {
return <Segment className='App-segment'>
<Dropzone className='uploader' multiple={this.props.multiple}
accept={thi... |
mobile/project/js/components/sideBar/index.js | CornellProjects/hlthpal |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Content, Text, ListItem } from 'native-base';
import { Actions } from 'react-native-router-flux';
import { closeDrawer } from '../../actions/drawer';
import { setIndex } from '../../actions/list';
import styles from './style';
... |
node_modules/react-router/modules/RouterContextMixin.js | yomolify/cc-server | import React from 'react';
import invariant from 'invariant';
import { stripLeadingSlashes, stringifyQuery } from './URLUtils';
var { func, object } = React.PropTypes;
function pathnameIsActive(pathname, activePathname) {
if (stripLeadingSlashes(activePathname).indexOf(stripLeadingSlashes(pathname)) === 0)
retu... |
packages/metadata-react/src/Markdown/MarkdownDocs.js | oknosoft/metadata.js | import React from 'react';
import PropTypes from 'prop-types';
import kebabCase from 'lodash/kebabCase';
import warning from 'warning';
import Helmet from 'react-helmet';
import withStyles from '@material-ui/core/styles/withStyles';
import {withIface} from 'metadata-redux';
import Typography from '@material-ui/core/Typ... |
sms_sponsorship/webapp/src/components/TopAppBar.js | eicher31/compassion-modules | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import LogoWhite from '../images/LogoWhite.png';
import Button from '@material-ui/core/Button';
import Lan... |
src/LabelNumberDisplay2/index.js | christianalfoni/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import Typography from '../Typography';
import classNames from 'classnames';
import styles from './styles.css';
import LabelTitle from '../LabelTitle';
import Tooltip from '../Tooltip';
function LabelNumberDisplay2(props) {
return (
<Tooltip
p... |
frontend/src/App.js | romerorocha/readable | import React from 'react';
import './css/App.css';
import { Provider } from 'react-redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import MainMenu from './components/Menu/MainMenu';
import Home from './components/MainPages/Home';
import Category from './components/MainPages/Category';
import Ed... |
src/players/Vimeo.js | ruprict/react-player | import React from 'react'
import propTypes from '../propTypes'
import Base from './Base'
const IFRAME_SRC = 'https://player.vimeo.com/video/'
const MATCH_URL = /https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/
const MATCH_MESS... |
frontend/src/stories/index.js | jf248/scrape-the-plate | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import { Button, Welcome } from '@storybook/react/demo'; // eslint-disable-line import/no-internal-modules
storiesOf('Welcome', module).add('to ... |
packages/examples/pages/app-state/index.js | necolas/react-native-web | import React from 'react';
import { AppState, Text } from 'react-native';
import Example from '../../shared/example';
export default function AppStatePage() {
const appState = React.useRef(AppState.currentState);
const [state, setState] = React.useState({
active: 0,
background: 0,
currentState: appStat... |
client/app/components/common/UndecidedBadge.js | Zuehlke/poinz | import React from 'react';
import PropTypes from 'prop-types';
import {StyledUndecidedBadge} from './_styled';
const UndecidedBadge = () => (
<StyledUndecidedBadge data-testid="undecidedBadge">
<div>-</div>
</StyledUndecidedBadge>
);
UndecidedBadge.propTypes = {
cardConfigItem: PropTypes.object
};
export ... |
lib/editor/components/question_editors/SelectQuestionEditor.js | jirokun/survey-designer-js | import React from 'react';
import BaseQuestionEditor from './BaseQuestionEditor';
export default function SelectQuestionEditor(props) {
const { page, question } = props;
return (
<BaseQuestionEditor
page={page}
question={question}
editorTitle="単一選択肢(プルダウン)"
title
description
... |
src/components/footer.js | JasonH815/Sketch-App | import React from 'react';
function Footer(){
return <div>footer</div>
}
export default Footer |
app/jsx/conditional_release_stats/components/student-assignment-item.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - 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/modules/pages/Logout.js | OCMC-Translation-Projects/ioc-liturgical-db-public-app | /**
* Created by mac002 on 12/30/16.
*/
import React from 'react';
import { connect } from 'react-redux';
import Actions from '../../reducers/actionTypes';
class Logout extends React.Component {
componentDidMount() {
this.props.dispatch(
{
type: Actions.SET_SESSION_USER_LOGOUT
}
);
... |
src/svg-icons/action/system-update-alt.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSystemUpdateAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/>
... |
packages/native/src/components/App.js | hwaterke/inab-native | import React from 'react';
import {Provider} from 'react-redux';
import {store} from '../store/index';
import {LoginDispatcher} from './LoginDispatcher';
import {persistStore} from 'redux-persist';
import {AsyncStorage, View, StatusBar} from 'react-native';
import {globalStyles} from '../constants/styles';
export clas... |
src/Parser/Paladin/Holy/Modules/Items/ObsidianStoneSpaulders.js | hasseboulen/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import ItemHealingDone from 'Main/ItemHealingDone';
class ObsidianStoneSpaulders extends Analyzer {
static dependenci... |
docs/app/Examples/collections/Menu/Types/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
// TODO: Add example with <Popup> after it will be added
const Types = () => {
return (
<ExampleSection title='Types'>
<C... |
boxroom/archive/js-surface-react-2018-08-27-important/src/main/api/createPortal.js | js-works/js-surface | import React from 'react';
export default React.createPortal; |
app/js/auth/views/legacy-gaia.js | blockstack/blockstack-browser | import React from 'react'
import PropTypes from 'prop-types'
import { ShellScreen, Type } from '@blockstack/ui'
const LegacyGaiaScreen = ({ app, backView, ...rest }) => {
if (!app) {
return null
}
const props = {
title: {
children: 'Sorry!'
},
content: {
grow: 1,
children: (
... |
wail-ui/loadingScreens/firstTime/components/progress/progressSteps.js | N0taN3rd/wail | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Step, Stepper } from 'material-ui/Stepper'
import { namedUpdateKeys } from '../../../../util/recomposeHelpers'
import { OsCheckStep } from '../osCheck'
import { JavaCheckStep } from '../javaCheck'
import ServiceS... |
app/javascript/mastodon/features/ui/components/column_header.js | rutan/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func,
columnHeaderId... |
src/helpers/test-component.js | m-ocana/react_reservations | import React from 'react'
import { shallow } from 'enzyme'
import toJson from 'enzyme-to-json'
const renderComponentHelper = (Component, mountOptions = {}) => {
return ({ children, ...props } = {}) => {
const wrapper = shallow(
<Component {...props}>{ children }</Component>,
mountOptions
)
c... |
node_modules/semantic-ui-react/dist/es/modules/Sidebar/SidebarPusher.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META, useKeyOnly } from '../../lib';
/**
* A pushable sub-component for Sidebar.
*/
function SidebarPusher(pr... |
src/components/Terms/Terms.react.js | madhavrathi/chat.susi.ai | import React, { Component } from 'react';
import './Terms.css';
import PropTypes from 'prop-types';
import susi from '../../images/susi.svg';
import StaticAppBar from '../StaticAppBar/StaticAppBar.react';
class Terms extends Component {
constructor(props) {
super(props);
this.state = {
open: false,
... |
src/components/posts_show.js | Wishmaker888/react-redux-routes | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchPost, deletePost } from '../actions';
import { Link } from 'react-router-dom';
class PostsShow extends Component {
componentDidMount() {
const { id } = this.props.match.params;
this.props.fetchPost( id ); // Call... |
src/components/views/elements/DNDTagTile.js | aperezdc/matrix-react-sdk | /* eslint new-cap: "off" */
/*
Copyright 2017 New Vector Ltd.
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 ag... |
src/components/widget/ActionButton.js | metasfresh/metasfresh-webui-frontend | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchTopActions } from '../../actions/WindowActions';
import { dropdownRequest } from '../../actions/GenericActions';
import DocumentStatusContextShortcuts from '../keyshortcuts/DocumentStatusC... |
src/components/Home.js | Numel2020/NUMEL-Transitions | /**
* Created by melvynphillips on 09/03/2017.
*/
import React from 'react';
export class Home extends React.Component {
render(){
return (
<div>
<h3>Home</h3>
</div>
);
}
}
export default Home;
//TODO component life cycles
|
client/js/components/Home.js | jjinking/evey | import React from 'react';
class Home extends React.Component {
render() {
return (
<div>
<div>Home View</div>
<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo<br />foo... |
app/src/pages/SignUpScreen.js | skunkmb/Ablo | import React, { Component } from 'react';
import { Text, View, StyleSheet, AlertIOS } from 'react-native';
import KeyboardAwareScrollView from '../common/KeyboardAwareScrollView.js';
import Input from '../common/Input.js';
import Button from '../common/Button.js';
import LoadingModal from '../common/LoadingModal.js';
i... |
packages/carbon-react/src/components/Checkbox/Checkbox.stories.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 { Checkbox, CheckboxSkeleton } from 'carbon-components-react';
import { settings } from 'carbon-components'... |
src/svg-icons/action/system-update-alt.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSystemUpdateAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/>
... |
src/containers/Home.js | pjkarlik/Glob | import React from 'react';
import { withRouter } from 'react-router';
import { resolve } from '../styles';
import { connect } from 'react-redux';
import { setSiteState } from '../redux/modules/site';
import SketchWrapper from '../components/SketchWrapper';
import Badge from '../components/Badge';
import BadgeStyle fro... |
test/integration/scss-fixtures/npm-import/pages/_app.js | flybayer/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.scss'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
src/components/ExampleFiles.js | ekatzenstein/DynamoDictionary_React | import React from 'react';
import path from 'path';
import ModeModal from './ModeModal';
import ExampleFileLightbox from './ExampleFile_Lightbox';
import ExampleFile from './ExampleFile';
import ExampleAdd from './ExampleAdd';
const fileNameChange = (file, node) => {
const addOn = node.dynFile.length>0?'-Ex' + +nod... |
packages/generator-emakinacee-react/generators/app/templates/static/src/index.js | emakina-cee-oss/react-cli | import React from 'react';
import ReactDOM from 'react-dom';
import { Container } from '@cerebral/react';
import App from './containers/App/App';
import controller from './controller';
import registerServiceWorker from './registerServiceWorker';
import './styles/global.scss';
ReactDOM.render(
<Container controller... |
src/components/TrackDetail/Subs.js | Sixtease/MakonReact | import React from 'react';
import PropTypes from 'prop-types';
const CONTROL_BAR_HEIGHT = 35;
const component = ({
chunk_text_nodes,
current_word,
failed_word_rectangles,
marked_word,
sending_subs,
sent_word_rectangles,
set_selection,
set_subs_el,
subs_chunks,
subs_offset,
}) => (
<div className... |
packages/material-ui-icons/src/Power.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z" /></g>
, 'Power');
|
src/components/promo/Promo.js | kondoSoft/react-car-rental | import React, { Component } from 'react';
import { Grid, Header,Button, Container, Icon} from 'semantic-ui-react'
class Promo extends Component {
render() {
return (
<Container text className='containerBottom' textAlign='center'>
<Grid>
<Grid.Row verticalAlign='bottom'>
<Grid.... |
src/components/onboarding/steps/VirtualisationInfo.js | golemfactory/golem-electron | import React from 'react';
import Lottie from 'react-lottie';
import animData from './../../../assets/anims/onboarding/vt-x-windows.json'
const defaultOptions = {
loop: false,
autoplay: true,
animationData: animData,
rendererSettings: {
preserveAspectRatio: 'xMidYMid slice'
}
};
export d... |
src/components/sidebar/SideBarBody.js | Pouja/tudscheduler | import React from 'react';
import CourseCtrl from '../../models/CourseCtrl.js';
import EventServer from '../../models/EventServer.js';
import FacultyCtrl from '../../models/FacultyCtrl.js';
import CourseTree from './CourseTree.js';
import CourseList from '../CourseList.js';
/**
* The body of the the sidebar.
* Rende... |
Ethereum-based-Roll4Win/node_modules/react-overlays/es/Dropdown.js | brett-harvey/Smart-Contracts | function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
function _e... |
frontend/src/loading.js | rarellano/socializa | import React from 'react';
export default class Loading extends React.Component {
render() {
return (
<div className="loadingIcon">
<i className="fa fa-cog fa-spin fa-3x fa-fw"></i>
<span className="sr-only">Loading...</span>
</div>
);
}
}... |
packages/ringcentral-widgets-docs/src/app/pages/Components/CallingSettingsAlert/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
client/src/components/header.js | euqen/spreadsheet-core | import React from 'react';
import LocalSwitcher from './locale-switcher';
import {Link} from 'react-router';
import counterpart from 'counterpart';
import Translate from 'react-translate-component';
import LocalizationService from './../infrastructure/localization-service';
import dispatcher from './../infrastructure/d... |
docs/app/Examples/elements/Flag/index.js | koenvg/Semantic-UI-React | import React from 'react'
import Types from './Types'
const FlagExamples = () => (
<div>
<Types />
</div>
)
export default FlagExamples
|
src/svg-icons/content/move-to-inbox.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentMoveToInbox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3... |
extensions/speechsearch/client.js | axax/lunuc | import React from 'react'
import Hook from 'util/hook'
import config from 'gen/config-client'
const {ADMIN_BASE_URL} = config
import Async from 'client/components/Async'
const SearchWhileSpeechContainer = (props) => <Async {...props}
load={import(/* webpackChunkName: ... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | increments/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
src/routes/Buyer/components/Buyer.js | mertsev/blockchain-escrow |
import React from 'react'
import PropTypes from 'prop-types'
import 'web3'
import 'ethjs'
var addr;
var check = false
var code = '60606040525b33600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060023481151561005257fe5b046000819055503460005... |
admin/client/Signin/components/LoginForm.js | jacargentina/keystone | /**
* The login form of the signin screen
*/
import React from 'react';
import { Button, Form, FormField, FormInput } from 'elemental';
// TODO FIGURE OUT IF THE BELOW NOTE IS STILL RELEVANT AND WE NEED THE REFS
// OR IF WE CAN CHANGE THIS TO A STATELESS COMPONENT
// NOTE: This is not a stateless components because... |
src/client/routes/leaderboard/init.js | mineswine/WebStats | import React from 'react';
import ScrollAnchor from '../../tools/Anchor';
// Load Components
import StatsTable from '../../components/StatsTable';
class Leaderboard extends React.Component {
constructor(props) {
super(props);
this.state = {
boardIndex: 0,
boardData: [],
sortStat: 'elo',
... |
src/components/comments.js | bokuweb/tomato_pasta | import React, { Component } from 'react';
export default class Comments extends Component {
constructor(props) {
super(props);
}
getComments(item) {
const notFoundMessage = <span className="comments__text--notfound">コメントがありませんでした</span>;
if(item.comments === undefined || item.comments.length === 0) ... |
node_modules/react-native/node_modules/babel-preset-react-native/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | ninamanalo19/react-native-sliding-up-panel | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
packages/icons/src/md/editor/InsertEmoticon.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdInsertEmoticon(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M23.99 4C35.04 4 44 12.95 44 24s-8.96 20-20.01 20S4 35.05 4 24 12.94 4 23.99 4zM24 40c8.84 0 16-7.16 16-16S32.84 8 24 8 8 15.16 8 24s7.16 16 1... |
src/components/NavHeader/NavHeader.js | gavinpatkinson/gavspace_2 | import React from 'react';
import { Link } from 'react-router';
import Interactive from 'react-interactive';
import s from './styles.css';
function NavHeader() {
return (
<div className={s.content}>
<Interactive
as={Link}
{...s.rootLink}
to="/"
>Gavin Atkinson</Interactive>
... |
react-flux-mui/js/material-ui/src/svg-icons/content/sort.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentSort = (props) => (
<SvgIcon {...props}>
<path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/>
</SvgIcon>
);
ContentSort = pure(ContentSort);
ContentSort.displayName = 'ContentSort';
ContentSort.mui... |
nlyyAPP/component/MLSelectionStudy/MLSelectionNav.js | a497500306/nlyy_APP | /**
* Created by maoli on 16/9/25.
*/
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Navigator
} from 'react-native';
var SelectionStudy = require('./MLSelectionStudy'... |
docs/src/app/components/pages/components/FlatButton/ExampleIcon.js | igorbt/material-ui | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import FontIcon from 'material-ui/FontIcon';
import ActionAndroid from 'material-ui/svg-icons/action/android';
import {fullWhite} from 'material-ui/styles/colors';
const style = {
margin: 12,
};
const FlatButtonExampleIcon = () => (
<div>... |
src/server.js | benbs/Office-Player | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import 'babel-polyfill';
import path from 'path';
import ... |
examples/counter/containers/CounterApp.js | madole/redux-devtools | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
class CounterApp extends Component {
render() {
const { counter, dispatch } = this... |
src/routes.js | Sekhmet/busy | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import Wrapper from './wrapper';
import Settings from './app/AppSettings';
import Page from './feed/Page';
import User from './user/User';
import Profile from './user/UserProfile';
import Followers from './user/UserFollowers';
import Following... |
app/javascript/mastodon/components/status_action_bar.js | alarky/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import DropdownMenu from './dropdown_menu';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure... |
examples/todomvc/containers/TodoApp.js | Ryan-McBride/redux | import React from 'react';
import { bindActionCreators } from 'redux';
import { Connector } from 'redux/react';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
export default class TodoApp {
render() {
return (... |
actor-apps/app-web/src/app/utils/require-auth.js | akingyin1987/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
src/containers/change-form/side-projects.js | raulfdm/cv | import React from 'react';
import { useForm } from 'react-final-form';
import uuid from 'uuid/v1';
import SideProjectForm from 'organisms/side-project-form';
import FormCardGroup from 'molecules/form-card-group';
import AddNewButton from 'atoms/add-new-button';
const FIELDSET_NAME = 'projects';
const SideProjectsCon... |
test/test_helper.js | f74981743/f74981743.github.io | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
app/src/components/main/index.js | ferchas/miniMural | import React, { Component } from 'react';
import StickyNoteSmall from '../stickyNote';
class Dashboard extends Component {
constructor(props) {
super(props);
this.toCopy = [];
this.keyPressShift = false;
this.state = {
stickys: [],
};
}
addStickyNote() {
this.setState({stickys: ... |
examples/src/components/examples/RightToLeft.js | mzabriskie/react-tabs | import React from 'react';
import ExampleItem from '../ExampleItem';
const code = `const Component = (
<div dir="rtl">
<Tabs direction={'rtl'}>
<TabList>
<Tab>כותרת</Tab>
<Tab disabled>כותרת כבויה</Tab>
<Tab>כותרת שנייה</Tab>
<Tab>כותרת שלישית</Tab>
</TabList>
<T... |
src/components/app.js | AdamNgu/movies | import React, { Component } from 'react';
import MoviesNew from '../containers/movies_new';
import MoviesIndex from '../containers/movies_index';
import MovieShow from '../containers/movie_show';
export default class App extends React.Component {
constructor() {
super();
this.state = {
newMovieModalis... |
example/examples/DraggableMarkers.js | tt-sport-mobile/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Dimensions,
} from 'react-native';
import MapView from 'react-native-maps';
import PriceMarker from './PriceMarker';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4... |
test/integration/image-component/default/pages/style-inheritance.js | zeit/next.js | import React from 'react'
import Image from 'next/image'
import style from '../style.module.css'
const Page = () => {
return (
<div id="main-container" className={style.mainContainer}>
<h1>Image Style Inheritance</h1>
<Image
id="img-fixed"
layout="fixed"
src="/test.jpg"
... |
spec/components/layout.js | VACO-GitHub/vaco-components-library | import React from 'react';
import { AppBar, Checkbox, Dropdown, IconButton, RadioGroup, RadioButton } from '../../components';
import { Layout, NavDrawer, Panel, Sidebar } from '../../components';
const dummyText = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the ind... |
client/userinterface/DialogBox/Header.js | benstuijts/darkage-framework | import React from 'react';
export default class Header extends React.Component {
render() {
return(
<div class="DialogBox-header">
<h1><i class={ this.props.icon }></i> {this.props.title}</h1>
</div>
);
}
} |
src/tab.js | knledg/react-blur-admin | import React from 'react';
export const Tab = ({ title, onClick }) => {
return (
<a href='#' onClick={onClick}>{title}</a>
);
};
Tab.propTypes = {
title: React.PropTypes.string,
onClick: React.PropTypes.func,
name: React.PropTypes.string,
};
|
floodwatch/src/js/components/profile_demographics/Demographic.js | O-C-R/floodwatch | // @flow
import React, { Component } from 'react';
import { Well } from 'react-bootstrap';
import type {
DemographicCategory,
DemographicCategoryOption,
} from '../../common/types';
export default class Demographic extends Component {
props: {
onUpdate: (toAdd: ?Array<number>, toRemove: ?Array<number>) => ... |
packages/react/src/components/organisms/PageHeader/PageHeader.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import PageHeader from './index';
import PageHeaderDocs from './PageHeader.md';
import PageHeaderData from './PageHeader.knobs.options';
export const PageHeaderExample = (args) => <PageHeader {...args} />;
const defaultProps = PageHeaderD... |
docs/src/GettingStartedPage.js | modulexcite/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
export default class Page extends React.Component {
render() {
return (
<div>
<NavMain activePage="getting-started"... |
packages/yam-vr/index.vr.js | unindented/little-yam | import React from 'react'
import {Provider} from 'react-redux'
import {AppRegistry, View} from 'react-vr'
import {createStore} from 'yam-data'
import * as localForage from 'localforage'
import App from './containers/App'
// Bump when schema changes.
const schemaVersion = 1
const storeOptions = {
persist: {
stor... |
docs/app/Examples/elements/Rail/Variations/RailExampleCloseVery.js | koenvg/Semantic-UI-React | import React from 'react'
import { Grid, Image, Rail, Segment } from 'semantic-ui-react'
const RailExampleCloseVery = () => (
<Grid centered columns={3}>
<Grid.Column>
<Segment>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
<Rail close='very' position='left'>
... |
examples/forms-bootstrap/src/components/forms-update-optimistic/Layout.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import PayloadStates from '../../constants/PayloadStates';
import Hook from './Hook';
import hookCode from '!raw-loader!./Hook';
export default lore.connect(function(getState, props) {
const { tweetId } ... |
src/js/components/Tab.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Button from './Button';
import CSSClassnames from '../utils/CSSClassnames';
const CLASS_ROOT = CSSClassnames.TAB;
export defau... |
app/scenes/Talk/index.js | brentvatne/react-conf-app | // @flow
import React, { Component } from 'react';
import { Animated, Dimensions, Share } from 'react-native';
import moment from 'moment';
import type { ScheduleTalk } from '../../types';
import { TIME_FORMAT } from '../../constants';
import Navbar from '../../components/Navbar';
import Scene from '../../components/S... |
src/svg-icons/device/battery-unknown.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryUnknown = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zm-2.72 13.95h-1.9... |
src/ui/components/Settings/SettingsAbout.react.js | Eeltech/SpaceMusik | import React, { Component } from 'react';
import { Button } from 'react-bootstrap';
import ExternalLink from '../Shared/ExternalLink.react';
import app from '../../lib/app';
import AppActions from '../../actions/AppActions';
// sth wrong with that, need some check with Webpack
const spacemusikLogoRequire = require(... |
js/app.js | Couto/firstaidgit | import React from 'react';
import Router from 'react-router';
import { DefaultRoute, Link, Route, RouteHandler } from 'react-router';
import Home from './components/Home.js';
import About from './components/About.js';
import Footer from './components/Footer.js';
import SVGIcon from './utils/SVG.js';
import Navigation... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.