path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/static/src/diagnostic/Norm_modules/NewNormGasForm.js | vsilent/Vision | import React from 'react';
import Checkbox from 'react-bootstrap/lib/Checkbox';
import {findDOMNode} from 'react-dom';
import {hashHistory} from 'react-router';
import {Link} from 'react-router';
import {NotificationContainer, NotificationManager} from 'react-notifications';
import TextField from './TextField';
import... |
src/components/Main.js | urre/staytube | import React from 'react'
import { Route, Switch } from 'react-router-dom'
import Video from './Video'
import About from './About'
import LatestVideos from './LatestVideos'
class Main extends React.Component {
render() {
return (
<main>
<Switch>
<Route path="/videos/:video" component={Vi... |
packages/component/src/Middleware/TypingIndicator/createCoreMiddleware.js | billba/botchat | /* eslint react/prop-types: "off"*/
import { hooks } from 'botframework-webchat-api';
import classNames from 'classnames';
import React from 'react';
import TypingAnimation from '../../Assets/TypingAnimation';
import useStyleSet from '../../hooks/useStyleSet';
const { useDirection, useLocalizer } = hooks;
const Dot... |
auth/src/components/common/Header.js | diegopoli/sample-react-native-projects | // Import libraries for making a component
import React from 'react';
import { Text, View } from 'react-native';
// Make a component
const Header = (props) => {
const { textStyle, viewStyle } = styles;
return (
<View style={viewStyle}>
<Text style={textStyle}>{props.headerText}</Text>
</View>
);
}... |
src/components/Charts/autoHeight.js | ascrutae/sky-walking-ui | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
JotunheimenPlaces/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js | designrad/Jotunheimen-tracking | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
packages/mcs-lite-admin-web/src/containers/User/User.js | MCS-Lite/mcs-lite | import React from 'react';
import PropTypes from 'prop-types';
import * as R from 'ramda';
import { Observable } from 'rxjs/Observable';
import Helmet from 'react-helmet';
import InputGroup from 'mcs-lite-ui/lib/InputGroup';
import Input from 'mcs-lite-ui/lib/Input';
import Label from 'mcs-lite-ui/lib/Label';
import Ta... |
src/svg-icons/action/toc.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToc = (props) => (
<SvgIcon {...props}>
<path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/>
</SvgIcon>
);
ActionToc = pure(ActionToc);
ActionToc.displa... |
src/Pages/StudyRoom.js | yoasia/Akademik | import React from 'react';
import { Grid, Image, Header } from 'semantic-ui-react';
//My components
import BookingComponent from '../components/BookingComponent';
class StudyRoom extends React.Component {
constructor(props) {
super(props);
this.state = {
user: props.user
};
... |
src/svg-icons/action/label-outline.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLabelOutline = (props) => (
<SvgIcon {...props}>
<path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l... |
projeto/fatec/src/Beber.js | frbaroni/curso_react |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Beber extends Component {
static propTypes = {
idade: PropTypes.number.isRequired
}
render() {
const { idade } = this.props;
if(idade >= 21) {
return <p>#BoraProBar #Itaipava #EhNois{idade}</p>
} else {
... |
actor-apps/app-web/src/app/components/DialogSection.react.js | webwlsong/actor-platform | import _ from 'lodash';
import React from 'react';
import { PeerTypes } from 'constants/ActorAppConstants';
import MessagesSection from 'components/dialog/MessagesSection.react';
import TypingSection from 'components/dialog/TypingSection.react';
import ComposeSection from 'components/dialog/ComposeSection.react';
i... |
src/js/components/ItemList.js | pazguille/react-meli | /**
* Module dependencies
*/
import React from 'react';
import ItemListWrapper from './ItemListWrapper';
/**
* ItemList
*/
const ItemList = ({ items }) => (
<ul className='slats ch-slats ch-list'>
{items.map(item => (
<ItemListWrapper key={item.id} data={item} />)
)}
</ul>
);
/**
* Expose compo... |
src/GridList/GridListTileBar.js | dsslimshaddy/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = (theme: Object) => ({
root: {
position: 'absolute',
left: 0,
right: 0,
height: 48,
background: 'rgba(0, 0, 0, 0.4... |
internals/templates/homePage.js | shinetimes/web-storm | /*
* 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;
|
src/svg-icons/image/filter-b-and-w.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterBAndW = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16l-7-8v8H5l7-8V5h7v14z"/>
</SvgIcon>
);
ImageFilterBAndW = pure(Im... |
docs/src/app/components/pages/components/Badge/ExampleContent.js | frnk94/material-ui | import React from 'react';
import Badge from 'material-ui/Badge';
import IconButton from 'material-ui/IconButton';
import UploadIcon from 'material-ui/svg-icons/file/cloud-upload';
import FolderIcon from 'material-ui/svg-icons/file/folder-open';
const BadgeExampleContent = () => (
<div>
<Badge
badgeContent... |
src/components/Button/button.js | devxom/user-stories | import React, { Component } from 'react';
import Icon from '../Icon/icon';
import './button.css';
const DEFAULT_ICON_SIZE = 24;
class Button extends Component {
render() {
const { icon, iconSize, className, children, ...props } = this.props;
return (
<button type='button' {...props} className={`button ${cl... |
client/admin/forms/fields/select-field.js | kirinami/portfolio | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
@observer
export default class SelectField extends Component {
static propTypes = {
field: PropTypes.object.isRequired,
};
render() {
const { field } = this.props;
... |
src/js/components/tables/table-row/table-row.js | ucev/blog | import React from 'react'
import './table-row.style.scss'
export default ({ subtype = '', children }) => {
let className = 'content-row-data'
if (subtype) {
className += ` ${subtype}-row-data`
}
return <tr className={className}>{children}</tr>
}
|
reactjs/getting_started/src/components/NotFoundPage/NotFoundPage.js | spolnik/javascript-workspace | /*
* 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.
*/
//import './NotFoundPage.less';
import React from 'react'; // eslint-disable-line no-unus... |
packages/ringcentral-widgets-docs/src/app/pages/Components/ConferenceAlert/index.js | ringcentral/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... |
app/containers/NotFoundPage/index.js | Royten/fashgame | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a 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 necessity for you then you can refactor it... |
src/app/hocs/ss-resolve/wrap.js | tuxsudo/react-starter | import React from 'react';
export const addServerSideResolve = (beforeServerResponse) => (Component) => {
return React.createClass({ // eslint-disable-line
statics: {
onServer: function(props, store) {
return beforeServerResponse ? beforeServerResponse(props, store) : null;
... |
src/svg-icons/hardware/phonelink.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhonelink = (props) => (
<SvgIcon {...props}>
<path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/>
... |
src/components/grid.js | kbrgl/kbrgl.github.io | import React from 'react'
import PropTypes from 'prop-types'
import styles from './grid.module.css'
export const Container = ({ children }) => (
<div className={styles.container}>{children}</div>
)
Container.propTypes = {
children: PropTypes.node.isRequired,
}
export const Column = ({ children, size, offset }) =... |
app/index.js | KrateLabs/KrateLabs-App | import React from 'react'
import { render } from 'react-dom'
import { createHashHistory } from 'history'
import { Router, Route, hashHistory, browserHistory, useRouterHistory } from 'react-router'
import { App } from './components'
import './assets/bootstrap-sass-3.3.6/stylesheets/_bootstrap.scss'
import './assets/css/... |
app/javascript/flavours/glitch/features/local_settings/navigation/item/index.js | vahnj/mastodon | // Package imports
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
export default class LocalSettingsPage extends React.PureComponent {
static propTypes = {
active: PropTypes.bool,
c... |
client/_App/AppSideLeft/AppSideLeft.js | AnnotatedJS/meteor-react-start-app |
import React from 'react';
export const AppSideLeft = () => (
<div className="app-side-left">
<h1>Left Column</h1>
<p>Some text in the left column of the page</p>
</div>
);
|
src/svg-icons/editor/format-align-center.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignCenter = (props) => (
<SvgIcon {...props}>
<path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignCenter = pure(EditorFormatAli... |
scaffold/templates/statefulComponent.js | dm-istomin/hexamer | import React, { Component } from 'react';
class {{ComponentName}} extends Component {
constructor( props ) {
super( props );
}
render() {
return (
<div>{{ComponentName}} -- Stateful</div>
);
}
}
export default {{ComponentName}};
|
src/ContactPage.js | znfish/znfish.github.io | import React from 'react';
import './css/ContactPage.css';
var ContactPage = React.createClass({
render() {
return(
<div className="contact">
<img src="img/contact.png" alt="paper-plane"/>
<div className="contactme">
<p>hyl9@uw.edu | 626-215-9650</p>
</div>
<div className="icon">
<a hre... |
client/src/app/main/dashboard/dashboard-ticket/dashboard-ticket-page.js | opensupports/opensupports | import React from 'react';
import _ from 'lodash';
import store from 'app/store';
import SessionActions from 'actions/session-actions';
import i18n from 'lib-app/i18n';
import API from 'lib-app/api-call';
import TicketViewer from 'app-components/ticket-viewer';
import Loading from 'core-components/loading';
import M... |
client/src/Components/Toolbar/AppToolbarLogin.js | appztreme/Jugendsommer | import React from 'react';
import Avatar from 'material-ui/lib/avatar';
import TextField from 'material-ui/lib/text-field';
import Colors from 'material-ui/lib/styles/colors';
const AppToolbarLogin = () => (
<div style={{float: 'left'}}>
<TextField
value='F. Edelmaier'
disabled={tru... |
src/svg-icons/maps/streetview.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsStreetview = (props) => (
<SvgIcon {...props}>
<path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z"/><circle cx="18" cy="6" r="5"/><path d... |
packages/wix-style-react/src/Table/BulkSelection/BulkSelectionConsumer.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { BulkSelectionContext } from './BulkSelection';
export const BulkSelectionConsumer = props => {
if (typeof props.children !== 'function') {
throw new Error(
`child of ${props.consumerCompName} must be a context consumer function`,
)... |
js/src/FirstRun/firstRun.js | destenson/ethcore--parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
aaf-enrollment/src/components/tiles/MethodTile.js | MicroFocus/CX | import PropTypes from 'prop-types';
import React from 'react';
import Tile from './Tile';
import {methods} from '../../data/MethodData';
import {templateType} from '../../types/types';
import t from '../../i18n/locale-keys';
export default function MethodTile({categoryName, id, onClick, template, templateChoice}) {
... |
src/components/Configuration/index.js | saitodisse/md-list | import React from 'react';
import {connect} from 'cerebral-view-react';
import styles from './styles';
import ConfigurationField from './ConfigurationField';
import _ from 'lodash/fp';
export default connect({
configurations: 'configurations.*',
user_configurations: 'login.user.configurations.*',
user_id: 'login... |
client/pages/todoReact/todoListView.js | jsg7440/jQuery-ToDo | var $ = require('jquery');
import React from 'react';
import ReactDOM from 'react-dom';
import Backbone from 'backbone';
import todoModel from 'pages/todoReact/todoModel';
import TodoItemView from 'pages/todoReact/todoView';
import dispatcher from 'pages/todoReact/todoDispatcher';
var TodoReactListView = Backbone.View... |
client/src/index.js | xNinjaKittyx/OtakuQuotes | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
modules/Link.js | wmyers/react-router | import React from 'react';
var { object, string, func } = React.PropTypes;
function isLeftClickEvent(event) {
return event.button === 0;
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}
/**
* <Link> components are used to create an <a> element t... |
examples/src/components/StatesField.js | oliversong/react-select | import React from 'react';
import Select from 'react-select';
const STATES = require('../data/states');
var id = 0;
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var StatesField = React.createClass({
displayName: 'StatesField',
p... |
src/svg-icons/image/photo.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhoto = (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>
);
ImagePhoto = p... |
client/src/components/header-loginStatus/notLoggedIn.js | AuggieH/GigRTC | import React from 'react'
import { Link } from 'react-router';
import LeftNav from 'material-ui/lib/left-nav';
import MenuItem from 'material-ui/lib/menus/menu-item';
import RaisedButton from 'material-ui/lib/raised-button';
import AppBar from 'material-ui/lib/app-bar';
import IconButton from 'material-ui/lib/icon-but... |
src/index.js | two-n/hawsehole | import React from 'react';
import { findDOMNode } from 'react-dom';
import { select } from 'd3-selection';
import 'd3-transition';
import { interpolate } from 'd3-interpolate';
import { bisect } from 'd3-array';
import { timer } from 'd3-timer';
export default class Hawsehole extends React.PureComponent {
static de... |
debugger/function-tree-debugger/src/components/Debugger/Inspector/JSONInput/index.js | idream3/cerebral | import './styles.css'
import React from 'react'
import {connect} from 'cerebral/react'
import {
isObject,
isArray
} from '../../../../common/utils'
export default connect({},
class JSONInput extends React.Component {
constructor (props) {
super(props)
this.state = {
isValid: true,
... |
src/index.js | dezede/dezede | import React from 'react';
import ReactDOM from 'react-dom';
import './i18n';
import App from './App';
ReactDOM.render(<App />, document.getElementById('react'));
|
src/components/fields/ArrayComponent/index.js | orionsoft/parts | import React from 'react'
import {ArrayComponent} from 'simple-react-form'
import Button from '../../Button'
import {SortableContainer, SortableElement, arrayMove} from 'react-sortable-hoc'
import RemoveIcon from 'react-icons/lib/md/cancel'
import without from 'lodash/without'
import PropTypes from 'prop-types'
// Sor... |
src/index.js | chrisVillanueva/react-redux-firebase-message-example | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import reduxThunk from 'redux-thunk';
import createLogger from 'redux-logger';
import App from './components/app';
import reducers from './redux/reducers';
const lo... |
web/src/components/tooltips/pricetooltip.js | corradio/electricitymap | import React from 'react';
import getSymbolFromCurrency from 'currency-symbol-map';
import { isNumber } from 'lodash';
import Tooltip from '../tooltip';
const PriceTooltip = ({ position, zoneData, onClose }) => {
if (!zoneData) return null;
const priceIsDefined = zoneData.price && isNumber(zoneData.price.value);... |
src/svg-icons/image/filter-center-focus.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterCenterFocus = (props) => (
<SvgIcon {...props}>
<path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 9... |
frontend/App.js | ghkk/node_dataguru | import React from 'react';
import {Router, Route, browserHistory} from 'react-router';
import Header from './component/Header';
import Footer from './component/Footer';
import TopicList from './component/TopicList';
export default class App extends React.Component {
render(){
return (
<div clas... |
actor-apps/app-web/src/app/components/common/Favicon.react.js | HKMOpen/actor-platform | import React from 'react';
export default class Fav extends React.Component {
static propTypes = {
path: React.PropTypes.string
}
constructor(props) {
super(props);
//// Create link element and it's attributes
//let favicon = document.createElement('link');
//let rel = document.createAttrib... |
client/reactapp/components/RegisterPage.js | TribeMedia/loopback-example-react | import React from 'react';
export default class RegisterPage extends React.Component {
static contextTypes = {
router: React.PropTypes.func
}
constructor ( props, context ) {
super( props, context );
this.props = props;
this.state = { };
this.context = context;
}
componentWillReceiveProps ( nextPro... |
tests/react/default_props_any.js | claudiopro/flow | // @flow
import React from 'react';
class Foo extends React.Component<{required: number}> {
static defaultProps: Object;
}
class Bar extends React.Component<{required: number}> {
static defaultProps: any;
}
<Foo/>;
<Bar/>;
|
src/components/crossword/disabledblock.js | HendrikCrause/crossword-creator | import React from 'react'
import colors from '../../theme/colors'
class DisabledBlock extends React.Component {
render() {
const style = {
backgroundColor: colors.borderColor,
color: colors.textColor,
borderColor: colors.borderColor,
borderWidth: 1,
borderStyle: 'solid',
width... |
app/containers/App/index.js | markmadej/foosball-ref | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
app/components/withKeyboardHeight.js | lelandrichardson/react-native-in-depth | import React from 'react';
import {
Keyboard,
Dimensions,
Platform,
} from 'react-native';
const withKeyboardHeight = () => Component => class KeyboardHeight extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
keyboardHeight: 0,
};
this.listeners ... |
src/components/BackgroundDimmer.js | codaco/Network-Canvas | import React from 'react';
import { motion } from 'framer-motion';
import { getCSSVariableAsNumber } from '@codaco/ui/lib/utils/CSSVariables';
const BackgroundDimmer = (props) => {
const slowDuration = getCSSVariableAsNumber('--animation-duration-slow-ms') / 1000;
const variants = {
normal: {
opacity: 1... |
examples/contactlist/app/UserMenu.js | zalmoxisus/react-chat | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import MdInfo from 'react-icons/lib/md/info';
import MdMessage from 'react-icons/lib/md/message';
import MdVideocam from 'react-icons/lib/md/videocam';
import MdClose from 'react-icons/lib/md/close';
import styles from './contactlist.scss';
... |
src/svg-icons/editor/drag-handle.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorDragHandle = (props) => (
<SvgIcon {...props}>
<path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/>
</SvgIcon>
);
EditorDragHandle = pure(EditorDragHandle);
EditorDragHandle.displayName = 'EditorDragHandle';
ex... |
lib/VideoCoverFallback.js | t-obi/react-video-cover | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class VideoCoverFallback extends Component {
constructor(props) {
super(props);
this.state = {
innerRatio: undefined,
outerRatio: undefined,
}
this.updateContainerRatio = this.updateContainerRatio.bind(this);
... |
src/Parser/DeathKnight/Unholy/Modules/Items/Tier21_4p.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
class Tier21_4p ex... |
src/layout-components/FullScreenView.js | Charlie9830/pounder | import React, { Component } from 'react';
import { withTheme } from '@material-ui/core';
class FullScreenView extends Component {
render() {
let { theme } = this.props;
let containerStyle = {
width: '100vw',
height: '100vh',
background: theme.palette.background.... |
js/jqwidgets/demos/react/app/maskedinput/defaultfunctionality/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxMaskedInput from '../../../jqwidgets-react/react_jqxmaskedinput.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.refs.myClearButton.on('click', ()... |
games/jab/pre-game2/src/scripts/components/App.js | jabrena/ReactLab | import React from 'react'
import HelloWorld from './../containers/HelloWorld'
class App extends React.Component {
render() {
return (
<HelloWorld />
)
}
}
export default App |
src/svg-icons/image/timer-10.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimer10 = (props) => (
<SvgIcon {...props}>
<path d="M0 7.72V9.4l3-1V18h2V6h-.25L0 7.72zm23.78 6.65c-.14-.28-.35-.53-.63-.74-.28-.21-.61-.39-1.01-.53s-.85-.27-1.35-.38c-.35-.07-.64-.15-.87-.23-.23-.08-.41-... |
docs/app/Examples/elements/Button/Types/ButtonExampleButton.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleButton = () => (
<Button>
Click Here
</Button>
)
export default ButtonExampleButton
|
src/containers/App.js | pjkarlik/Hacker | /* global process.env */
import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../redux/configureStore';
// Container Elements
import Navigation from './Navigation';
// Less for CSS Modules
import AppStyles from './App.less';
import NavigationStyles from './Navigation.less';
// ... |
packages/material-ui-icons/src/Note.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Note = props =>
<SvgIcon {...props}>
<path d="M22 10l-6-6H4c-1.1 0-2 .9-2 2v12.01c0 1.1.9 1.99 2 1.99l16-.01c1.1 0 2-.89 2-1.99v-8zm-7-4.5l5.5 5.5H15V5.5z" />
</SvgIcon>;
Note = pure(Note);
Note.muiNam... |
src/containers/Home/Home.js | TracklistMe/client-react | import React, { Component } from 'react';
import { HomeJumbotron, ReleaseSection, ArtistSection, StuffPicksSection, BlogSection } from 'components';
import config from '../../config';
import Helmet from 'react-helmet';
export default class Home extends Component {
render() {
return (
<div>
<Helmet... |
react-tasks/src/TaskList.js | driverInside/react-basic | import React, { Component } from 'react';
class TaskList extends Component {
render() {
var displayTask = (task) => <li>{ task }</li>
return (
<ul>
{ this.props.items.map(displayTask) }
</ul>
);
}
}
export default TaskList; |
plugins/react/frontend/components/common/DeleteButton/index.js | pure-ui/styleguide | /* eslint-disable max-len */
/**
* DeleteButton
*
* Shows a button with a pencil
*/
import React from 'react';
import styles from './styles.css';
import Button from '../Button';
const DeleteButton = (props) => (
<Button {...props} className={props.className}>
<svg
className={styles.svg}
height=... |
packages/react-error-overlay/src/components/CodeBlock.js | lolaent/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React from 'react';
import { redTransparent, yellowTransparent } from '../styles';
const _preStyle = {
display: 'b... |
frontend/src/components/dialog/confirm-disconnect-wechat.js | miurahr/seahub | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap';
import { gettext } from '../../utils/constants';
const propTypes = {
formActionURL: PropTypes.string.isRequired,
csrfToken: PropTypes.string.isRequired,
t... |
app/routes.js | SomeoneWeird/aergia | import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from './containers/App'
import AppNotFound from './containers/AppNotFound'
import HomePage from './containers/home'
import SelectSD from './containers/selectSD'
import SelectModel from './containers/selectModel'
import SelectRegio... |
app/components/WithLoading/index.js | VonIobro/ab-web | /* eslint no-multi-spaces: "off", key-spacing: "off" */
import React from 'react';
import { keyframes } from 'styled-components';
const spinnerAnimation = keyframes`
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
`;
const defaultBlockStyle = {
outer: {},
inner: {
display: 'block',
... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-12/friend-detail/FriendDetail.js | Brandon-J-Campbell/codemash | import React from 'react';
import Page from '../shared/Page';
import Card from '../shared/Card';
import styles from './FriendDetail.css';
export default function({ friend }) {
return (
<Page>
<div className={styles.friendDetail}>
<Card>
<h1>{friend.name}</h1>
<h2>ID: {friend.id... |
react/FlagMYIcon/FlagMYIcon.js | seekinternational/seek-asia-style-guide | import svgMarkup from './FlagMYIcon.svg';
import React from 'react';
import Icon from '../private/Icon/Icon';
export default function FlagMYIcon(props) {
return <Icon markup={svgMarkup} {...props} />;
}
FlagMYIcon.displayName = 'FlagMYIcon';
|
example/src/screens/Transitions.js | yusufyildirim/react-native-navigation | import React from 'react';
import {StyleSheet, ScrollView, Text} from 'react-native';
import Row from '../components/Row';
class Transitions extends React.Component {
showCollapsingHeader = () => {
this.props.navigator.showModal({
title: 'Collapsing Header',
screen: 'example.Transitions.CollapsingHe... |
src/components/ui/InfoBar.js | GustavoKatel/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import classnames from 'classnames';
import Loader from 'react-loader';
// import { oneOrManyChildElements } from '../../prop-types';
import Appear from './effects/Appear';
export default @observer cla... |
app/routes.js | jenyckee/electron-virtual-midi | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import Sketch from './containers/Sketch';
import Connect from './containers/Connect';
export default (
<Route path="/" component={App}>
<IndexRoute compon... |
src/routes/home/index.js | cineindustria/site | /**
* 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 Home from './Home';
i... |
examples/Examples.js | feleks/rsk-router | import React from 'react'
import {route} from 'src/router';
import Example1 from './example1/Example1';
class ExampleList extends React.Component {
constructor(props) {
super(props);
this.state = {
showExample: 'all'
}
}
render() {
let content;
switch (this.state.showExample) {
cas... |
packages/logos/src/mariadb.js | yldio/joyent-portal | import React from 'react';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
colors = {},
...rest
}) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42" {...rest}>
<title>Artboard 1 copy 18</title>
<path
fill={calcFill({ fill, disabled... |
src/js/components/Layer/stories/Target.js | HewlettPackard/grommet | import React from 'react';
import { Box, Button, CheckBox, Grid, Grommet, Layer, Select } from 'grommet';
import { grommet } from 'grommet/themes';
const positions = ['left', 'right', 'top', 'bottom', 'center'];
export const TargetLayer = () => {
const [open, setOpen] = React.useState();
const [gutter, setGutter]... |
src/index.js | frastlin/Toolo | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
jenkins-design-language/src/js/components/material-ui/svg-icons/content/undo.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentUndo = (props) => (
<SvgIcon {...props}>
<path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/>
</SvgIcon>
);
ContentUndo.displayName ... |
server/sonar-web/src/main/js/apps/code/components/Code.js | joansmith/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
assets/search-view/profile-view/components/Skills.js | janta-devs/nyumbani | import React, { Component } from 'react';
class Skills extends Component{
render() {
return (
<div />
);
}
}
export default Skills;
|
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/All.js | gabelevi/flow | // @flow
import React from 'react';
class MyComponent extends React.Component<DefaultProps, Props, State> {
static defaultProps: DefaultProps = {};
state: State = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends Re... |
src/components/footer/Footer.js | aitorfernandez/trackicon-invaders | import React, { Component } from 'react';
import './Footer.css';
class Footer extends Component {
render() {
return (
<footer className="footer">
<div className="footer__nav">
<p>
Made with fun \(^▽^)/
</p>
<nav>
<a href="http://aitorfernandez.... |
rojak-ui-web/src/app/result/ResultGateway.js | CodeRiderz/rojak | import React from 'react'
import { connect } from 'react-redux'
class ResultGateway extends React.Component {
static propTypes = {
showIn: React.PropTypes.array,
hideIn: React.PropTypes.array,
keyword: React.PropTypes.string.isRequired,
children: React.PropTypes.any.isRequired
}
get managedChild... |
src/components/Ribbon/index.js | sioked/ecomchicago | import React from 'react';
import PropTypes from 'prop-types';
import {css} from 'glamor';
import tinycolor from 'tinycolor2';
import { Title } from 'bloomer';
const ribbonColor = '#fff';
const darkText = '#000';
const ribbonColorLight = tinycolor(ribbonColor).lighten(10).toHex();
const ribbonColorDark = tinycolor(rib... |
src/Scene.js | dmazin/react-native-router-flux | /**
* Copyright (c) 2015-present, Pavel Aksonov
* 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.
*
*/
import PropTypes from 'prop-types';
import React from 'react';
import { ViewPropTypes, Text } from 'reac... |
frontend/modules/list/components/NewList.js | RyanNoelk/OpenEats | "use strict";
import React from 'react'
import PropTypes from 'prop-types'
import { injectIntl, defineMessages } from 'react-intl'
import { ENTER_KEY } from '../constants/ListStatus'
class NewList extends React.Component {
constructor(props) {
super(props);
this.state = {
title: this.props.title || ... |
src/components/Home/Exhibits/presenter.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import ExhibitCard from 'components/ExhibitCard'
import Link from 'components/Interactive/Link'
import './style.css'
const Presenter = ({ entries }) => {
return (
<div className='col-xs-12'>
<section aria-label='Exhibits' className='exhibitsSect... |
src/Subheader/Subheader.js | hai-cea/material-ui | import React from 'react';
import PropTypes from 'prop-types';
const Subheader = (props, context) => {
const {
children,
inset,
style,
...other
} = props;
const {
prepareStyles,
subheader,
} = context.muiTheme;
const styles = {
root: {
boxSizing: 'border-box',
color:... |
stories/components/form/formEmail/index.js | OperationCode/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import FormEmail from 'shared/components/form/formEmail/formEmail';
storiesOf('shared/components/form/formEmail', module)
.add('Default', () => (
<FormEmail
onChange={action('Change... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.