path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
lib/error-debug.js | nelak/next.js | import React from 'react'
import ansiHTML from 'ansi-html'
import Head from './head'
export default ({ error, error: { name, message, module } }) => (
<div style={styles.errorDebug}>
<Head>
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
</Head>
{module ? <h1 style={styles.... |
src/js/pages/App.js | amalbose/axa-media | import React from 'react';
import Header from '../components/Header'
import Footer from '../components/Footer'
export default class App extends React.Component {
render() {
return (
<div>
<Header headerTitle='Home' />
{this.props.children}
<Fo... |
node_modules/react-bootstrap/es/PageHeader.js | joekay/awebb | 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 ... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultPropsInferred.js | AgentME/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
static defaultProps = {};
props: Props;
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component {
static defaultProps = {};
... |
app/javascript/mastodon/components/column_back_button.js | alarky/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class ColumnBackButton extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
handleClick = () => {
if (window.history && window.history.length === 1)... |
react/Textarea/Textarea.js | seekinternational/seek-asia-style-guide | import styles from './Textarea.less';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import FieldMessage from '../private/FieldMessage/FieldMessage';
import FieldLabel from '../private/FieldLabel/FieldLabel';
import Text from '../Text/Text';
function... |
src/index.js | rbose85/redux-reddit-tutorial | import './styles.css'
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import configureStore from './configureStore'
import AsyncApp from './components/AsyncApp'
(() => {
const store = configureStore()
const app = document.createElement('div')
document... |
src/components/home/HomePage.js | CodeTaha/react-redux-starter | /**
* Created by taha on 9/10/17.
*/
import React from 'react';
import {Link} from 'react-router';
class HomePage extends React.Component {
render() {
return (
<div className="jumbotron">
<h1>Administration</h1>
<p>React, Redux and React Router in ES6 for ultra-responsive web apps</p>
... |
react-demo/app/index.js | yuhualingfeng/react-study | import React from 'react'
import ReactDOM from 'react-dom'
class App extends React.Component{
constructor(props){
super(props);
this.state = {
name:2
}
this.handle = this.handle.bind(this);
}
componentDidMount(){
alert(1);
console.log(this.refs.qw);
}
handle(){
this.setState({name:3});
}
rende... |
collect-webapp/frontend/src/datamanagement/components/recordeditor/fields/FileField.js | openforis/collect | import './FileField.css'
import React from 'react'
import { Button, Progress } from 'reactstrap'
import L from 'utils/Labels'
import ServiceFactory from 'services/ServiceFactory'
import { FileAttributeDefinition } from 'model/Survey'
import DeleteIconButton from 'common/components/DeleteIconButton'
import Dropzone ... |
app/javascript/mastodon/components/error_boundary.js | dunn/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { version, source_url } from 'mastodon/initial_state';
export default class ErrorBoundary extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
};
state = {
hasErr... |
docs/app/Examples/elements/Label/Types/LabelExampleCorner.js | shengnian/shengnian-ui-react | import React from 'react'
import { Grid, Image } from 'shengnian-ui-react'
const LabelExampleCorner = () => (
<Grid columns={2}>
<Grid.Column>
<Image
fluid
label={{ as: 'a', corner: 'left', icon: 'heart' }}
src='/assets/images/wireframe/image.png'
/>
</Grid.Column>
<G... |
src/svg-icons/av/hd.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHd = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-... |
client/src/components/BackButton/tests/BackButton-story.js | silverstripe/silverstripe-asset-admin | import React from 'react';
// eslint-disable-next-line import/no-extraneous-dependencies
import { storiesOf } from '@storybook/react';
import { Component as BackButton } from 'components/BackButton/BackButton';
storiesOf('AssetAdmin/BackButton', module)
.add('Default', () => (
<BackButton />
))
.add('With ba... |
src/views/forms/input-group/InputGroup.js | mrholek/CoreUI-React | import React from 'react'
import {
CButton,
CCard,
CCardBody,
CCardHeader,
CCol,
CDropdown,
CDropdownDivider,
CDropdownItem,
CDropdownMenu,
CDropdownToggle,
CFormCheck,
CFormInput,
CFormLabel,
CFormSelect,
CFormTextarea,
CInputGroup,
CInputGroupText,
CRow,
} from '@coreui/react'
impo... |
src/app/core/atoms/icon/icons/paperclip.js | blowsys/reservo | import React from 'react'; const Paperclip = (props) => <svg {...props} viewBox="0 0 9 17"><g strokeLinecap="round"><g strokeWidth="2" transform="translate(-1665.000000, -528.000000)"><path d="M1669.38462,539.921502 L1669.38462,532.119849 C1669.38462,532.076179 1669.43431,532.040634 1669.49504,532.040634 L1672.6588,532... |
examples/auth-with-shared-root/components/About.js | tkirda/react-router | import React from 'react'
const About = React.createClass({
render() {
return <h1>About</h1>
}
})
export default About
|
src/components/planeditor/listeditor.js | jamjar919/bork | import React from 'react';
import PropTypes from 'prop-types';
import ListEditorItem from './listeditoritem';
import ListRenderer from './listrenderer';
const $ = require('jquery');
const uuidv4 = require('uuid/v4');
class ListEditor extends React.Component {
constructor(props) {
super();
this.st... |
src/pages/suggestions/Form.js | thomasthiebaud/lundalogik | import React from 'react'
import PropTypes from 'prop-types'
import { reduxForm } from 'redux-form'
import {
Button,
Form as ANTForm,
} from 'antd'
import Tags from 'components/Field/Tags'
import RangePicker from 'components/Field/RangePicker'
import TimePicker from 'components/Field/TimePicker'
import InputNumbe... |
src/svg-icons/action/grade.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGrade = (props) => (
<SvgIcon {...props}>
<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/>
</SvgIcon>
);
ActionGrade = pure(ActionGrade);
ActionGrade.... |
js/components/NewFormCheckPage/NewFormCheckPage.js | xuorig/form-check-app | /* @flow */
import React from 'react'
import Relay from 'react-relay';
import ReactDOM from 'react-dom';
import Dropzone from 'react-dropzone';
import Select from 'react-select';
import 'babel/polyfill';
import styles from './NewFormCheckPage.css';
import $ from 'jquery';
require('react-select/dist/react-select.css')... |
src/svg-icons/communication/call-split.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallSplit = (props) => (
<SvgIcon {...props}>
<path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"/>
</SvgIcon>
);
CommunicationCallS... |
src/SubMenus.js | dragfire/react-menus-dd | import React from 'react';
import Menu from './Menu';
import './menus.css';
import PropTypes from 'prop-types';
const SubMenus = (props) => {
const {
list,
children,
style,
} = props;
const className = 'Menus';
let MenuList = (
<ul
className={className}
style={style}
>
{ch... |
docs/src/PageFooter.js | erictherobot/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
let version = packageJSON.version;
if (/docs/.test(version)) {
version = version.split('-')[0];
}
const PageHeader = React.createClass({
render() {
return (
<footer className="bs-docs-footer" role="contentinfo">
<div c... |
src/containers/Admin/MissingPeople/new/index.js | EncontrAR/backoffice | import React, { Component } from 'react';
import LayoutWrapper from '../../../../components/utility/layoutWrapper';
import Box from '../../../../components/utility/box';
import { Button, Col, Row, Input, Select } from 'antd';
import { Link } from 'react-router-dom';
import missingPersonActions from '../../../../redux/m... |
src/svg-icons/action/flight-land.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightLand = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2... |
app/components/LoadingIndicator/index.js | kdprojects/nichesportapp | import React from 'react';
import Circle from './Circle';
import Wrapper from './Wrapper';
const LoadingIndicator = () => (
<Wrapper>
<Circle />
<Circle rotate={30} delay={-1.1} />
<Circle rotate={60} delay={-1} />
<Circle rotate={90} delay={-0.9} />
<Circle rotate={120} delay={-0.8} />
<Cir... |
node_modules/react-bootstrap/es/FormGroup.js | vitorgomateus/NotifyMe | 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 ... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | artful-addict/kh-squared-ria | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/components/NewUser/NewUser.js | Decidr/react-decidr | import React, { Component } from 'react';
import update from 'react-addons-update';
import { browserHistory } from 'react-router';
import Nav from '../Nav/Nav';
export default class NewUser extends Component {
constructor(props){
super(props);
this.state = {
user: {}
};
}
handleChange(event)... |
packages/insights-web/src/scenes/explorer/connection/subset/menu/index.js | mariusandra/insights | import React from 'react'
import { useActions, useValues } from 'kea'
import { Icon, Menu } from 'antd'
import connectionsLogic from 'scenes/explorer/connection/logic'
export default function SubsetMenu () {
const { selectedSubset, otherSubsets, connectionId } = useValues(connectionsLogic)
const { newSubset, editS... |
components/TodoInput.js | CityRay/React15-Todo-List | import React, { Component } from 'react';
class TodoInput extends Component {
constructor(props, context) {
super(props, context);
this.onSubmit = this.onSubmit.bind(this);
this.state = {
inputText: ''
};
}
shouldComponentUpdate() {
// component has no ... |
docs/pages/api-docs/dialog-title.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/dialog-title';
const requireRaw = require.context('!raw-loader!./', false, /\/dialog-title\.md$/);
export default function P... |
js/components/developer/forgot-password/index.js | justarrived/p2p-client | import React, { Component } from 'react';
import { StyleSheet, View, Text } from 'react-native';
import {
Container, Content, Input,
Item, Button, Label, Text as NBText } from 'native-base';
import styles from './style';
import I18n from '../../../i18n';
import globalStyle from '../../../resources/globalStyle';
e... |
examples/real-world/server.js | eiriklv/redux-saga | /* eslint-disable no-console */
import "babel-polyfill"
import webpack from 'webpack'
import webpackDevMiddleware from 'webpack-dev-middleware'
import webpackHotMiddleware from 'webpack-hot-middleware'
import config from './webpack.config'
import express from 'express'
import path from 'path'
import favicon from 'serve... |
demo/src/components/App/components/Footer/Footer.js | JacksonKearl/react-autosuggest-ie11-compatible | import styles from './Footer.less';
import React from 'react';
import Link from 'Link/Link';
const Footer = () =>
<div className={styles.container}>
<div>
{'Crafted with love by '}
<Link
className={styles.link}
href="https://twitter.com/moroshko"
underline={false}
>
... |
src/components/appfooter.js | bhuvanmalik007/mission-admission | import React from 'react'
import { Link } from 'react-router' //eslint-disable-line
export default props =>
<div>Footer Here</div>
|
src/parser/hunter/survival/modules/spells/azeritetraits/LatentPoison.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import SPELLS from 'common/SPELLS';
import { RAPTOR_MONGOOSE_VARIANTS } from 'parser/hunter/survival/constants';
/**
* Serpent Sting damage applies Latent Po... |
frontend/src/Activity/Queue/TimeleftCell.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import TableRowCell from 'Components/Table/Cells/TableRowCell';
import formatTime from 'Utilities/Date/formatTime';
import formatTimeSpan from 'Utilities/Date/formatTimeSpan';
import getRelativeDate from 'Utilities/Date/getRelativeDate';
import formatBytes ... |
src/encoded/static/components/static-pages/placeholders/ExperimentSetMatrix.js | 4dn-dcic/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import url from 'url';
import queryString from 'query-string';
import { Popover, Button } from 'react-bootstrap';
import { console, object, ajax } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
... |
React_Redux/blog/src/components/header.js | awg3/LearnCodeImprove | import React from 'react';
export default (props) => {
return(
<header>
<h1>
Blog
</h1>
</header>
);
}
|
src/svg-icons/content/flag.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentFlag = (props) => (
<SvgIcon {...props}>
<path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/>
</SvgIcon>
);
ContentFlag = pure(ContentFlag);
ContentFlag.displayName = 'ContentFlag';
ContentFlag.muiName = '... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js | ConnectedHomes/create-react-web-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(users) {
return [
{ id: 1, name: '1' ... |
src/svg-icons/maps/local-pharmacy.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPharmacy = (props) => (
<SvgIcon {...props}>
<path d="M21 5h-2.64l1.14-3.14L17.15 1l-1.46 4H3v2l2 6-2 6v2h18v-2l-2-6 2-6V5zm-5 9h-3v3h-2v-3H8v-2h3V9h2v3h3v2z"/>
</SvgIcon>
);
MapsLocalPharmacy = pure... |
packages/idyll-components/src/preview.js | idyll-lang/idyll | import React from 'react';
class Preview extends React.Component {
constructor(props) {
super(props);
this.state = {
mounted: false
};
}
componentDidMount() {
this.setState({
mounted: true
});
}
render() {
const {
hasError,
idyll,
updateProps,
titl... |
source/components/Button/index.js | everydayhero/impact-board | import React from 'react'
import css from 'cxsync'
import connectTheme from '../../lib/connectTheme'
import * as styles from './styles'
const Button = ({
theme,
href,
onClick,
children,
color,
target = '_top',
size,
dispatch,
...props
}) => {
const Tag = href ? 'a' : 'button'
const classNames = ... |
www/frontSrc/Header/Objects/PollerObject.js | jben94/centreon | import React from 'react'
import Button from '@material-ui/core/Button'
import { withStyles } from '@material-ui/core/styles'
import Popover from '@material-ui/core/Popover'
import Typography from '@material-ui/core/Typography'
import PollerIcon from "../Icons/PollerIcon"
import numeral from "numeral"
const styles = t... |
frontend/src/screens/landing/widgets/about/about.js | desihub/qlf | import React from 'react';
import Paper from '@material-ui/core/Paper';
const styles = {
container: {
display: 'flex',
justifyContent: 'center',
},
main: {
maxWidth: '70vw',
// maxHeight: '65vh',
height: 'calc(100vh - 223px)',
overflowY: 'auto',
margin: '16px',
padding: '16px',
... |
public/src/containers/calendar/calendar.js | white87332/react-redux-sample | import React from 'react';
import update from 'immutability-helper';
import { connect } from 'react-redux';
import equal from 'deep-equal';
import './calendar.scss';
// has params state
function mapStateToProps()
{
return {};
}
// has params dispatch
function mapDispatchToProps()
{
return {};
}
class Calenda... |
src/Requests.js | TutorFox/TutorFox | import React from 'react';
import RequestPanel from './RequestPanel';
export default class Requests extends React.Component {
render () {
const reqs = this.props.requests.map((req, i) => {
return (
<RequestPanel id={req.user} course={req.course} deleteRequest={this.props.deleteRequest.bind(null, ... |
docs/src/app/components/pages/components/Slider/ExampleStep.js | barakmitz/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
const SliderExampleStep = () => (
<Slider step={0.10} value={.5} />
);
export default SliderExampleStep;
|
app/javascript/mastodon/features/keyboard_shortcuts/index.js | tateisu/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
src/containers/content/RecipesContent/index.js | mydearxym/mastani | //
/*
*
* RecipesContent
*
*/
import React from 'react'
import { buildLog } from '@/utils/logger'
import { pluggedIn } from '@/utils/mobx'
import { RECIPE } from '@/constant'
import Snippets from './Snippets'
import Cheatsheets from './Cheatsheets'
import FilterBar from './FilterBar'
import { Wrapper, InnerWra... |
app/sidebar/Sidebar.js | easyCZ/react-hackernews | import React from 'react';
import ArticleList from '../articles/ArticleList';
class Sidebar extends React.Component {
render() {
return (
<div className="col s3">
<ArticleList />
</div>
);
}
}
export default Sidebar; |
src/ReactRouteReadyContext.js | foysavas/react-route-ready | import React from 'react';
import PropTypes from 'prop-types';
import getHookedComponents from './getHookedComponents';
import getHookedPromiseChain from './getHookedPromiseChain';
import getUnreadyComponents from './getUnreadyComponents';
export default class ReactRouteReadyContext extends React.Component {
static ... |
react-flux-mui/js/material-ui/src/svg-icons/av/new-releases.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvNewReleases = (props) => (
<SvgIcon {...props}>
<path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.1... |
packages/components/__mocks__/tree.js | Talend/ui | import PropTypes from 'prop-types';
import React from 'react';
class TreeItem extends React.Component {
render() {
return (
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
<li
id={this.props.item.id}
role="treeitem"
tabIndex="-1"
onKeyDown={e => this.props.onKeyDown(e, this... |
client/src/components/helpers/SkeletonSprite.js | otavioarc/freeCodeCamp | import React from 'react';
import styles from './skeletonStyles';
function SkeletonSprite() {
return (
<div className='sprite-container'>
<style dangerouslySetInnerHTML={{ __html: styles }} />
<svg className='sprite-svg'>
<rect
className='sprite'
fill='#ccc'
hei... |
client/server.babel.js | TeamAusDigital/apec-connect | import path from 'path';
import express from 'express';
import compression from 'compression';
import cookieParser from 'cookie-parser';
import React from 'react';
import routes from './src/routes';
import {
setupReducers,
renderHTMLString,
} from 'redux-router';
import reducers from './src/state/reducers';
con... |
docs/src/App.js | paul-pagnan/react-swipe-away | import React from 'react';
import './App.css';
import SwipeAway from 'react-swipe-away';
import MdCheck from 'react-icons/lib/md/check';
class App extends React.Component {
render() {
return (
<div className="card-wrapper">
<SwipeAway className="card" backColor="gold" label={<Md... |
react/src/components/Pagination.js | museumary/Museumary | /*
Pagination component that renders buttons and signals a change page request
*/
import React, { Component } from 'react';
import 'static/css/Pagination.css'
const defaultProps = {
page: 1,
numPages: 1,
range: 4,
half: 2
};
class Pagination extends Component {
constructor(props) {
su... |
node_modules/google-map-react/develop/utils/utils/createEagerElementUtil.js | ClaaziX/foodshare | import React from 'react';
const createEagerElementUtil = (
hasKey,
isReferentiallyTransparent,
type,
props,
children
) => {
if (!hasKey && isReferentiallyTransparent) {
if (children) {
return type({ ...props, children });
}
return type(props);
}
const Component = type;
if (childr... |
src/components/BookTag/BookTag.js | k2data/books-ui | import React from 'react'
import classes from './BookTag.scss'
export function BookTag (props) {
return (
<span className={classes['BookTag']}>
{props.title}
</span>
)
}
BookTag.propTypes = {
title: React.PropTypes.string
}
export default BookTag
|
docs/src/components/Link.js | dsslimshaddy/material-ui | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { Link as LinkRouter } from 'react-router';
import { withStyles } from 'material-ui/styles';
const styles = theme => ({
root: {
color: 'inherit',
textDecoration: 'none',
'&:hover': {
... |
src/svg-icons/action/help-outline.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHelpOutline = (props) => (
<SvgIcon {...props}>
<path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c... |
packages/web/src/components/screens/login/LoginForm.js | hwaterke/inab | import {selectBackend, selectEmail, setCredentials} from '@inab/shared'
import axios from 'axios'
import PropTypes from 'prop-types'
import React from 'react'
import {Field, Form} from 'react-final-form'
import {connect} from 'react-redux'
import {addError} from '../../../actions/error'
import {requiredField} from '../... |
src/app.js | dimitardanailov/build-a-wiki-with-react-and-firebase | import React from 'react';
import Router from 'react-router';
import App from './components/App';
import Page from './components/Page';
const {Route} = Router;
const routes = <Route handler={App}>
<Route name='page' path='/page/:id' handler={Page} />
</Route>;
Router.run(routes, Router.HistoryLocation, Root =>
Re... |
app/src/components/Header.js | alpcanaydin/heygidi | import React, { Component } from 'react';
import { Link } from 'react-router';
import './Header.css';
class Header extends Component {
render() {
return (
<div className="header">
<Link to="/" className="logo">
HEYGİDİ
</Link>
<div className="links">
<a
... |
src/builder/FormMaker.js | TonyYang9527/my-app | import React from 'react';
import PropTypes from 'prop-types';
import AllComponents from 'formiojs/components';
import Components from 'formiojs/components/Components';
import FormBuilder from 'formiojs/FormBuilder';
Components.setComponents(AllComponents);
class FormMaker extends React.Component{
static def... |
src/js/app.js | marcelaraujo/ECMAScript6_architecture | /**
* App entry point
* Contains the initialisation of our app.
*/
'use strict';
import React from 'react';
//react components
import BasketComponent from './components/Basket.js';
import ProductListComponent from './components/ProductList.js';
React.render(<BasketComponent />, document.getElementById('basket'));... |
react-dev/containers/posts_index.js | WDTAnyMore/WDTAnyMore.github.io | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { PostIndexItem } from '../components/post_index_item';
import { fetchPosts, fetchSiteInfo } from '../actions/index';
class PostsIndex extends Component {
componentWillMount() {
this.props.fetchPosts();
this.props.fetc... |
src/js/components/DataTable/stories/Simple.js | grommet/grommet | import React from 'react';
import { Box, DataTable } from 'grommet';
// Source code for the data can be found here
// https://github.com/grommet/grommet/blob/master/src/js/components/DataTable/stories/data.js
import { columns, DATA } from './data';
export const Simple = () => (
// Uncomment <Grommet> lines when us... |
examples/with-now/src/client.js | jaredpalmer/react-production-starter | import React from 'react';
import { hydrate } from 'react-dom';
import App from './App';
hydrate(<App />, document.getElementById('root'));
if (module.hot) {
module.hot.accept();
}
|
docs/app/Examples/elements/Header/Variations/HeaderTextAlignmentExample.js | jamiehill/stardust | import React from 'react'
import { Header, Segment } from 'stardust'
const HeaderTextAlignmentExample = () => (
<Segment>
<Header as='h3' textAlign='right'>
Float Right
</Header>
<Header as='h3' textAlign='left'>
Float Left
</Header>
<Header as='h3' textAlign='justified'>
This t... |
client/modules/App/components/DevTools.js | OmarBERRABEH/dahakni | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w"
>
<LogMonitor />
... |
examples/src/components/Multiselect.js | Craga89/react-select | import React from 'react';
import Select from 'react-select';
const FLAVOURS = [
{ label: 'Chocolate', value: 'chocolate' },
{ label: 'Vanilla', value: 'vanilla' },
{ label: 'Strawberry', value: 'strawberry' },
{ label: 'Caramel', value: 'caramel' },
{ label: 'Cookies and Cream', value: 'cookiescream' },
{ label... |
src/components/GitEvent/GitEvent.js | vlad06/git-events | import React, { Component } from 'react';
import ImageLoader from '../ImageLoader';
class GitEvent extends Component {
constructor() {
super();
this.state = {hover: false}
}
mouseOver() {
this.setState({hover: true});
}
mouseOut() {
this.setState({hover: false});
... |
packages/component/src/Middleware/AttachmentForScreenReader/ImageAttachment.js | billba/botchat | import { hooks } from 'botframework-webchat-api';
import React from 'react';
const { useLocalizer } = hooks;
const ImageAttachment = () => {
const localize = useLocalizer();
const label = localize('ATTACHMENT_IMAGE');
return <div>{label}</div>;
};
export default ImageAttachment;
|
node_modules/react-bootstrap/es/Tab.js | nikhil-ahuja/Express-React | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import TabContainer from... |
src/svg-icons/image/timelapse.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimelapse = (props) => (
<SvgIcon {...props}>
<path d="M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.4... |
src/interface/others/LazyLoadStatisticBox.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import StatisticBox from './StatisticBox';
export { STATISTIC_ORDER } from './StatisticBox';
/**
* @deprecated Use `interface/statistic/Statistic` instead.
*/
class LazyLoadStatisticBox extends React.PureComponent {
static propTypes = {
loader: P... |
docs/src/app/components/pages/components/FontIcon/Page.js | skarnecki/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import iconCode from '!raw!material-ui/lib/FontIcon/FontIcon';
import iconReadme... |
src/App/components/modals/Win2Star.react.js | Rezmodeus/Multiplikation | import React from 'react';
import immutable from 'immutable';
import Actions from '../../Actions';
import {Modal, Button} from 'react-bootstrap';
import BigStar from './../BigStar.react.js'
import { connect } from 'react-redux';
const Win2Star = React.createClass({
closeModal(){
this.props.backToStart();
this.pr... |
shared/fee/ealing.js | RalphSleigh/bookings | import React from 'react'
import {
Row,
Col,
FormGroup,
Input,
Table,
InputGroup
} from 'reactstrap';
import {
Item,
Span,
A,
Box
} from 'react-html-email'
import update from 'immutability-helper';
import moment from 'moment';
//this implements Ealing's camp pricing policy.... |
node_modules/react-bootstrap/es/ModalTitle.js | acalabano/get-committed | 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 ... |
ui/pages/Staff/constants.js | macarthur-lab/seqr | import React from 'react'
import { Link } from 'react-router-dom'
import PedigreeImagePanel from 'shared/components/panel/view-pedigree-image/PedigreeImagePanel'
import { successStoryTypeDisplay } from 'shared/utils/constants'
export const STAFF_SEARCH_FORM_NAME = 'customVariantSearch'
export const INCLUDE_ALL_PROJEC... |
src/Parser/Monk/Mistweaver/Modules/Spells/EssenceFont.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import Analyzer from 'Parser/Core/Analyzer';
const debug = false;
class EssenceFont extends Analyzer {
castEF = 0;
targetsEF = 0;
on_byPlayer_cast(event) {
const ... |
src/PageItem.js | jamon/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.PropTypes.bool,
next: React.PropTypes... |
RN/RNFluxDemo/components/Login2.js | puyanLiu/LPYFramework | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
import {
Actions
} from 'react-native-router-flux';
import Button from "react-native-button";
class Login2 extends Component ... |
assets/javascripts/archon/components/AppSummaryCard.js | panli889/archon | import React from 'react';
import {Link} from 'react-router';
import Radium from 'radium';
import MDL from './MdlComponents';
import ProcSummaryBlock from './ProcSummaryBlock';
import LifescoreBar from './LifescoreBar';
import AppView from '../models/views/App';
import ProcView from '../models/views/Proc';
let AppSum... |
src/index.js | Danjavia/PWA-ReactJS-Starter-Pack | /**
* External Resources
**/
import React from 'react';
import ReactDOM from 'react-dom';
// import { Router, browserHistory } from 'react-router';
import { BrowserRouter as Router } from 'react-router-dom';
import ApolloClient, { createNetworkInterface } from 'apollo-client';
import { ApolloProvider } from 'react-ap... |
client/src/javascript/components/icons/Download.js | jfurrow/flood | import React from 'react';
import BaseIcon from './BaseIcon';
export default class Download extends BaseIcon {
render() {
return (
<svg className={`icon icon--download ${this.props.className}`} viewBox={this.getViewBox()}>
<rect x="28.2" width="3.7" height="55.5" />
<polygon points="30,60 ... |
app/javascript/mastodon/features/compose/components/character_counter.js | kagucho/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { length } from 'stringz';
export default class CharacterCounter extends React.PureComponent {
static propTypes = {
text: PropTypes.string.isRequired,
max: PropTypes.number.isRequired,
};
checkRemainingText (diff) {
if (diff < 0)... |
client/src/components/Listing/AddListing/AddListingComponents/ListingJobTypes.js | bwuphan/raptor-ads | import React from 'react';
import { Form, Dropdown } from 'semantic-ui-react';
import { jobCategories } from '../../jobCategories';
const ListingJobTypes = ({ onChange, getFormClass }) =>
<Form.Field className="ui center aligned grid">
<label htmlFor="category">Job Category</label>
<Dropdown
fluid
... |
src/components/App.js | atixlabs/atm-mobileapp |
import React from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
import WalletService from '../services/WalletService';
import SessionUser from '../state/SessionUser';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
back... |
snippod_webapp/client/scripts/main.js | shalomeir/snippod-boilerplate | 'use strict';
import React from 'react'
import { Router, Route, Link } from 'react-router'
import history from './utils/History.js'
//location: process.env.NODE_ENV === 'production' ? HashLocation : HistoryLocation,
//var router = require('./router'),
var routes = require('./routes'),
UIActions = require('./acti... |
client/trello/src/app/routes/home/routes/boardView/components/Forms/UpdateBoardName/UpdateBoardName.js | Madmous/madClones | import React from 'react';
import { Field, reduxForm } from 'redux-form';
import FontAwesome from 'react-fontawesome';
import PropTypes from 'prop-types';
import './UpdateBoardName.css';
const propTypes = {
isUpdateBoardNameOpen: PropTypes.bool.isRequired,
boardViewActions: PropTypes.object.isRequired
};
func... |
src/svg-icons/maps/directions-transit.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsTransit = (props) => (
<SvgIcon {...props}>
<path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.... |
client/components/PostItem/index.js | abinavseelan/restobook | import React from 'react';
import cn from 'classnames';
import { Link } from 'react-router-dom';
import distanceInWordsToNow from 'date-fns/distance_in_words_to_now';
import styles from './index.scss';
export default function PostItem(
{ username, createdAt, text, id, count = 0 },
) {
const postPermalink = `/post... |
src/Parser/BalanceDruid/Modules/Spells/NewMoon.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import { formatPercentage } from 'common/format';
import Module from 'Parser/Core/Module';
import SPELLS from 'common/SPELLS';
import isMoonMo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.