path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/app/Examples/collections/Form/States/FormExampleError.js | koenvg/Semantic-UI-React | import React from 'react'
import { Button, Form, Input, Message } from 'semantic-ui-react'
const FormExampleError = () => (
<Form error>
<Form.Input label='Email' placeholder='joe@schmoe.com' />
<Message
error
header='Action Forbidden'
content='You can only sign up for an account once with ... |
l2_es6/node_modules/eslint-config-airbnb/test/test-react-order.js | kobkrit/learn-react-native | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import reactRules from '../rules/react';
import reactA11yRules from '../rules/react-a11y';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
rules: {
// It is okay to import devDependencies in tests.... |
packages/expo-dev-menu/vendored/react-native-gesture-handler/src/touchables/TouchableOpacity.js | exponentjs/exponent | import { Animated, Easing, StyleSheet, View } from 'react-native';
import GenericTouchable, { TOUCHABLE_STATE } from './GenericTouchable';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
/**
* TouchableOpacity bases on timing animation which has been used in RN's core
*/
export default ... |
src/svg-icons/action/trending-flat.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrendingFlat = (props) => (
<SvgIcon {...props}>
<path d="M22 12l-4-4v3H3v2h15v3z"/>
</SvgIcon>
);
ActionTrendingFlat = pure(ActionTrendingFlat);
ActionTrendingFlat.displayName = 'ActionTrendingFlat';
A... |
src/Typography/Typography.js | gutenye/react-mc | // @flow
import React from 'react'
import cx from 'classnames'
import type { PropsC } from '../types'
class Typography extends React.Component {
props: PropsC
static defaultProps = {
component: 'div',
}
render() {
const { component: Component, className, ...rest } = this.props
const rootClassName... |
node_modules/react-bootstrap/es/FormControlStatic.js | Chen-Hailin/iTCM.github.io | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/client/components/forms/parts/achievement.js | bookbrainz/bookbrainz-site | /*
* Copyright (C) 2016 Max Prettyjohns
*
* This program 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 2 of the License, or
* (at your option) any later version.
*
* This program is d... |
old/cppcon-2017-web-service/example/client/strawpoll/src/App.js | Voultapher/Presentations | import React from 'react';
import PropTypes from 'prop-types';
import Fingerprint2 from 'fingerprintjs2';
import { flatbuffers } from './flatbuffers';
import { Strawpoll } from './strawpoll_generated.js';
import './App.css';
function printWrap(val) {
console.log("val: ", val);
return val;
}
function uOr(val, f... |
src/svg-icons/navigation/arrow-back.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowBack = (props) => (
<SvgIcon {...props}>
<path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/>
</SvgIcon>
);
NavigationArrowBack = pure(NavigationArrowBack);
NavigationArrowB... |
mobile/src/components/alarm.js | sradevski/homeAutomate | import React, { Component } from 'react';
import { Platform, StyleSheet, Text, View, Picker } from 'react-native';
import { connect } from 'react-redux';
import Icon from 'react-native-vector-icons/Ionicons';
import Button from 'react-native-button';
import _ from 'lodash';
import SliderWithLabel from './sliderWithLabe... |
imports/ui/pages/Collection/pages/Collection/components/Content.js | ShinyLeee/meteor-album-app | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import moment from 'moment';
import ConnectedJustified from '/imports/ui/components/JustifiedLayout';
import PhotoSwipeHolder from './PhotoSwipeHolder';
import { Header, Title, SubTitle } from '../styles';
const getDuration = (images) => {
... |
index.android.js | rjvani/agent | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class agent extends Component {
render() {
return (
<View style={styles.container}>
... |
docs/app/Examples/views/Card/Types/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const Types = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Card'
description='A card displays sit... |
app/containers/Teachers/Teachers.js | klpdotorg/tada-frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Loadable from 'react-loadable';
import get from 'lodash.get';
import isEmpty from 'lodash.isempty';
// import TeacherScreen from '../../components/Teachers';
import {
getBoundariesEntities,
g... |
src/svg-icons/action/eject.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEject = (props) => (
<SvgIcon {...props}>
<path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/>
</SvgIcon>
);
ActionEject = pure(ActionEject);
ActionEject.displayName = 'ActionEject';
ActionEject.muiName = 'Svg... |
src/server/render/redux.js | PepijnSenders/ronvandekerkhof.nl | import { match, RouterContext } from 'react-router';
import { Map, fromJS } from 'immutable';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { Provider } from 'react-redux';
import Helmet from 'react-helmet';
import { StyleSheetServer } from 'aphrodite';
import { default as createM... |
src/svg-icons/device/widgets.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceWidgets = (props) => (
<SvgIcon {...props}>
<path d="M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z"/>
</SvgIcon>
);
DeviceWidgets = pure(DeviceWidgets);
... |
jenkins-design-language/src/js/components/material-ui/svg-icons/hardware/laptop-mac.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareLaptopMac = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2H0c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2h-4zM4 5h16v11H4V5zm8 14c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.4... |
src/svg-icons/maps/directions-bike.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsBike = (props) => (
<SvgIcon {...props}>
<path d="M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.... |
src/containers/Accounts/SignUp/InputDetails.js | westoncolemanl/tabbr-web | import React from 'react'
import TextField from 'material-ui/TextField'
import Button from 'material-ui/Button'
import Card, {
CardActions,
CardContent
} from 'material-ui/Card'
import Typography from 'material-ui/Typography'
import * as EmailValidator from 'email-validator'
import {
PasswordInput,
CardLogoH... |
setup/src/universal/features/routing/containers/LoginRedirectContainer.js | ch-apptitude/goomi | /**
*
* LoginRedirect
*
*/
import React, { Component } from 'react';
import RedirectBox from 'features/routing/components/RedirectBox';
import messages from './messages';
class LoginRedirect extends Component {
body = messages.LoginRedirectBody;
buttons = [
{
linkTo: '/login',
message: messages.... |
src/scenes/home/header/logo/logo.js | alexspence/operationcode_frontend | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import logo from 'images/logos/small-white-logo.png';
import styles from './logo.css';
class Logo extends Component {
render() {
return (
<div className={styles.logo} >
<Link to="/"><img src={logo} alt="" /></Link>
... |
docs/src/examples/modules/Dropdown/Usage/DropdownExampleUpwardSelection.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const options = [
{ key: 1, text: 'One', value: 1 },
{ key: 2, text: 'Two', value: 2 },
{ key: 3, text: 'Three', value: 3 },
]
const DropdownExampleUpwardSelection = () => (
<Dropdown
upward
search
selection
options={option... |
src/js/components/routes/Home.react.js | teamUndefined/creativity | import React from 'react';
import {
Paper,
RaisedButton,
CircularProgress
} from 'material-ui';
var Home = React.createClass({
getInitialState() {
return {
search: false
}
},
componentDidMount() {
this.props.socket.on("lobby_found", function(lobbyPath) {
window.location = lobbyPath;
});
this.p... |
docs/pages/home.js | woshisbb43/coinMessageWechat | import React from 'react';
import FontAwesome from 'react-fontawesome';
import './home.less';
//import { Button } from 'react-weui';
const Home = () =>
(
<div className="App__preview background--canvas flex-center">
<div className="App__preview--none">
<FontAwesome name="weixin" size="4x" />
<p>Hello... |
example/v9.x.x/razzle-ssr/src/Home.js | i18next/react-i18next | import React, { Component } from 'react';
import { withNamespaces, Trans } from 'react-i18next';
import logo from './react.svg';
import './Home.css';
class Home extends Component {
render() {
const { t } = this.props;
return (
<div className="Home">
<div className="Home-header">
<img... |
src/components/TableBody/TableCell.js | cantonjs/re-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TableContext from './TableContext';
export default class TableCell extends Component {
static propTypes = {
children: PropTypes.node,
renderCell: PropTypes.func,
store: PropTypes.object,
};
_handleClick = () => {
const { s... |
test/integration/getserversideprops/pages/something.js | flybayer/next.js | import React from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
export async function getServerSideProps({ params, query, resolvedUrl }) {
return {
props: {
resolvedUrl: resolvedUrl,
world: 'world',
query: query || {},
params: params || {},
time: new D... |
client/components/MenuItem/index.js | JohannesAnd/SKWebsite | import React from 'react';
import { Item, Link } from './elements';
export default function MenuItem({ className, children, href, current }) {
return (
<Item className={className} role={'presentation'}>
<Link href={href} current={current}>
{children}
</Link>
</Item>
);
}
|
src/app/components/Article.js | Yording/app-fullstack-yording | import React, { Component } from 'react';
class Article extends Component {
constructor(props){
super(props)
}
render() {
return (
<div className="row">
<div className="col s12">
<div className="card grey lighten-4">
<... |
node_modules/react-router/es/Route.js | Oritechnology/pubApp | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
examples/with-atlaskit/components/CheckboxComponent.js | flybayer/next.js | import React from 'react'
import { Checkbox } from '@atlaskit/checkbox'
export default function CheckboxComponent() {
return (
<React.Fragment>
<Checkbox
value="Basic checkbox"
label="Basic checkbox"
onChange={() => {}}
name="checkbox-basic"
testId="cb-basic"
/... |
src/Affix.js | collinwu/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import AffixMixin from './AffixMixin';
import domUtils from './utils/domUtils';
const Affix = React.createClass({
statics: {
domUtils
},
mixins: [AffixMixin],
render() {
let holderStyle = {top: this.state.affixPositionTop};
return (... |
src/parser/shared/modules/resources/mana/ManaUsageChart.js | anom0ly/WoWAnalyzer | import { Trans } from '@lingui/macro';
import Analyzer from 'parser/core/Analyzer';
import ManaValues from 'parser/shared/modules/ManaValues';
import HealingDone from 'parser/shared/modules/throughput/HealingDone';
import Panel from 'parser/ui/Panel';
import React from 'react';
import ManaUsageChartComponent from './M... |
client/components/routes/home.js | aintnorest/ubiquitous-spoon | import React from 'react';
import warmahordes from '../../images/warmahordes.png';
import chess from '../../images/chess.png';
import { setGame, setUserName, signIn } from '../../actions/app';
import { connect } from 'react-redux';
import InputField from '../inputField';
import { bindActionCreators } from 'redux';
fun... |
src/app/createDevToolsWindow.js | eordano/sherlock | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import DevTools from './DevToolsWindow'
export default function createDevToolsWindow (store) {
const win = window.open(
null,
'redux-devtools', // give it a name so it reuses the same window
`width=400,heigh... |
src/svg-icons/file/cloud-off.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudOff = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-... |
src/components/loading/VerticalTable.js | GovReady/GovReady-Agent-Client | import React from 'react';
import { PropTypes as PT } from 'prop-types';
const VerticalTable = ({text = false, colCount = 4, rowCount = 3 }) => {
return (
<div className="widget loading-shim">
<div>
<div className="text">
<h3><span className="loading-shim-block-small" /></h3>
</di... |
demo/src/App.js | bringking/react-web-animation | import React, { Component } from 'react';
import { Link, Route, Switch } from 'react-router-dom';
import Basic from './basic';
import BasicGroup from './basic_group';
import BasicSequence from './basic_sequence';
import ParallaxStarfield from './parallax_starfield';
import SpinningDots from './spinning_dots';
import A... |
app/components/Thought/index.js | brainsandspace/ship | /**
*
* Thought
*
*/
import React from 'react';
import styled from 'styled-components';
const Wrapper = styled.span`
color: gainsboro;
.floating {
color: #444;
font-weight: 550;
font-size:5rem;
font-family: 'ah natural';
}
`;
function Thought({ children }) {
return (
<Wrapper>
<span className="... |
src/svg-icons/action/donut-large.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDonutLarge = (props) => (
<SvgIcon {...props}>
<path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.... |
examples/query-params/app.js | iest/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
var User = React.createClass({
render() {
var { query } = this.props.location;
var age = query && query.showAge ? '33' : '';
var { userID } = this.props.params;
return (
<div className="User">
<h1>User id: {u... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js | tharakawj/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, { Component } from 'react';
import PropTypes from 'prop-types';
function load(id = 0) {
return [
{ id: id + 1, name... |
react-src/catalog/components/voyages/layouts/CatalogVoyageDetailsModalCards.js | gabzon/experiensa | import React from 'react'
import { Button, Header, Image, Modal, Icon, Grid } from 'semantic-ui-react'
export default class CatalogVoyageDetailsModalCards extends React.Component {
state = { modalOpen: false }
handleOpen = (e) => this.setState({
modalOpen: true,
})
handleClose = (e) => this.s... |
src/components/Navbar/Navbar.js | baruinho/cashier | import React from 'react';
import { Link } from 'react-router-dom';
import { Navbar , Nav, NavItem, MenuItem, NavDropdown } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
export default ({ accounts = []}) => (
<Navbar inverse collapseOnSelect>
<Navbar.Header>
<Navbar.Brand>... |
node_modules/react-router/es6/RouteContext.js | jotamaggi/react-calendar-app | import warning from './routerWarning';
import React from 'react';
var object = React.PropTypes.object;
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent trans... |
src/components/recording/AudioRecordingStream.js | streamr-app/streamr-web | import React from 'react'
import cx from 'classnames'
import { BinaryClient } from '../../vendor/binary'
import Recorder from 'react-recorder'
const FFT_SIZE = 64
const NUM_FFT_BARS = 32
export default class AudioRecordingStream extends React.Component {
constructor (props) {
super(props)
this.state = {
... |
modules/Link.js | 9618211/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... |
app/javascript/mastodon/components/status.js | sylph-sin-tyaku/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import AvatarComposite from './avatar_composite';
import RelativeTimestamp from './relative_timestamp';
import DisplayNa... |
src/svg-icons/image/filter-frames.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterFrames = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-4l-4-4-4 4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM18 8H6v10h12"/>
</... |
src/svg-icons/image/rotate-right.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageRotateRight = (props) => (
<SvgIcon {...props}>
<path d="M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.7... |
Code/V1/src/src/Intro.js | neurotechuoft/MindType | import React, { Component } from 'react';
class Intro extends React.Component {
render(){
return (
<div>
<center>
<p className="heading">What is MindType?</p>
</center>
<p className="text">MindType is a mind-controlled keyboard that lets you type letters, words, numbers and characters using... |
app/components/main/Footer.js | MarcinJarecki/React-js-Sticky-Notes | import React from 'react';
import {aFontFooter} from '../../styles';
var Footer = React.createClass({
render: function() {
return (
<footer>
<div className="container">
<div className="row-fluid">
<div className="span4">
<p>©2016
<a s... |
docs/src/components/code.js | balloob/nuclear-js | import React from 'react'
import { PrismCode } from 'react-prism'
export default React.createClass({
render() {
var languageClass = 'language-' + this.props.lang
return (
<div className="highlighted-code">
<pre className={languageClass}>
<PrismCode className={languageClass} async={fal... |
react-app/src/App.js | danieluy/www.danielsosa.uy | import React, { Component } from 'react';
import './App.css';
import NotificationsTray from './notifications-tray/NotificationsTray';
class App extends Component {
constructor() {
super();
this.state = {
window_height: window.innerHeight,
window_width: window.innerWidth,
notification: nul... |
src/react/LogMonitorButton.js | jackielii/redux-devtools | import React from 'react';
import brighten from '../utils/brighten';
const styles = {
base: {
cursor: 'pointer',
fontWeight: 'bold',
borderRadius: 3,
padding: 4,
marginLeft: 3,
marginRight: 3,
marginTop: 5,
marginBottom: 5,
flexGrow: 1,
display: 'inline-block',
fontSize: '... |
ui/js/components/description.js | FujiHaruka/shakyo-programming | import React from 'react'
import classnames from 'classnames'
const DesctiptionSection = React.createClass({
render () {
return (
<section className='section'>
<h2 className={classnames('section-title', 'app-theme-dark-color')}>■ 遊び方</h2>
<div className='description-section-body'>
... |
react-flux-mui/js/material-ui/src/svg-icons/action/cached.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCached = (props) => (
<SvgIcon {...props}>
<path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.... |
app/javascript/mastodon/components/column_header.js | pfm-eyesightjp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
const messages = defineMessages({
show: { id: 'column_header.show_settings', defaultMessage: 'Show settings' },
hide: { id: 'column_header.h... |
docs/src/index.js | Trioxis/immutable-react-form | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import s from './style.css';
import ExampleOne from './examples/one';
import ExampleOneIndexCode from '!raw-loader!./examples/one... |
src/App.js | TonyChol/tinyurl-react | // Vendor
import React, { Component } from 'react';
import './App.css';
// Components
import Header from './components/Header'
import Footer from './components/Footer'
// Containers
import URlFormWrapper from './containers/UrlFormWrapper'
class App extends Component {
render() {
return (
<div className="A... |
src/index.js | clhenrick/nyc-crash-mapper | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import { Provider } from 'react-redux';
import { calculateResponsiveState } from 'redux-responsive';
import { syncHistoryWithStore } from 'react-router-redux';
i... |
src/svg-icons/image/brightness-7.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness7 = (props) => (
<SvgIcon {...props}>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69... |
app/index.js | animalphase/bramble | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Root from './containers/Root';
import { configureStore, history } from './store/configureStore';
// import './app.global.css';
import './app.global.scss';
const store = configureStore();
const listen... |
web-app/src/components/SignUpAfterOnBoarding/index.js | oSoc17/code9000 | import React, { Component } from 'react';
import SignUp from '../SignUp';
import Header from '../Header';
import classNames from '../../utils/classNames';
import './SignUpAfterOnBoarding.css';
import bertVerkijkerIcon from '../../theme/icons/bert_verkijker.svg';
class SignUpAfterOnBoarding extends Component {
cons... |
docs/getting-started-chart/components/Aggregates.js | reimagined/resolve | import React from 'react'
const Aggregates = ({ selected, onClick }) => (
<g className="box-inner" data-selected={selected} onClick={onClick}>
<path className="box" d="M140 89H400V122H140V89Z" />
<path
className="caption"
d="M227.339 111L228.408 107.92H232.953L234.016 111H235.879L231.692 99.3636H... |
app/javascript/mastodon/features/notifications/components/notification.js | d6rkaiz/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusContainer from '../../../containers/status_container';
import AccountContainer from '../../../containers/account_container';
import { injectIntl, FormattedMessage } from 'react-intl';
... |
reflux-app/components/Toolbox.js | Orientsoft/borgnix-web-ide | import React from 'react'
import ToolboxStore from '../stores/ToolboxStore'
import Nav from './toolbox/Nav'
import Project from './toolbox/Project'
import Library from './toolbox/Library'
import ProjectActions from '../actions/ProjectActions'
class Toolbox extends React.Component {
constructor(props) {
super(pro... |
actor-apps/app-web/src/app/components/Deactivated.react.js | KitoHo/actor-platform | import React from 'react';
class Deactivated extends React.Component {
render() {
return (
<div className="deactivated row center-xs middle-xs">
<div className="deactivated__window">
<h2>Tab deactivated</h2>
<p>
Oops, you have opened another tab with Actor, so we had... |
admin/client/App/shared/Kbd.js | ratecity/keystone | import React from 'react';
import { css } from 'glamor';
import theme from '../../theme';
import { darken, lighten } from '../../utils/color';
function Kbd ({ className, ...props }) {
props.className = css(classes.kbd);
return <kbd {...props} />;
};
const classes = {
kbd: {
backgroundColor: theme.color.body,
... |
app/containers/tutorial/sixth.js | DeividasK/tgoals | import React from 'react'
import SimpleList from 'components/lists/simple'
import { updateStep, updateHeading, updateActions } from '../../actions/TutorialActions'
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'
const content = defineMessages({
title: { id: 'app.tutorial.step6.title', defaul... |
docs/app/Examples/elements/Label/Content/LabelExampleLinkDetail.js | ben174/Semantic-UI-React | import React from 'react'
import { Icon, Label } from 'semantic-ui-react'
const LabelExampleLinkDetail = () => (
<Label>
<Icon name='mail' />
23
<Label.Detail>View Mail</Label.Detail>
</Label>
)
export default LabelExampleLinkDetail
|
src/svg-icons/editor/highlight.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorHighlight = (props) => (
<SvgIcon {...props}>
<path d="M6 14l3 3v5h6v-5l3-3V9H6zm5-12h2v3h-2zM3.5 5.875L4.914 4.46l2.12 2.122L5.62 7.997zm13.46.71l2.123-2.12 1.414 1.414L18.375 8z"/>
</SvgIcon>
);
Edito... |
client/components/ui/validated-date-input.js | jankeromnes/kresus | import React from 'react';
import PropTypes from 'prop-types';
import DatePicker from './date-picker';
// A validated date input is form group for a date picker, with a special hint
// next to the date picker showing whether the date is valid or not.
class ValidatedDateInput extends React.Component {
constructor... |
app/private/indexerApp/imports/ui/components/PublicNavigation.js | ericvrp/GameCollie | import React from 'react';
import { LinkContainer } from 'react-router-bootstrap';
import { Nav, NavItem } from 'react-bootstrap';
const PublicNavigation = () => (
<Nav pullRight>
<LinkContainer to="signup">
<NavItem eventKey={ 1 } href="/signup">Sign Up</NavItem>
</LinkContainer>
<LinkContainer to... |
src/common/StatusLabel/ActiveStatusLabel.js | Syncano/syncano-dashboard | import React from 'react';
import { FontIcon } from 'material-ui';
import { colors as Colors } from 'material-ui/styles';
const StatusLabel = ({ style }) => (
<FontIcon
style={style}
className="synicon-check"
color={Colors.green500}
/>
);
export default StatusLabel;
|
src/index.js | FreeCodeCampGuam/fccg-website | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
docs/src/examples/elements/Button/Variations/ButtonExampleVerticallyAttachedGroup.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button, Segment } from 'semantic-ui-react'
const ButtonExampleVerticallyAttachedGroup = () => (
<div>
<Button.Group attached='top'>
<Button>One</Button>
<Button>Two</Button>
</Button.Group>
<Segment attached>
<img src='/images/wireframe/paragraph.png' ... |
actor-apps/app-web/src/app/index.js | WangCrystal/actor-platform | import polyfills from 'utils/polyfills'; // eslint-disable-line
import RouterContainer from 'utils/RouterContainer';
import crosstab from 'crosstab';
import React from 'react';
import Router from 'react-router';
import Raven from 'utils/Raven'; // eslint-disable-line
import isMobile from 'utils/IsMobile';
import Reac... |
src/Thumbnail.js | xsistens/react-bootstrap | import React from 'react';
import classSet from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import SafeAnchor from './SafeAnchor';
const Thumbnail = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
alt: React.PropTypes.string,
href: React.PropTypes.string,
src: React.PropTyp... |
src/CircularMeter.js | ayonghosh/circle-chart-demo | /*
React component to render an animated circular meter.
Simply pass in the value, title and CSS color code to the component, e.g.,
CircularMeter val={ 58 } title={ "Progress" } color={ "#000" }
Tested on Firefox and Chrome. Implemented using SVG with CSS transition:
https://www.smashingmagazine.com/2015/07... |
docs/src/examples/elements/Loader/States/LoaderExampleDisabled.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Loader, Image, Segment } from 'semantic-ui-react'
const LoaderExampleDisabled = () => (
<Segment>
<Loader disabled />
<Image src='/images/wireframe/short-paragraph.png' />
</Segment>
)
export default LoaderExampleDisabled
|
src/components/button/BaseButton.js | edgemesh/emui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Paper } from '../../';
import { colors } from '../../utils/colors';
const KEYCODE = {
ENTER: 13,
SPACE: 32,
TAB: 9
}
export const BaseButton = (ComposedComponent, ref) => {
return class extends Component {
static displayNam... |
components/StoryPage.js | githubhaohao/DevNews | import React, { Component } from 'react';
import {
Dimensions,
Image,
PixelRatio,
StyleSheet,
Text,
View,
TouchableOpacity,
Platform,
Share,
} from 'react-native';
import GlobalStyle from './GlobalStyle.js';
import ParallaxScrollView from 'react-native-parallax-scroll-view';
impo... |
app/scripts/components/metric-selector-item.js | hustbill/autorender-js | import React from 'react';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { hoverMetric, pinMetric, unpinMetric } from '../actions/app-actions';
import { selectedMetricTypeSelector } from '../selectors/node-metric';
const messageToUser = 'Alert! Please check containers network';
c... |
client/src/components/dashboard/Profile/Preferences/Mentorship.js | FCC-Alumni/alumni-network | import { connectScreenSize } from 'react-screen-size';
import { isEqual } from 'lodash';
import { mapScreenSizeToProps } from '../../../Navbar';
import MessageBox from '../../common/MessageBox';
import propTypes from 'prop-types';
import React from 'react';
import Ribbon from './common/RibbonHeader';
import SliderToggl... |
src/svg-icons/image/brightness-2.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness2 = (props) => (
<SvgIcon {...props}>
<path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z"/>
</SvgIcon>
);
I... |
src/svg-icons/maps/directions.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirections = (props) => (
<SvgIcon {...props}>
<path d="M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-.... |
app/javascript/mastodon/components/status.js | ashfurrow/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import AvatarComposite from './avatar_composite';
import RelativeTimestamp from './relative_timestamp';
import DisplayNa... |
frontend/src/Movie/Details/Credits/MovieCreditPosterConnector.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { selectImportListSchema, setImportListFieldValue, setImportListValue } from 'Store/Actions/settingsActions';
import createMovieCreditListSelector from 'Store/Selectors/createMovieCreditListSelect... |
examples/gatsby/src/withRoot.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { MuiThemeProvider } from 'material-ui/styles';
import CssBaseline from 'material-ui/CssBaseline';
import getPageContext from './getPageContext';
function withRoot(Component) {
class WithRoot extends React.Component {
constructor(props, contex... |
popup-study/screens/PostScreen.js | Morhaus/popupstudy | import React from 'react';
import {
KeyboardAvoidingView,
ScrollView,
StyleSheet,
Text,
View,
Button,
ActivityIndicator,
} from 'react-native';
import { NavigationBar } from '@expo/ex-navigation';
import { graphql, gql } from 'react-apollo';
import { GiftedChat } from 'react-native-gifted-chat';
import { ... |
frontend/src/WorkflowList.js | aclowes/yawn | import React from 'react';
import {Alert, Table} from 'react-bootstrap';
import {Link} from 'react-router';
import API from "./API";
export default class WorkflowList extends React.Component {
constructor(props) {
super(props);
this.state = {workflows: null};
}
componentDidMount() {
document.title ... |
src/svg-icons/device/battery-50.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery50 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z"/><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ... |
src/components/TabWrapper/Tab.js | GetAmbassador/react-ions | import React from 'react'
import PropTypes from 'prop-types'
import style from './style.scss'
import classNames from 'classnames/bind'
class Tab extends React.Component {
constructor(props) {
super(props)
}
static defaultProps = {
}
static propTypes = {
/**
* Whether the tab is active. Set by ... |
src/components/Register/RegisterForm.js | TalentedEurope/te-app | import React from 'react';
import {
ActivityIndicator,
KeyboardAvoidingView,
StyleSheet,
Text,
TouchableOpacity,
} from 'react-native';
import { CheckBox } from 'react-native-elements';
import I18n from '../../i18n/i18n';
import AuthenticationApi from '../../api/AuthenticationApi';
import COMMON_STYLES from ... |
ui/kirk/src/index.js | socx/Kirk | import React from 'react';
import { render } from 'react-dom';
import registerServiceWorker from './registerServiceWorker';
import 'bootstrap/dist/css/bootstrap.css';
import './index.css';
import App from './App';
import { Provider } from 'react-redux'
import { ConnectedRouter } from 'react-router-redux'
import stor... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/AutoComplete/Page.js | pbogdan/react-flux-mui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import autoCompleteReadmeText from './README';
import autoCompleteCode from '!ra... |
src/v0/demo/listview/index1.js | huanganqi/wsapp | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ListView,
} from 'react-native';
class wsapp extends Component {
constructor(props) {
super(props);
var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
this.state = {
da... |
frontend/src/components/siteComponents/HomepageMessage/index.js | webrecorder/webrecorder | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import TempUserTimer from 'components/TempUserTimer';
function HomepageMessage(props) {
const { auth, showModal } = props;
const user = auth.get('user');
const username = user.get('username');
const showMo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.