path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
blueocean-material-icons/src/js/components/svg-icons/image/exposure-plus-1.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageExposurePlus1 = (props) => (
<SvgIcon {...props}>
<path d="M10 7H8v4H4v2h4v4h2v-4h4v-2h-4V7zm10 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z"/>
</SvgIcon>
);
ImageExposurePlus1.displayName = 'ImageExposurePlus1';
ImageExposurePlus1.muiName = 'Sv... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsTypeArgNoProperty.js | facebook/flow | // @flow
import React from 'react';
class MyComponent extends React.Component<any, Props, State> {
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component<any, Props, State> {
defaultProps: T;
static props:... |
packages/@lyra/form-builder/src/lyra/LyraFormBuilder.js | VegaPublish/vega-studio | // @flow
import React from 'react'
import LyraFormBuilderContext from './LyraFormBuilderContext'
import {FormBuilderInput} from '../FormBuilderInput'
import {Marker} from '../typedefs'
type PatchChannel = {
subscribe: () => () => {},
receivePatches: (patches: Array<*>) => void
}
type Props = {
value: ?any,
sc... |
lib-module-node7-dev/layout/Head.js | turacojs/fody | 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; };
var _jsxFileName = 'layout/Head.jsx',
_this = this;
impo... |
old_examples/focus/app.js | rackt/react-tabs | import React from 'react';
import { render } from 'react-dom';
import { Tab, Tabs, TabList, TabPanel } from '../../src/index';
import '../../style/react-tabs.css';
class App extends React.Component {
constructor(props) {
super(props);
this.state = { inputValue: '' };
}
handleInputChange = (e) => {
... |
examples/huge-apps/components/Dashboard.js | jamiehill/react-router | import React from 'react';
import { Link } from 'react-router';
class Dashboard extends React.Component {
render () {
let { courses } = this.props;
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
... |
src/components/ui/Card.js | shwethadn/StarterApp | /**
* Buttons
*
<Button text={'Server is down'} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import { Card } from 'react-native-elements';
// Consts and Libs
import { AppSizes } from '@theme/';
/* Component ==============... |
src/components/search_bar.js | msfern/modern-react-udemy | import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: '' };
}
render() {
return(
<div>
<input
value={this.state.term}
onChange={even... |
src/index.js | thomasboyt/remarkable-jsx | import React from 'react';
import {default as originalRules} from 'remarkable/lib/rules';
/*
* This is a map of token types that open blocks to token types that close blocks,
* always of the form `{name_open: name_close}`
*
* It's used to check whether a token type opens a block, as well as to quickly get the
* ... |
lib/DebuggerView.js | SqrTT/bart | 'use babel';
import React from 'react';
import ReactDOM from 'react-dom';
import EventEmitter from 'events';
const noop = function() {};
class StackView extends React.Component {
render() {
if (this.props.thread === 'spin') {
return <span className='loading loading-spinner-tiny inl... |
js/jqwidgets/demos/react/app/scheduler/keyboardnavigation/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js';
class App extends React.Component {
componentDidMount() {
this.refs.myScheduler.focus();
}
render() {
// prepare the data
let source =
... |
src/common/components/forms/user/ResetPasswordForm.js | gocreating/express-react-hmr-boilerplate | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { Field, reduxForm } from 'redux-form';
import Alert from 'react-bootstrap/lib/Alert';
import Button from 'react-bootstrap/lib/Button';
import FormNames from '../../../constants/FormNames';
impor... |
Js/Ui/Components/Checkbox/index.js | Webiny/Webiny | import React from 'react';
import _ from 'lodash';
import Webiny from 'webiny';
import styles from './styles.css';
class Checkbox extends Webiny.Ui.FormComponent {
constructor(props) {
super(props);
this.id = _.uniqueId('checkbox-');
this.bindMethods('onChange,isChecked');
}
onCha... |
app/containers/Root.prod.js | Artur93gev/React-lists | import PropTypes from 'prop-types';
import React from 'react';
import { Provider } from 'react-redux';
import { Route } from 'react-router-dom';
import { ConnectedRouter } from 'react-router-redux';
import App from '../components/App';
export default function Root({store, history}) {
return (
<Provider st... |
src/About/About.js | ZhaoShouLiang/big-demo | import React from 'react';
import Echart from '../Echart/Echarts.js'
import {blue500} from 'material-ui/styles/colors';
import axios from 'axios';
import ShowGit from './gitShow'
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import CircularProgress from 'material-... |
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js | matart15/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.
*/
import React from 'react';
export default () => (
<span id="feature-shell-env-variables">
{process.env.REACT_APP_SHELL_ENV_MESSAG... |
src/components/App.js | stanxii/laiico | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
src/components/topic/platforms/builder/Platform1ConfigureContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import PlatformFormContainer from './PlatformFormContainer';
import { goToCreatePlatformStep } from '../../../../actions/topicActions';
import { PLATFORM_OPEN_WEB } from '../../... |
src/client/assets/js/nodes/outputs/plug/node.js | me-box/iot.red | import React from 'react';
//import composeNode from 'utils/composeNode';
import Textfield from 'components/form/Textfield';
import Select from 'components/form/Select';
import Cell from 'components/Cell';
import Cells from 'components/Cells';
import { formatSchema } from 'utils/utils';
import {configNode} from 'utils/... |
static/node_modules/react-date-picker/src/ClockInput.js | unmeshpro/easyPost | import React from 'react'
import Component from 'react-class'
import throttle from 'lodash.throttle'
import assign from 'object-assign'
import { Flex } from 'react-flex'
import join from './join'
import toMoment from './toMoment'
import Clock from './Clock'
import DateFormatSpinnerInput from './DateFormatSpinnerInp... |
Console/app/node_modules/antd/es/collapse/Collapse.js | RisenEsports/RisenEsports.github.io | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _createClass from 'babel-runtime/helpers/createClass';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
src/components/ArticleMenu.js | aztecrex/engineer-site | import React from 'react';
import {Link} from 'react-router';
import R from 'ramda';
class ArticleMenu extends React.Component {
keyedMenuItem(entry) {
return (
<li className="article-menu-item" key={entry.id}>
<Link to={"/article/" + entry.id}>
{entry.title}
</Link>
</li>
... |
admin/client/components/Toolbar/index.js | wmertens/keystone | import React from 'react';
import { Container } from 'elemental';
module.exports = React.createClass({
displayName: 'Toolbar',
render () {
return (
<div {...this.props} className="Toolbar">
<Container clearfix >
{this.props.children}
</Container>
</div>
);
},
});
// expose the children to th... |
app/javascript/components/table/index.js | Vizzuality/forest-atlas-landscape-cms | import React from 'react';
import PropTypes from 'prop-types';
import Fuse from 'fuse.js';
import classnames from 'classnames';
import TableActions from 'components/table/TableActions';
import Toolbar from 'components/table/Toolbar';
import TableFooter from 'components/table/TableFooter';
const fuseOptions = {
shou... |
src/elements/Step/StepTitle.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* A step can contain a title.
*/
function StepTitle(props) {
const { children, class... |
src/@ui/Placeholder/withPlaceholder.js | NewSpring/Apollos | import React from 'react';
import { getIsLoading } from '@ui/isLoading';
import { Line } from './';
const withPlaceholder = (PlaceholderComponent = Line, getProps = {}) => Component => getIsLoading(
({ isLoading = false, style, ...props }) => {
const propInput = typeof getProps === 'function' ? getProps(props) :... |
app/javascript/mastodon/features/getting_started/index.js | tootcafe/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnLink from '../ui/components/column_link';
import ColumnSubheading from '../ui/components/column_subheading';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import Prop... |
src/components/UserDisplay/UserDisplay.js | F-Ruxton/taskata | import React, { Component } from 'react';
class UserDisplay extends Component {
constructor(props) {
super(props);
this.state = { userName: 'Logged out' }
}
componentDidMount() {
window.taskata.subscribe({
list: 'authChanges',
subscriberId: 'UserDisplay',
callback: this.updateUserI... |
src/components/compact/CompactColor.js | conorhastings/react-color | 'use strict' /* @flow */
import React from 'react'
import ReactCSS from 'reactcss'
import shallowCompare from 'react-addons-shallow-compare'
export class CompactColor extends ReactCSS.Component {
shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1])
classes(): any {
return {
... |
src/parser/deathknight/frost/modules/talents/Frostscythe.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
import Events from 'parser/core/Events';
i... |
node_modules/react-router/es6/RouteUtils.js | signalcat/UIportfolio | 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; };
import React from 'react';
function isValidChild(object) {
... |
front_module/src/app/Content.js | ethan-lau/mars | import React from 'react';
import {List, ListItem} from 'material-ui/List';
import Avatar from 'material-ui/Avatar';
let UserInfo = React.createClass({
render: function() {
return (<Avatar src='#'/>);
}
});
export default class Content extends React.Component {
render() {
var listItems = [];
this.p... |
components/Text.js | sikhote/clairic | import React from 'react';
import PropTypes from 'prop-types';
import {
colors,
fontSizes,
fontFamilies,
lineHeights,
fontWeights,
} from '../lib/styling';
import translations from '../lib/translations';
const Text = ({
children,
fontSize,
color,
fontWeight,
fontFamily,
lineHeight,
messageId,
... |
src/components/desktop/ROSDesktop.js | uditalias/react-os | import React from 'react';
var ROSDesktop = React.createClass({
render() {
return (
<div className="ros-desktop flex-1">
{this.props.children}
</div>
);
}
});
export default ROSDesktop;
|
examples/with-iron-session/components/Header.js | flybayer/next.js | import React from 'react'
import Link from 'next/link'
import useUser from '../lib/useUser'
import { useRouter } from 'next/router'
import fetchJson from '../lib/fetchJson'
const Header = () => {
const { user, mutateUser } = useUser()
const router = useRouter()
return (
<header>
<nav>
<ul>
... |
packages/react-cache/src/ReactCache.js | mjackson/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
import warningWithoutStack from 'shared/warningWithoutStack';
import {createLRU} from './L... |
src/svg-icons/social/pages.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPages = (props) => (
<SvgIcon {...props}>
<path d="M3 5v6h5L7 7l4 1V3H5c-1.1 0-2 .9-2 2zm5 8H3v6c0 1.1.9 2 2 2h6v-5l-4 1 1-4zm9 4l-4-1v5h6c1.1 0 2-.9 2-2v-6h-5l1 4zm2-14h-6v5l4-1-1 4h5V5c0-1.1-.9-2-2-2z"/... |
fields/types/code/CodeField.js | frontyard/keystone | import _ from 'lodash';
import CodeMirror from 'codemirror';
import Field from '../Field';
import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormInput } from '../../../admin/client/App/elemental';
import classnames from 'classnames';
/**
* TODO:
* - Remove dependency on lodash
*/
// See ... |
src/containers/editor/RepoEditor/TokenSetter.js | mydearxym/mastani | import React from 'react'
import { ISSUE_ADDR } from '@/config'
import Button from '@/widgets/Buttons/Button'
import FormItem from '@/widgets/FormItem'
import {
TokeInputWrapper,
SetTokenDesc,
SetTokenIssue,
} from './styles/search_man'
import { tokenOnChange, setGithubToken } from './logic'
const TokenSette... |
src/index.js | angela-cheng/simpleBlog | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import promise from 'redux-promise';
//import App from './components/app'; we don't need this anymo... |
src/components/Text.story.js | creditornot/wolt-web-common | import React from 'react';
import { storiesOf } from '@storybook/react';
import Text from './Text';
const lorem = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco labor... |
src/svg-icons/toggle/radio-button-unchecked.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleRadioButtonUnchecked = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/>
</SvgIco... |
src/browser/app/Footer.react.js | abelaska/este | import React, { Component } from 'react';
import { FormattedHTMLMessage, defineMessages } from 'react-intl';
// Messages collocation ftw.
// https://github.com/yahoo/react-intl/wiki/API#definemessages
const messages = defineMessages({
madeByHtml: {
defaultMessage: 'Made with love by <a href="https://twitter.com/... |
smartSILS/usermains/rooms/RoomCheckIn.ios.js | wangleibeckham/iPRED | 'use strict'
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
StatusBar,
ScrollView,
PixelRatio,
Image,
Dimensions,
Linking,
TouchableHighlight,
TouchableOpacity,
AlertIOS,
DeviceEventEmitter,
ActivityIndicator
} from 'react-native';
var beaconEmit... |
src/components/form/error/index.js | JamesHageman/rangle-elm-starter | import React from 'react';
import classNames from 'classnames';
function FormError({ children, isVisible, testid = 'form-error', ...props}) {
const formErrorClasses = classNames('bold', 'black', { 'hide': !isVisible });
return (
<div data-testid={testid} className={ formErrorClasses } {...props}>
{ chil... |
src/components/events-list.js | gt-webdev/gt-webdev.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment'
import {defaultIcon} from '../data/defaults.js'
class EventsList extends React.Component {
render() {
return (
<div>
{this.props.events.map(e => (
<div className="event-box container">
<d... |
src/404.js | kwangkim/react-static-boilerplate | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React from 'react';
export default class {
render() {
return (
<div>
<h1>Not Found</h1>
<p>The page you're looking for was not foun... |
client/src/client-only-routes/ShowCertification.js | jonathanihm/freeCodeCamp | /* eslint-disable react/jsx-sort-props */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { Grid, Row, Col, Image, Button } from '@freecodecamp/react-bootstr... |
src/svg-icons/maps/local-dining.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalDining = (props) => (
<SvgIcon {...props}>
<path d="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2-1.... |
src/client/react/admin/components/AdminNavbar/SettingsMenu.js | bwyap/ptc-amazing-g-race | import React from 'react';
import PropTypes from 'prop-types';
import autobind from 'core-decorators/es/autobind';
import { Menu, MenuItem, MenuDivider } from "@blueprintjs/core";
import { connect } from 'react-redux';
import { toggleShowNotifications } from '../../../../actions/settingsActions';
const mapStateToProp... |
src/components/app.js | vtkamiji/react-aula3 | import React, { Component } from 'react';
import SearchBar from '../containers/search-bar';
import WeatherList from '../containers/weather-list';
export default class App extends Component {
render() {
return (
<div>
<SearchBar />
<WeatherList />
</div>
);
}
}
|
app/javascript/mastodon/features/ui/components/column_link.js | anon5r/mastonon | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
const ColumnLink = ({ icon, text, to, href, method, badge }) => {
const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span> : null;
if (href) {
return (
<... |
src/svg-icons/device/signal-cellular-off.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularOff = (props) => (
<SvgIcon {...props}>
<path d="M21 1l-8.59 8.59L21 18.18V1zM4.77 4.5L3.5 5.77l6.36 6.36L1 21h17.73l2 2L22 21.73 4.77 4.5z"/>
</SvgIcon>
);
DeviceSignalCellularOff = pure(... |
temp/form/text/index.js | youtogod/webpack-sample-project | import React from 'react';
import {Control, Errors} from 'react-redux-form';
const text = (metaData) => {
const {displayLabel, isRequired, name, controlOptions, errorOptions} = metaData;
return (
<div className="entityFormText" key={name}>
<label>{displayLabel}{isRequired && <span>*</span>}... |
examples/nested-components/components/paragraph.js | dstreet/next.js | import React from 'react'
import style from 'next/css'
export default ({ children }) => (
<p className={styles}>{children}</p>
)
const styles = style({
font: '13px Helvetica, Arial',
margin: '10px 0'
})
|
src/pages/conference/people/staff/edit/index.js | sunway-official/acm-admin | import React from 'react';
import { Dialog, Tabs, Tab, IconButton } from 'material-ui';
import { NavigationClose } from 'material-ui/svg-icons';
import Roles from './roles';
import Form from './form';
import { connect } from 'react-redux';
import { queries } from '../helpers';
import { graphql, compose } from 'react-ap... |
app/demos/timeslots.js | asantebuil/room-reservation | import React from 'react';
import BigCalendar from 'react-big-calendar';
import events from '../events';
let Timeslots = React.createClass({
render(){
return (
<BigCalendar
{...this.props}
events={events}
step={15}
timeslots={8}
defaultView='week'
defaultDate... |
clients/packages/admin-client/src/mobrender-v2/widgets/donation/progress.js | nossas/bonde-client | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import tinycolor from 'tinycolor2';
import * as formatNumberHelper from '../../../utils/format-number-helper';
if (require('exenv').canUseDOM) require('./progress.scss');
const colorStrategy = (color) =>
tinycolor(co... |
src/js/components/example/index.js | jdd1260/react-project-starter | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Jumbotron } from 'reactstrap';
class Example extends Component {
constructor(props) {
super(props);
this.state = {
images: ["pexels-photo-39811.jpeg", "pexels-photo-131723.jpeg", "pexels-photo... |
packages/components/src/VirtualizedList/CellQualityBar/CellQualityBar.component.js | Talend/ui | import React from 'react';
import QualityBar from '../../QualityBar';
export const CellQualityBar = ({ cellData }) => cellData && <QualityBar {...cellData} /> || null;
CellQualityBar.displayName = 'VirtualizedList(CellQualityBar)';
CellQualityBar.propTypes = {
cellData: QualityBar.propTypes.isRequired,
};
|
examples/FixedActionButton.js | jsbranco/react-materialize | import React from 'react';
import Button from '../src/Button';
export default
<Button floating fab='vertical' faicon='fa fa-plus' className='red' large style={{bottom: '45px', right: '24px'}}>
<Button floating icon='insert_chart' className='red'/>
<Button floating icon='format_quote' className='yellow darken-1'/... |
components/slider/slider.js | Centroida/CentroUI | import React from 'react';
import {
AppRegistry,
asset,
Pano,
Text,
View,
Sphere,
} from 'react-vr';
const DEFAULT_BACKGROUND_COLOR = "#0275d8";
const DEFAULT_HOVER_COLOR = "#585858";
export default class Slider extends React.Component {
constructor(props) {
super(props);
... |
src/routes/OrderRoute.js | gcanti/tcomb-spa-example | import React from 'react'
import { t, props } from 'tcomb-react'
import OrderPage from '../components/OrderPage'
@props({
app: t.Object,
orderId: t.String
})
export default class OrderRoute extends React.Component {
componentDidMount() {
this.props.app.fetchOrder(this.props.orderId)
}
render() {
co... |
src/routes/notFound/index.js | yvanwangl/UniversalBlog | /**
* 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 Layout from '../../co... |
front/component/app/app.js | xonlly/ard |
import React from 'react'
import AppBar from 'material-ui/AppBar';
import Camera from 'component/cameraUI'
const App = () => {
return (
<div>
<Camera />
</div>
)
}
export default App
|
frontend/src/routes/MapView/MapChat/Message.js | metamaps/metamaps | import React from 'react'
import Autolinker from 'autolinker'
import Util from '../../../Metamaps/Util'
const linker = new Autolinker({ newWindow: true, truncate: 50, email: false, phone: false })
function addZero(i) {
if (i < 10) {
i = '0' + i
}
return i
}
function formatDate(createdAt) {
let date = new... |
src/icons/VoiceChatIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class VoiceChatIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 4H8C5.79 4 4.02 5.79 4.02 8L4 44l8-8h28c2.21 0 4-1.79 4-4V8c0-2.21-1.79-4-4-4zm-4 24l-8-6.4V28H12V12... |
docs/src/app/components/pages/components/Toolbar/ExampleSimple.js | hwo411/material-ui | import React from 'react';
import IconMenu from 'material-ui/IconMenu';
import IconButton from 'material-ui/IconButton';
import FontIcon from 'material-ui/FontIcon';
import NavigationExpandMoreIcon from 'material-ui/svg-icons/navigation/expand-more';
import MenuItem from 'material-ui/MenuItem';
import DropDownMenu from... |
admin/client/Signin/components/Alert.js | w01fgang/keystone | /**
* Renders an Alert. Pass either an isInvalid and invalidMessage prop, or set
* the signedOut prop to true to show the standard signed out message
*/
import React from 'react';
import { Alert } from '../../App/elemental';
const AlertView = function (props) {
if (props.isInvalid) {
return <Alert key="error" c... |
src/components/icons/CloudsIcon.js | maximgatilin/weathernow | import React from 'react';
export default function CloudsIcon() {
return (
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 129.97 95.48"><title>clouds</title><path d="M456.46,167h0c0-.25,0-0.5,0-0.75a36.25,36.25,0,1,0-72.51,0s0,0,0,.07a29.59,29.59,0,0,0,1.39,59.16h71.12A29.24,... |
src/sheetElems/textQuestion/presentation.js | lukaszmakuch/quiz | import React from 'react';
export default props => (<span className="question" data-question-type="textQuestion">{props.question.value}</span>); |
react-flux-mui/js/material-ui/src/svg-icons/navigation/expand-more.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationExpandMore = (props) => (
<SvgIcon {...props}>
<path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/>
</SvgIcon>
);
NavigationExpandMore = pure(NavigationExpandMore);
NavigationExpandMore.displayN... |
src/scenes/dashboard/itemDetail/commentDetail/index.js | PowerlineApp/powerline-rn | //This looks like the View Replies module. Item Detail Screen shows all root comments. If a root comment has multiple children replies, user has option to View More. Tapping View More should open this screen.
//GH18, GH17
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Contain... |
docs/app/Examples/modules/Progress/Content/ProgressExampleProgress.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Progress } from 'semantic-ui-react'
const ProgressExampleProgress = () => (
<Progress percent={44} progress />
)
export default ProgressExampleProgress
|
src/Menu.js | icaropires/Interlogex | import React from 'react';
import ReactDOM from 'react-dom';
import {Link} from 'react-router-dom';
import {Menu, MenuItem, IconMenu, IconButton} from 'material-ui';
import MenuIcon from 'material-ui/svg-icons/navigation/menu';
import logo from '../public/imagem/logo_cabecalho.png';
// <Link to="/quemsomos" className=... |
src/renderer/index.js | BeatPlus/Protonmail | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { hot } from 'react-hot-loader';
import store from './store';
import App from './containers/App';
import './styles/base.scss';
let AppComponent;
if (module.hot) {
AppComponent = hot(module)(App);
} else {
... |
app/components/PpcRulesheet/index.js | kamil-mrzyglod/AosArmyBuilder | /**
*
* PpcRulesheet
*
*/
import React from 'react';
import * as _ from 'lodash';
import { Modal, Header, Button, Icon, Progress } from 'semantic-ui-react';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
import Faction from '../Faction';
import FactionUnit from '../FactionUnit';
imp... |
docs/src/app/app.js | igorbt/material-ui | import React from 'react';
import {render} from 'react-dom';
import {Router, useRouterHistory} from 'react-router';
import AppRoutes from './AppRoutes';
import {createHashHistory} from 'history';
// Helpers for debugging
window.React = React;
window.Perf = require('react-addons-perf');
/**
* Render the main app comp... |
src/example/Pages/Introduction/Contributors.js | mappmechanic/codelab-book | import React, { Component } from 'react';
const tableStyle = {
display: 'flex',
flexDirection: 'column',
width: '100%',
border: '1px solid #eaeaea'
};
const rowStyle = {
display: 'flex',
flexDirection: 'row'
};
const borderRow = {
...rowStyle,
borderBottom: tableStyle.border
}
const rowHeadStyle = {
...r... |
src/index.js | platejan/HeroCamp | require('eventsource-polyfill');
import "babel-polyfill";
// modules
import {AppContainer} from 'react-hot-loader';
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {syncHistoryWithStore} from 'react-router-redux';
import {browserHistory} from 'react-router';
/... |
src/svg-icons/navigation/check.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationCheck = (props) => (
<SvgIcon {...props}>
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/>
</SvgIcon>
);
NavigationCheck = pure(NavigationCheck);
NavigationCheck.displayName = 'Navigati... |
boxroom/archive/backup-js-bling-2018-04-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2017-10-23-before-redesign/src/demo/pagination/pagination.js | js-works/js-surface | import {
defineClassComponent,
defineFunctionalComponent,
hyperscript as h,
mount
} from 'js-surface';
import { Seq } from 'js-essential';
import PaginationHelper from './helper/PaginationHelper.js';
import ComponentHelper from './helper/ComponentHelper.js';
import React from 'react';
import ReactD... |
src/components/form-container.js | mozilla/donate.mozilla.org | import React from 'react';
var FormContainer = React.createClass({
render: function() {
return (
<form id="donation-form" method="post">
<div className="container">
{this.props.children}
</div>
</form>
);
}
});
module.exports = FormContainer;
|
CompositeUi/src/views/page/Dashboard.js | kreta-io/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import './../../scss/views/page/_dashboar... |
src/components/pieces/TopNav.js | zdizzle6717/universal-react-movie-app | 'use strict';
import React from 'react';
import classNames from 'classnames';
import Animation from 'react-addons-css-transition-group';
import AlertActions from '../../library/alerts/actions/AlertActions';
import { Link, browserHistory } from 'react-router';
import UserStore from '../../library/authentication/stores/... |
src/Task.js | curious-containers/cc-ui | import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import _ from 'lodash';
import { Link } from 'react-router';
import { fromMongoDate, formatJSON } from './utils';
import { api, stateIDs, stateToClass } from './Api';
export default createReactClass({
... |
src/index.js | steveblackmon/probot | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
|
ui/src/containers/Visualisations/CustomCounter/Viewer.js | LearningLocker/learninglocker | import React from 'react';
import PropTypes from 'prop-types';
import CounterResults from 'ui/containers/VisualiseResults/CounterResults';
/**
* @param {string} props.visualisationId
*/
const Viewer = ({
visualisationId,
}) => <CounterResults id={visualisationId} />;
Viewer.propTypes = {
visualisationId: PropTy... |
module_5/viz/js/indicator_chart.js | getsmarter/bda | import React from 'react'
import d3 from 'd3'
import ReactDOM from 'react-dom'
import c3 from 'c3'
import { meta_indicators, flatten } from "./utils"
const days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
export default class IndicatorChart extends React.Component {
constructo... |
app/components/TweetList.js | jbandi/birdcage-electron-react | import React, { Component } from 'react';
import { Dialog, Button } from 'react-desktop/macOs';
export default class extends Component {
render() {
const {tweets} = this.props;
return (
<ul className="list-group">
{/*<li className="list-group-header">*/}
{/*<input className="form-con... |
submissions/josepot/src/index.js | gterzian/flux-challenge | import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementById('root')
);
|
components/HitStats.js | zaragozamartin91/taller2SharedServer | import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import { Card, CardActions, CardHeader, CardText } from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';... |
react-flux-mui/js/material-ui/src/svg-icons/av/branding-watermark.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvBrandingWatermark = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-9v-6h9v6z"/>
</SvgIcon>
);
AvBrandingWatermark = pure(AvBran... |
app/scripts/HorizontalTrack.js | hms-dbmi/4DN_matrix-viewer | import React from 'react';
import MoveableTrack from './MoveableTrack';
import TrackControl from './TrackControl';
const STYLES = {
pointerEvents: 'all',
};
class HorizontalTrack extends MoveableTrack {
getControls(isVisible) {
return (
<TrackControl
configMenuVisible={this.props.item.configMen... |
Sample/App.js | kirankalyan5/react-native-segmented-control-tab | /* @flow */
import React from 'react'
import SegmentedView from './SegmentedView'
export default function App() {
return (
<SegmentedView />
)
}
|
src/svg-icons/av/art-track.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvArtTrack = (props) => (
<SvgIcon {...props}>
<path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1... |
classic/src/scenes/mailboxes/src/Scenes/AccountWizardScene/MailboxWizardScene/WizardPersonalise/WizardColorPickerCell.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import { withStyles } from '@material-ui/core/styles'
import classNames from 'classnames'
import FASCheckIcon from 'wbfa/FASCheck'
const styles = {
container: {
border: '4px solid white',
te... |
node_modules/react-select/examples/src/app.js | pris54/reactjs-simple-form | /* eslint react/prop-types: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import Select from 'react-select';
import Creatable from './components/Creatable';
import Contributors from './components/Contributors';
import GithubUsers from './components/GithubUsers';
import CustomComponents from './com... |
src/ButtonInput.js | jesenko/react-bootstrap | import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... |
src/components/about.js | erik-sn/mslt | if (process.env.BROWSER) {
require('../sass/about.scss');
}
import React, { Component } from 'react';
import { Card, CardText, CardHeader } from 'material-ui/Card';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
export default class Navbar extends Component {
constructor(props) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.