path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/containers/NotFoundPage.js | chentsulin/redux-boilerplate | import React from 'react';
const NotFoundPage = () => (
<div>
<h1>404 - Page Not Found</h1>
</div>
);
export default NotFoundPage;
|
src/routes/notFound/index.js | keenethics/estimateit | import React from 'react';
import Layout from '../../components/Layout';
import NotFound from './NotFound';
const title = 'Page Not Found';
export default {
path: '*',
action() {
return {
title,
component: (
<Layout>
<NotFound title={title} />
</Layout>
),
st... |
src/svg-icons/image/iso.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageIso = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z"/>
... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-time-picker/es/Header.js | bhathiya/test | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React, { Component } from 'react';
im... |
springboot/GReact/src/main/resources/static/app/components/navigation/components/Navigation.js | ezsimple/java | /**
* Created by griga on 11/24/15.
*/
import React from 'react'
import NavMenu from './NavMenu'
import MinifyMenu from './MinifyMenu'
import LoginInfo from '../../user/components/LoginInfo'
import AsideChat from '../../chat/components/AsideChat'
export default class Navigation extends React.Component {
rende... |
src/elements/label.js | bokuweb/re-bulma | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from '../../build/styles';
export default class Label extends Component {
static propTypes = {
children: PropTypes.any,
className: PropTypes.string,
};
static defaultProps = {
className: '',
};
createCla... |
js/components/anatomy/index.js | yasster/Divide-react-native |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Text, H3, Button, Icon, Footer, FooterTab } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import myTheme from '../../themes/base-theme';
import styles from './styles';
... |
src/components/videos/videodetails.js | jetshoji/Asia_Trip | import React, { Component } from 'react';
import {Button, Panel, Image} from 'react-bootstrap';
import ReactPlayer from 'react-player';
class Videodetails extends Component{
constructor(props){
super(props);
this.state={
open: false
}
}
render(){
console.log("hello from Videodetails");
console.log(thi... |
app/javascript/mastodon/components/common_counter.js | gol-cha/mastodon | // @ts-check
import React from 'react';
import { FormattedMessage } from 'react-intl';
/**
* Returns custom renderer for one of the common counter types
*
* @param {"statuses" | "following" | "followers"} counterType
* Type of the counter
* @param {boolean} isBold Whether display number must be displayed in bold
... |
app/javascript/mastodon/main.js | sylph-sin-tyaku/mastodon | import * as registerPushNotifications from './actions/push_notifications';
import { default as Mastodon, store } from './containers/mastodon';
import React from 'react';
import ReactDOM from 'react-dom';
import ready from './ready';
const perf = require('./performance');
function main() {
perf.start('main()');
i... |
src/components/Footer/InstagramIcon.js | Galernaya20/galernaya20.com | //@flow
import React from 'react'
import {Svg} from '../Svg/Svg'
export const InstagramIcon = (props: Object) => (
<Svg {...props}>
<path d="M 16 3 C 8.83 3 3 8.83 3 16 L 3 34 C 3 41.17 8.83 47 16 47 L 34 47 C 41.17 47 47 41.17 47 34 L 47 16 C 47 8.83 41.17 3 34 3 L 16 3 z M 37 11 C 38.1 11 39 11.9 39 13 C 39 1... |
src/routes/content/link/index.js | muidea/magicSite | import React from 'react'
import PropTypes from 'prop-types'
import { routerRedux } from 'dva/router'
import { connect } from 'dva'
import qs from 'qs'
import List from './List'
import Filter from './Filter'
import Modal from './Modal'
const Link = ({ location, dispatch, link, loading }) => {
const { list, selected... |
app/main.js | yaolei/Samoyed | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
import App from './components/app';
ReactDOM.render(
<App />,
document.getElementById('root')
); |
test/helpers/shallowRenderHelper.js | chenjingwei4518/react-gallery | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
client/scripts/components/user/entities/entity-form/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
src/components/popular-store.js | dennyjuw/rice-and-noddle | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class PopularStore extends Component {
render() {
return (
<div>
<h3>Popular Store</h3>
<ul className="list-group">
<li className="list-group-item">Store 1</li>
<li className="l... |
src/components/category/category.js | SupasitC/Pricetrolley | import React from 'react'
import { Row, Col } from 'react-bootstrap'
import CategoryBox from './category-box'
export default class Category extends React.Component {
render() {
const style = require('./category.scss');
return (
<div className={style.category}>
<Row>
<CategoryBox
... |
src/icons/AlarmAddIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class AlarmAddIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M15.76 6.78l-2.57-3.06L4 11.43l2.57 3.06 9.19-7.71zM44 11.44l-9.19-7.71-2.57 3.06 9.19 7.71L44 11.44zM23.... |
app/javascript/mastodon/components/load_more.js | Arukas/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class LoadMore extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func,
visible: PropTypes.bool,
}
static defaultProps = {
visible: true,
}
render() {... |
src/components/form/formBuyAgentPropertyAntMobile.js | gordongordon/hom | import React from 'react';
import { Card, Picker, List, WhiteSpace, InputItem,
Button,
SegmentedControl,
Checkbox,
Switch,
WingBlank,
Range,
Stepper,
DatePicker,
} from 'antd-mobile';
import { createForm } from 'rc-form';
import { MTR } from... |
client/src/js/App.js | abitlog/retube | import React from 'react';
import Header from './containers/Header';
import NavBar from './containers/NavBar';
import store from './reducers/store';
import { userAuthCheckRequest, authenticateUser } from './actions/authActions';
import { updateUser } from './actions/userActions';
class App extends React.Component {
... |
src/parser/demonhunter/vengeance/modules/statistics/SoulsOvercap.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import SPELLS from 'common/SPELLS/index';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'comm... |
src/icons/LogoMonoIcon.js | fathomlondon/fathomlondon.github.io | import React from 'react';
export function LogoMonoIcon() {
return (
<svg viewBox="0 0 114 37" xmlns="http://www.w3.org/2000/svg">
<g fill="none" fillRule="evenodd">
<path
d="M79.362 15.071h.163c1.815 0 2.168.483 2.168 3.092v5.447c0 2.667-.434 3.291-2.33 3.348v1.503h8.102v-1.475c-2.06-.17-2.385-.624-2.3... |
node_modules/react-bootstrap/es/BreadcrumbItem.js | hsavit1/gosofi_webpage | 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/components/Layout.js | yahorzhylinski/zhylinski-me-cliend-side | 'use strict';
import React from 'react';
import {
Link
} from 'react-router';
import Navbar from './Navbar'
import Footer from './Footer'
import SideBarProfileInfo from './SideBarProfileInfo';
export default class Layout extends React.Component {
render() {
return (
<div classN... |
src/views/PureListView/index.js | r1cebank/react-native-boilerplate | import React from 'react';
import { ListView, Dimensions, Platform, View } from 'react-native';
import Styles from './resources/styles';
// FIXME: Android has a bug when scrolling ListView the view insertions
// will make it go reverse. Temporary fix - pre-render more rows
const LIST_VIEW_PAGE_SIZE = Platform.OS ===... |
src/tools/code-template/ui/OrgList.js | steem/qwp-antd | import React from 'react'
import PropTypes from 'prop-types'
import { Form } from 'antd'
import List from 'components/List'
import { l } from 'utils/localization'
import { uriOfList } from 'requests/org'
import styles from './OrgList.less'
let OrgListWithSearchForm = React.createClass({
updateModalOrgSelection(selec... |
src/timelines/components/NotificationCard.js | algernon/mad-tooter | // @flow
/* The Mad Tooter -- A Mastodon client
* Copyright (C) 2017 Gergely Nagy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your o... |
example/react-native-camera-roll-picker/ImageItem.js | olofd/react-native-photos-framework | import React, { Component } from 'react';
import {
Image,
StyleSheet,
Dimensions,
TouchableOpacity,
Text,
View
} from 'react-native';
import Video from 'react-native-video';
class ImageItem extends Component {
constructor(props) {
super(props);
this.state = { videoPaused: true };
}
component... |
superset-frontend/src/CRUD/utils.js | mistercrunch/panoramix | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
src/docs/examples/TextInputCSSModules/errorExample.js | choudlet/ps-react-choudlet | import React from 'react';
import TextInputCSSModules from 'ps-react/TextInputCSSModules';
/** Required TextBox with error */
export default class ExampleError extends React.Component {
render() {
return (
<TextInputCSSModules
htmlId="example-optional"
label="First Name"
name="first... |
src/common/button.js | jeffboulay/react-submitly | import React from 'react';
const Button = ({text, onClick}) => {
return (
<button
onClick={onClick}
className= "primary-btn"
>
{text}
</button>
)
};
export default Button; |
node_modules/react-select/src/AsyncCreatable.js | mannyng/ceap | import React from 'react';
import Select from './Select';
function reduce(obj, props = {}){
return Object.keys(obj)
.reduce((props, key) => {
const value = obj[key];
if (value !== undefined) props[key] = value;
return props;
}, props);
}
const AsyncCreatable = React.createClass({
displayName: 'Asyn... |
index.android.js | TekkenChicken/t7-chicken-native | import './ReactotronConfig';
import Reactotron from 'reactotron-react-native';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import React from 'react';
import { Provider } from 'react-redux';
import { AppRegistry } from 'react-native';
import store from './src/redux/store';
import ... |
src/svg-icons/content/filter-list.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentFilterList = (props) => (
<SvgIcon {...props}>
<path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/>
</SvgIcon>
);
ContentFilterList = pure(ContentFilterList);
ContentFilterList.displayName = 'Con... |
app/javascript/mastodon/features/getting_started/index.js | Nyoho/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/Partials/Footer.js | luanlv/comhoavang | import React from 'react'
import Link from '../Link'
class Footer extends React.Component {
render () {
return (
<div id="footer">
<div className="footer-wrapper">
<div className="container">
<div className="footer-box mobi480h">
<div className="dangky">
... |
docs/src/app/components/pages/components/Table/Page.js | andrejunges/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 tableReadmeText from './README';
import TableExampleSimple from './Exampl... |
blueocean-material-icons/src/js/components/svg-icons/maps/local-atm.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsLocalAtm = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89... |
src/components/Dropzone.js | golemfactory/golem-electron | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as Actions from './../actions';
import directorySelector from './../utils/directorySelector';
const classDict = Object.freeze({
SHOW: 'drop-zone--show',
HIDE: 'drop-zone--hide'
});
const ma... |
4-routing/src/pages/Room.js | pirosikick/react-hands-on-20171023 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Room extends Component {
static propTypes = {
match: PropTypes.shape({
params: PropTypes.object.isRequired,
isExact: PropTypes.bool.isRequired,
path: PropTypes.string.isRequired,
url: PropTypes.string.isRe... |
app/components/event-stats.js | mario2904/ICOM5016-Project | import React, { Component } from 'react';
import { Form, Grid, Input, Item, Select, Header, Image, Segment } from 'semantic-ui-react';
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer, PieChart, Pie, Sector, Cell, Bar, BarChart } from 'recharts';
import axios from 'axios';
co... |
src/svg-icons/notification/phone-locked.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhoneLocked = (props) => (
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5... |
website/src/react-native/index.js | charlesvinette/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict... |
react-flux-mui/js/material-ui/src/svg-icons/hardware/phonelink.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhonelink = (props) => (
<SvgIcon {...props}>
<path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/>
... |
admin/src/components/ItemsTableCell.js | Freakland/keystone | import React from 'react';
var ItemsTableCell = React.createClass({
displayName: 'ItemsTableCell',
propTypes: {
className: React.PropTypes.string,
},
render () {
let className = 'ItemList__col' + (this.props.className ? (' ' + this.props.className) : '');
return (
<td {...this.props} className={className... |
src/components/angularjs/plain-wordmark/AngularjsPlainWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './AngularjsPlainWordmark.svg'
/** AngularjsPlainWordmark */
function AngularjsPlainWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'A... |
assets/jqwidgets/demos/react/app/splitter/events/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxSplitter from '../../../jqwidgets-react/react_jqxsplitter.js';
import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js';
class App extends React.Component {
componentDidMount() {
let capitaliseFirstLetter = (string) => {
... |
floodwatch/src/js/components/profile_demographics/Age.js | O-C-R/floodwatch | // @flow
import React, { Component } from 'react';
import { Row, Col, Well } from 'react-bootstrap';
import moment from 'moment';
import type { DemographicCategory } from '../../common/types';
type Props = {|
onUpdate: (year: ?number) => void,
birthYear: ?number,
categoryInfo: DemographicCategory,
|};
export ... |
node_modules/react-native/local-cli/server/middleware/heapCapture/src/heapCapture.js | aksharora/ReactNativeDemoBasic | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict... |
app/js/tabs.js | CKrawczyk/volcrowe | import React from 'react';
import { Nav, NavItem } from 'react-bootstrap';
import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap';
const Tabs = () => (
<Nav bsStyle="tabs" activeKey={1} stacked>
<IndexLinkContainer to={{ pathname: '/' }}>
<NavItem eventKey={1}>Home</NavItem>
</Index... |
webpack/scenes/ModuleStreams/ModuleStreamsTableSchema.js | johnpmitsch/katello | import React from 'react';
import { Link } from 'react-router-dom';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
import { translate as __ } from 'foremanReact/common/I18n';
import {
headerFormatter,
cellFormatter,
} from '../../move_to_foreman/components/common/table';
const TableSchema = [
{
... |
src/www/js/demos/index_classes_constructor_function.js | training4developers/react_05092016 | import React from 'react';
import ReactDOM from 'react-dom';
function HelloWorld(message) {
this.message = message;
}
HelloWorld.prototype.showMessage = function() {
console.log(this.message);
};
var hw = new HelloWorld('hi world!');
class HelloWorld2 {
constructor(message) {
this.message = message;
}
show... |
app/javascript/mastodon/features/ui/components/modal_loading.js | Nyoho/mastodon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body'>
... |
app/components/queue/ACL.js | imankit/dashboard-ui | import React from 'react';
import ReactDOM from 'react-dom';
import Dialog from 'material-ui/Dialog';
import {Modal, Button, FormControl} from 'react-bootstrap';
import {updateQueue} from '../../actions';
import {connect} from 'react-redux';
import ACLRows from './aclRows.js'
class ACL extends React.Component {
const... |
src/components/base/Base.js | HallyGit/pbi-web | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { get } from 'lodash';
import {
Row,
Col
} from 'antd';
import Header from 'components/header/Header';
import Sidebar from 'components/sidebar/Sidebar';
import './base.css';
@connect(
state => ({
router: get(state, 'rout... |
src/components/artists-list.js | daphnevisser/Upnotes | import React from 'react';
import { Link } from 'react-router';
const ArtistsList = (props) => {
if (!props.artists) {
return (
<div className="loading">Loading...</div>
);
}
const listOfArtists = props.artists.results.map((artist) => {
return(
<li key={artist.id}>
<Link classNam... |
packages/bonde-admin/src/steps/step.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
const Step = ({ children, stepComponent: StepComponent, ...props }) => (
<StepComponent {...props}>
{children}
</StepComponent>
)
Step.propTypes = {
step: PropTypes.number,
isValid: PropTypes.bool,
stepComponent: PropTypes.any.isRequired
}
ex... |
actor-apps/app-web/src/app/components/modals/InviteUser.react.js | bradparks/actor-platform___im_client_cross_platform | import _ from 'lodash';
import React from 'react';
import ActorClient from 'utils/ActorClient';
import { KeyCodes } from 'constants/ActorAppConstants';
import InviteUserActions from 'actions/InviteUserActions';
import ContactStore from 'stores/ContactStore';
import InviteUserStore from 'stores/InviteUserStore';
im... |
example/scripts/client/main.js | antca/simple-flux | import 'whatwg-fetch'; //fetch polyfill
import React from 'react';
import Root from './components/Root.jsx';
React.render(<Root />, document.body);
|
src/browser/components/Link.js | TheoMer/Gyms-Of-The-World | // @flow
import type { TextProps } from '../../common/components/Text';
import React from 'react';
import { Link as FoundRouterLink } from 'found';
import { Text } from '../../common/components';
type LinkProps = TextProps & {
to: string,
};
const isExternalLink = to => to.includes('://');
const Anchor = ({ to, ..... |
ReactLab01/Public/js/src/presentional/table-header.js | knivek91/ReactLab01 | import React from 'react';
export const TH = ({ cssClass, text }) => (
<th className={cssClass}>{text}</th>
); |
ReactApp/src/Pages/Accomodation.js | hoh/FolkMarsinne | import React, { Component } from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import {List, ListItem} from 'material-ui/List';
import Paper from 'material-ui/Paper';
import CustomTitle from '../Cards/CustomTitle';
import EmailIcon from 'material-ui/svg-icons/... |
node_modules/@material-ui/core/es/StepContent/StepContent.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import warning from 'warning';
import clsx from 'clsx';
import Collapse from '../Collapse';
import withSt... |
src/ModalTitle.js | nickuraltsev/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalTitle extends React.Component {
render() {
return (
<h4
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{ this.props.children }
</h4>
);
}
}
ModalTitle.pr... |
src/sections/NotFoundPage/index.js | thinkingboxmedia/React-boilerplate | import React from 'react';
const NotFoundPage = () => (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
export default NotFoundPage;
|
admin/src/components/PrimaryNavigation.js | lastjune/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
import { Container } from 'elemental';
var PrimaryNavItem = React.createClass({
displayName: 'PrimaryNavItem',
propTypes: {
className: React.PropTypes.string,
children: React.PropTypes.node.isRequired,
href: Reac... |
src/components/ExpanderSmooth/ExpanderSmooth.js | askd/animakit | import AnimakitExpander from 'components/AnimakitExpander';
import React from 'react';
import PropTypes from 'prop-types';
import SimpleText from 'components/SimpleText/SimpleText';
import styles from './ExpanderSmooth.css';
export default class ExpanderSmooth extends React.Component {
constructor(props) {
sup... |
src/components/Navigation/NavigationBar.js | stevefabian/React-Movies | import React, { Component } from 'react';
import { Link } from 'react-router';
import './Navigation.css';
class NavigationBar extends Component {
constructor(props) {
super(props);
this.homeMenu = 'Search';
}
render() {
return (
<div className='nb-container'>
... |
src/layouts/CoreLayout.js | fforres/coworks_client_side | import React from 'react';
import 'styles/core.scss';
import { NavBar, LoginModal } from '../components';
import styles from 'styles/core.scss';
export default class CoreLayout extends React.Component {
static propTypes = {
children: React.PropTypes.element
};
render () {
return (
<div id='coreLay... |
src/Button.js | mxc/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
import ButtonInput from './ButtonInput';
const Button = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
active: React.PropTypes.bool,... |
sandbox/src/App.js | JamieDixon/styled-components | import React from 'react'
import styled, { css, keyframes, injectGlobal } from 'styled-components'
import {
LiveProvider as _LiveProvider,
LiveEditor as _LiveEditor,
LiveError as _LiveError,
LivePreview as _LivePreview,
} from 'react-live'
import buttonExample from './Button.example'
// eslint-disable-next-... |
ui/src/components/master.js | ssoudan/edisonIsThePilot | /**
* Created by ssoudan on 9/5/15.
*/
import React from 'react';
import Router from 'react-router';
var RouteHandler = Router.RouteHandler;
import mui from 'material-ui';
import AppLeftNav from './app-left-nav.js';
import FullWidthSection from './full-width-section.js';
const MyRawTheme = require('../theme');
con... |
app/components/MenuSider.js | chenzhq/TagViewer | import React from 'react'
import {
Layout,
Menu,
Icon
} from 'antd'
const {
Header,
Sider,
Content
} = Layout;
const {
ipcRenderer
} = require('electron');
const PouchDB = require('pouchdb/dist/pouchdb.min');
class MenuSider extends React.Component {
constructor(props) {
const videoDB = new PouchDB('video... |
src/tutorials/coming-to-wholeness.js | goldylucks/adamgoldman.me | import React from 'react'
import { MESSENGER_LINK_WELCOME } from '../constants'
import Testimony from '../components/Testimony'
export const title = 'Coming To Wholeness'
export const nick = 'whole'
export const description = 'A PRACTICAL step by step tool for non "enlightment"'
export const credits =
"Source: I'... |
docs/src/app/components/pages/components/Snackbar/ExampleSimple.js | hai-cea/material-ui | import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import RaisedButton from 'material-ui/RaisedButton';
export default class SnackbarExampleSimple extends React.Component {
constructor(props) {
super(props);
this.state = {
open: false,
};
}
handleClick = () => {
this.... |
actor-apps/app-web/src/app/components/modals/AddContact.react.js | Havi4/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import addons from 'react/addons';
import ReactMixin from 'react-mixin';
import { Styles, TextField, FlatButton } from 'material-ui';
import AddContactStore from 'stores/AddContactStore';
import AddContactActionCreators from 'actions... |
lib/repo-supremo/SharedDeps.js | RallySoftware/rally-present | import React from 'react';
const imgSrc = require('./images/shared_dependencies.png');
export default class Slide extends React.Component {
render() {
return (
<div>
<h1>the problem: shared dependencies</h1>
<img src={ imgSrc } />
</div>
);
}
}
|
src/docs/examples/TextInputStyledComponent/ExampleError.js | zeegeek/ps-react-reusable-comp | import React from 'react';
import TextInputStyledComponent from 'rc-react/TextInputStyledComponent';
/** Optional TextBox */
export default class ExampleOptional extends React.Component {
render(){
return (
<TextInputStyledComponent
htmlId="example-optional"
label="First Name"
name="firstname"
on... |
src/app/components/connection_status.js | alexboev/hnpwa | import React from 'react'
export default class ConnectionStatus extends React.Component {
constructor(props) {
super(props);
this.state = {
offline: false
};
}
componentDidMount() {
var self = this;
function online(event) {
self.setStat... |
src/svg-icons/maps/local-bar.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalBar = (props) => (
<SvgIcon {...props}>
<path d="M21 5V3H3v2l8 9v5H6v2h12v-2h-5v-5l8-9zM7.43 7L5.66 5h12.69l-1.78 2H7.43z"/>
</SvgIcon>
);
MapsLocalBar = pure(MapsLocalBar);
MapsLocalBar.displayName ... |
modules/Navigation.js | amsardesai/react-router | import React from 'react';
var { object } = React.PropTypes;
/**
* A mixin for components that modify the URL.
*
* Example:
*
* import { Navigation } from 'react-router';
*
* var MyLink = React.createClass({
* mixins: [ Navigation ],
* handleClick(event) {
* event.preventDefault();
* ... |
examples/counter/containers/CounterApp.js | Kureev/redux | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'redux/react';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp {
render() {
co... |
app/javascript/mastodon/components/display_name.js | im-in-space/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { autoPlayGif } from 'mastodon/initial_state';
export default class DisplayName extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
oth... |
source/client/components/UserRegister.js | achobanov/ReactJS-Fundamentals-lab | import React from 'react';
import FormActions from '../actions/FormActions';
import UserActions from '../actions/UserActions';
import FormStore from '../stores/FormStore';
import Form from './form/Form';
import TextGroup from './form/TextGroup';
import RadioGroup from './form/RadioGroup';
import RadioElement fro... |
src/components/button/button_area.js | woshisbb43/coinMessageWechat | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from '../../utils/classnames';
class ButtonArea extends Component {
static propTypes = {
/**
* Direction of Button Layout inside, Options: veritical, horizontal
*
*/
direction:... |
node_modules/react-bootstrap/es/ModalDialog.js | hsavit1/gosofi_webpage | 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/components/IngestionWizard/FileDrag.js | giux78/daf-dataportal | import React from 'react'
import Dropzone from 'react-dropzone'
import {processInputFileMetadata} from './avroschema.js'
const calcDataFields = (files,fields) =>
processInputFileMetadata(files, (resData)=>{
console.log(JSON.stringify(resData))
resData.names.map((item, index) => {
consol... |
packages/mineral-ui-icons/src/IconForward30.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconForward30(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProp... |
examples/App.js | p0o/react-is-scrolling | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import IsScrolling from '../dist/IsScrolling.js';
const parentDivStyle = {
height: '2000px'
};
const overlayStyle = {
position: 'fixed',
background: 'LightSkyBlue',
bottom: '50px'
};
@IsScrolling
class Page extends Component {
rend... |
node_modules/react-bootstrap/es/Well.js | skinsshark/skinsshark.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/components/input-buttons/InputButtons.js | camilacnery/simple-calculator | import React, { Component } from 'react';
import { StyleSheet, View, Text} from 'react-native';
import Button from './button/Button';
export default class InputButtons extends Component {
constructor(props) {
super(props);
this.onKeyPressed = this.onKeyPressed.bind(this);
this.handleNumberInput = this.handleN... |
src/shared/components/Shared/StarsRating.js | Grace951/ReactAU | import React from 'react';
import Star from './Star';
class StarsRating extends React.Component{
constructor(props) {
super(props);
this.state ={
rating: props.initRate,
hoverAt: null
};
this.handleMouseOver = this.handleMouseOver.bind(this);
this.handleMouseOut = this.handleMouseOut.bind(this);
th... |
client/index/components/register/index.js | sliwei/react16-koa2 | import React from 'react';
import {Axios} from 'Public';
import {Link} from 'react-router-dom';
import {Modal, Form, Icon, Input, Button, Checkbox, Tooltip, message} from 'antd';
import css from './register.scss';
const FormItem = Form.Item;
class Index extends React.Component {
constructor(props) {
super... |
src/svg-icons/content/archive.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentArchive = (props) => (
<SvgIcon {...props}>
<path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.... |
app/javascript/components/Kits/List2.js | luckypike/mint | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import Images from '../Variants/Images/Images'
import { path } from '../Routes'
import Price from '../Variants/Price'
import styles from '../Variants/List.module.css'
List2.propTypes = {
kits: PropTypes.array
}
expor... |
src/templates/tag.js | calpa/blog | import React from 'react';
import { graphql } from 'gatsby';
import Card from '../components/Card';
import SEO from '../components/SEO';
import Sidebar from '../components/Sidebar';
// eslint-disable-next-line react/prop-types
const TagPage = ({ data, pageContext }) => {
const { edges } = data.allMarkdownRemark;
c... |
src/sections/App/App.js | thinkingboxmedia/static-web-starter-kit | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import debounce from 'lodash.debounce';
import { BrowserRouter, Route } from 'react-router-dom';
import Header from './elements/Header';
import Preloader from './elements/Preloader';
import LoginButton from 'src/components/LoginButton';
im... |
frontend/src/components/welcome/common/ForgotPasswordModal.js | dimkarakostas/unimeet | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import {Modal, Form, FormGroup, FormControl, Button} from 'react-bootstrap';
import * as config from '../../config';
import axios from 'axios';
axios.defaults.withCredentials = true;
class ForgotPasswordModal extends Component {
construct... |
src/components/common/Hue.js | socialtables/react-color | 'use strict' /* @flow */
import React from 'react'
import ReactCSS from 'reactcss'
import shallowCompare from 'react-addons-shallow-compare'
export class Hue extends ReactCSS.Component {
shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1])
classes(): any {
return {
'defau... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.