path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/containers/TypesContainer.js | axax/lunuc | import React from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import BaseLayout from '../components/layout/BaseLayout'
import BlankLayout from '../components/layout/BlankLayout'
import ManageCollectionClones from '../components/types/ManageCollectionClones'
import {
FileCopyIcon,
... |
docs/app/Examples/collections/Grid/Variations/GridExampleStretchedEqual.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Grid, Image, Segment } from 'semantic-ui-react'
const GridExampleStretchedEqual = () => (
<Grid columns='equal'>
<Grid.Row stretched>
<Grid.Column>
<Segment>1</Segment>
<Segment>2</Segment>
</Grid.Column>
<Grid.Column width={6}>
<Segmen... |
src/ModalFullsize/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './styles.css';
import SectionFooterCancelOK from '../SectionFooterCancelOK';
import SectionFooterClose from '../SectionFooterClose';
class ModalFullsize extends React.Component {
constructor(props)... |
renderer/components/UI/Bar.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { Box } from 'rebass/styled-components'
const Bar = ({ sx, variant, ...rest }) => {
return (
<Box
as="hr"
{...rest}
sx={{
bg: 'primaryText',
border: 0,
height: 1,
...sx,
}}
variant={`... |
pages/blog/index.js | InnoD-WebTier/bsjas | import React from 'react';
import Helmet from 'react-helmet';
import { config } from 'config';
import access from 'safe-access'
import sortBy from 'lodash/sortBy';
import uniq from 'lodash/uniq';
import { Link } from 'react-router';
import { prefixLink } from 'gatsby-helpers';
// import data
import data from '../data/... |
packages/material-ui-icons/src/SignalCellularNull.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SignalCellularNull = props =>
<SvgIcon {...props}>
<path d="M20 6.83V20H6.83L20 6.83M22 2L2 22h20V2z" />
</SvgIcon>;
SignalCellularNull = pure(SignalCellularNull);
SignalCellularNull.muiName = 'SvgIcon... |
src/app/components/Home/Post/Post.js | kresimircoko/empathy | import React, { Component } from 'react';
class Post extends Component {
render () {
return (
<article className="home-post">
<header className="home-post-header">
<h3 className="home-post-title">Post Title</h3>
</header>
<div className="home-post-content">
<p>
Lorem ipsum dolor sit am... |
docs/src/app/components/pages/components/Toolbar/Page.js | barakmitz/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 toolbarReadmeText from './README';
import toolbarExampleSimpleCode from '... |
src/components/layout/MenuItemLink.js | zhoutk/material-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import MenuItem from 'material-ui/MenuItem';
import { withRouter } from 'react-router';
export class MenuItemLinkComponent extends Component {
static propTypes = {
history: PropTypes.object.isRequired,
onTouchTap: PropTy... |
client/app/src/index.js | gk95/nightlux | import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
// AppContainer is a necessary wrapper component for HMR
import App from 'Containers/App';
const render = (Component) => {
ReactDOM.render(
<AppContainer>
<Component/>
</AppContainer>,
do... |
examples/huge-apps/routes/Grades/components/Grades.js | skevy/react-router | import React from 'react';
class Grades extends React.Component {
render () {
return (
<div>
<h2>Grades</h2>
</div>
);
}
}
export default Grades;
|
Ethereum-based-Roll4Win/node_modules/react-overlays/es/Overlay.js | brett-harvey/Smart-Contracts | function _extends() { _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; }; return _extends.apply(this, arguments); }
f... |
src/main/webapp/static/js/club/view/forgetPassword/app.js | weijiafen/antBlog | import React from 'react';
import { Steps ,Row , Col } from 'antd';
import AccountPage from './AccountPage';
import CaptchaPage from './captchaPage';
import SetPasswordPage from './SetPasswordPage';
import SuccessPage from './SuccessPage';
const Step = Steps.Step;
var app=React.createClass({
getInitialState(){
ret... |
app/components/nodes/container/icon/renderer.js | gnoll-project/GnollUI | import React, { Component } from 'react';
import shouldPureComponentUpdate from 'react-pure-render/function';
import { VictoryAnimation } from "victory";
import * as COMPONENTS from '../../../../constants/components';
import Draggable from '../draggable';
import Path from 'svg-path-generator';
const circleRadius = 25;... |
app/components/venue/FileUploadForm.js | BenGoldstein88/hitch-frontend | import React from 'react';
export default class FileUploadForm extends React.Component {
handleFormSubmit(e) {
// e.preventDefault();
}
render() {
return (
<div>
<form encType='multipart/form-data' action='https://gateway.watsonplatform.net/document-conversion/api' method='POST' onSubmit={this... |
v0.0.1/app/navbar.js | reactjs-id/reactjs-id.github.io | import React from 'react';
let styles = {
header: {
background: 'url(img/logo-transparent.png) no-repeat center center',
backgroundSize: 'contain',
height: '80px',
width: '80px'
},
headerParent: {
width: '180px'
}
};
let Navbar = (props) => (
<div className=... |
src/routes/Dashboard/components/Dashboard.js | jwarshaw/redux-dashboard-app | import React from 'react'
export const Dashboard = (props) => {
const listJSX = props.dashboard.dashboardItems.map((item, i) => {
let itemJSX;
if(props.editedItemIndex === i) {
itemJSX = <p><b><u>{item.label}</u></b></p>
} else {
itemJSX = <p>{item.label}</p>
}
return <h4
id={i}
... |
webapp/app/components/Save/Buttons/index.js | EIP-SAM/SAM-Solution-Server | //
// List buttons page save
//
import React from 'react';
import { ButtonToolbar } from 'react-bootstrap';
import LinkContainerButton from 'components/Button';
import styles from 'components/Save/Buttons/styles.css';
const moment = require('moment');
/* eslint-disable react/prefer-stateless-function */
export defau... |
front/src/components/svg/Close.js | cheminfo/database-aggregator | import React from 'react';
export default function(props) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
<path d="M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"/>
</... |
webapp/app/components/EditUser/Form/Email/index.js | EIP-SAM/SAM-Solution-Server | //
// Component email form in edit user page
//
import React from 'react';
import { FormGroup, FormControl, ControlLabel, HelpBlock } from 'react-bootstrap';
import styles from 'components/EditUser/styles.css';
/* eslint-disable react/prefer-stateless-function */
export default class EditUserFormEmail extends React.C... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/SelectField/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 selectFieldReadmeText from './README';
import SelectFieldExampleSimple fr... |
learnyoureact(done)/10_event/app.js | bluewaitor/node-school | /**
* Created by bluewaitor on 15/12/27.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import TodoBox from './views/index.jsx';
let data = JSON.parse(document.getElementById('initial-data').getAttribute('data-json'));
ReactDOM.render(<TodoBox data={data}/>, document.getElementById('app'));
|
src/views/Dashboard/index.js | chad-ding/koala | /**
*@Author: chad.ding
*@Copyright: 2008-2018 CHAD
*@Date: 2017-06-27 22:19:37
*/
import React, { Component } from 'react';
import { Breadcrumb, Icon, Row, Col } from 'antd';
import LineChart from '../../components/LineChart';
import BarChart from '../../components/BarChart';
import PieChart from '../../component... |
src/containers/DevTools.js | scenario-generator/frontend | import React from 'react';
import { createDevTools } from 'redux-devtools';
/**
* These 2 monitors are very commonly used with 'redux-devtools'.
* However, you can choose to make your own!
*/
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
const DevTools ... |
app/javascript/mastodon/components/avatar.js | robotstart/mastodon | import React from 'react';
import PropTypes from 'prop-types';
class Avatar extends React.PureComponent {
constructor (props, context) {
super(props, context);
this.state = {
hovering: false
};
this.handleMouseEnter = this.handleMouseEnter.bind(this);
this.handleMouseLeave = this.handleM... |
app/javascript/mastodon/features/account_timeline/index.js | ambition-vietnam/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { refreshAccountTimeline, refreshAccountFeaturedTimeline, expandAccountTimeline } from '../../ac... |
app/javascript/mastodon/features/compose/components/action_bar.js | summoners-riftodon/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
edit_profile: { id: 'a... |
example/redux/src/components/Pages.js | iansinnott/react-static-webpack-plugin | /* @flow */
import React from 'react';
import classnames from 'classnames/bind';
import { connect } from 'react-redux';
import { Map } from 'immutable';
import { getFormValues } from '../modules/things/utils.js';
import { updateForm, initialize, teardown, addThing } from '../modules/things';
import s from './Pages.st... |
examples/huge-apps/components/Dashboard.js | BerkeleyTrue/react-router | import React from 'react'
import { Link } from 'react-router'
class Dashboard extends React.Component {
render() {
const { courses } = this.props
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
you... |
src-web/js/view/PageLayout.js | kwangkim/pigment | import React from 'react';
import {FontIcon, Styles} from 'material-ui';
import Radium from 'radium';
let ThemeManager = new Styles.ThemeManager();
let styles = {
page: {},
editView: {
padding: '10px 10px 100px 10px'
},
};
@Radium
export default class PageLayout extends React.Component {
render() {
l... |
src/utils/ValidComponentChildren.js | BespokeInsights/react-bootstrap | import React from 'react';
/**
* Maps children that are typically specified as `props.children`,
* but only iterates over children that are "valid components".
*
* The mapFunction provided index will be normalised to the components mapped,
* so an invalid component would not increase the index.
*
* @param {?*} ... |
docs/src/examples/addons/TransitionablePortal/Types/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const TransitionablePortalTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Transitionable P... |
docs/app/Examples/elements/Label/Types/LabelExamplePointing.js | ben174/Semantic-UI-React | import React from 'react'
import { Divider, Form, Label } from 'semantic-ui-react'
const LabelExamplePointing = () => (
<Form>
<Form.Field>
<input type='text' placeholder='First name' />
<Label pointing>Please enter a value</Label>
</Form.Field>
<Divider />
<Form.Field>
<Label poin... |
index.ios.js | joggerplus/ReactNativeRollingExamples |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
NavigatorIOS,
Navigator
} from 'react-native';
var ExampleList = require('./JS/Classes/Module/Menu/ExampleList');
var NavigatorExampleWithNavigationBar = require('./JS/Classes/Module/Menu/NavigatorExampleWithNavigationB... |
src/layouts/Cards/index.js | brendanscarano/GoodbyeContacts | import React from 'react';
import {
Text,
View,
Image,
ActivityIndicator,
TouchableHighlight,
} from 'react-native';
import { possibleYesBlocks, possibleDeniedBlocks } from '../../data/messages';
import SwipeCards from '../../components/SwipeCards';
import Card from '../../components/Card';
import ... |
examples/webview_example/src/App.js | BranchMetrics/react-native-branch-deep-linking | import React, { Component } from 'react';
import RootNavigator from './RootNavigator';
import { NavigationContainer } from '@react-navigation/native';
export default class App extends Component {
render() {
return (
<NavigationContainer>
<RootNavigator />
</NavigationContainer>
);
}
};
|
react/src/components/PageHeader.js | eduardinni/bootlint-online | import React, { Component } from 'react';
export default class PageHeader extends Component {
render(){
return (
<div>
<div className="page-header">
<h1>Bootlint Online <span className="text-warning beta">beta</span></h1>
</div>
<p className="lead">An HTML <a href="https:/... |
website/src/components/explorables/season1/episode2/index.js | jwngr/notreda.me | import React from 'react';
import {Helmet} from 'react-helmet';
import Table from '../../../charts/Table';
import PerSeasonBarChart from '../../../charts/PerSeasonBarChart';
import NewsletterSignupForm from '../../../common/NewsletterSignupForm';
import LosslessRecordLineGraph from './LosslessRecordLineGraph';
import... |
src/app/icons/rain.js | Eric-Vandenberg/react-redux-weatherapp.io | import React from 'react';
const rain = (props) => (
<svg id="rain" viewBox="0 0 72 72" strokeWidth="0.5" {...props}>
<g>
<path d="M49.7,10C46.5,3.9,40,0,33,0c-8.6,0-16.2,5.9-18.3,14.1C14.1,14,13.6,14,13,14C5.8,14,0,19.8,0,27
s5.8,13,13,13l36,0c8.3,0,15-6.7,15-15C64,17,57.7,10.4,49.7,10z M49,36l-36... |
internals/templates/containers/LanguageProvider/index.js | jesus9ias/solar_system | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
src/components/utils/StyleButton.js | tsaiDavid/react-rich-text-editor | import React from 'react';
import { Button } from 'react-bootstrap';
export default class StyleButton extends React.Component {
constructor() {
super();
this.onToggle = (e) => {
e.preventDefault();
this.props.onToggle(this.props.style);
};
}
render() {
... |
src/components/classroom/classroom_detail.js | Diane27/big-red-hacks-2017 | import React from 'react'
import DATACOMMENTS from '../../data/data_comments'
import DATACLASSROOMS from '../../data/data_classrooms'
const ClassroomDetail = (props) => {
const comments = DATACOMMENTS.filter(data => {
return data.classroom_id == props.classroom.id
}).map(d => {
const student_name = DATACLASSROOM... |
examples/redux-observable/cancellable-counter/src/components/Counter.js | mpeyper/redux-subspace | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import {
INCREMENT,
DECREMENT,
INCREMENT_IF_ODD,
CANCEL_INCREMENT_ASYNC,
START_COUNTDOWN
} from '../actionTypes'
function Counter({counter, countdown, dispatch}) {
const action = (type, value) => () => ... |
app/templates/components/Application.js | v2018z/generator-fluxible | /*globals document*/
import React from 'react';
import Nav from './Nav';
import ApplicationStore from '../stores/ApplicationStore';
import { connectToStores, provideContext } from 'fluxible-addons-react';
import { handleHistory } from 'fluxible-router';
class Application extends React.Component {
render() {
... |
squealy/squealy-web/src/Components/ReactTags/ReactTags.js | devashishsharma2302/testing-heroku-deployment | import React from 'react';
import ReactDOM from 'react-dom';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import Suggestions from './Suggestions';
import Tag from './Tag';
// Constants
const Keys = {
ENTER: 13,
TAB: 9,
BACKSPACE: 8,
UP_ARROW: 38,
DOWN_ARROW... |
src/components/label.js | LINKIWI/react-elemental | import PropTypes from 'prop-types';
import React from 'react';
import Spacing from 'components/spacing';
import Text from 'components/text';
/**
* Text label accompanying an input field.
*
* @constructor
*/
const Label = ({ label, sublabel, ...proxyProps }) => (
<Spacing size="tiny" bottom {...proxyProps}>
{... |
app/javascript/mastodon/features/ui/components/column_link.js | abcang/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import Icon from 'mastodon/components/icon';
const ColumnLink = ({ icon, text, to, href, method, badge }) => {
const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span... |
src/js/expansionpanel/index.js | HBM/md-components |
import React from 'react'
import classnames from 'classnames'
import {ChevronRight} from '../icon/'
export default class ExpansionPanel extends React.Component {
state = {
isOpen: false
}
toggle = () => {
this.setState({
isOpen: !this.state.isOpen
})
}
render () {
return (
<div... |
src/routes/Room/components/RoomEditDialog.js | miyanokomiya/b-net | import React from 'react'
import PropTypes from 'prop-types'
import ReactDOM from 'react-dom'
import FlatButton from 'material-ui/FlatButton';
import Dialog from 'material-ui/Dialog'
import TextField from 'material-ui/TextField'
class RoomEditDialog extends React.Component {
static propTypes = {
}
componentDidU... |
app/components/Screens/Why/Why.js | fabienjuif/KeyBoard | import React from 'react'
import MidSized from 'MidSized'
const Why = () => {
return (
<div>
<MidSized colorName="gradiant5">
Why we make KBOARD
</MidSized>
<MidSized colorName="gradiant4" textLeft>
Imagine to build from A to Z
</MidSized>
</div>
)
}
export defaul... |
.storybook/components/SelectStory.js | hellobrian/carbon-components-react | import React from 'react';
import { storiesOf, action } from '@storybook/react';
import Select from '../../components/Select';
import SelectItem from '../../components/SelectItem';
import SelectItemGroup from '../../components/SelectItemGroup';
const selectProps = {
onChange: action('onChange'),
className: 'some-c... |
src/svg-icons/file/cloud-done.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudDone = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96... |
ajax/libs/react-instantsearch/3.2.2-beta0/Dom.js | froala/cdnjs | /*! ReactInstantSearch 3.2.2-beta0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof d... |
node_modules/react-bootstrap/es/FormControl.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/svg-icons/content/gesture.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentGesture = (props) => (
<SvgIcon {...props}>
<path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.... |
mm-react/src/components/data/DstSelector.js | Ameobea/tickgrinder | //! A component that's meant to be included in a form. It contains a `Select` dropdown box that can be used to pick a data
//! downloader. Depending on the current selection, it also renders a `TickSink` component which contains input fields
//! for the user to fill out and create a `HistTickDst`.
import React from ... |
src/components/app.js | smichael1/SingleAxisReactUI | import React, { Component } from 'react';
import CommandList from './command_list';
import TelemetryList from './telemetry_list';
import LoadButton from './load_button';
import LoadConfigButton from './load_config_button';
import ConfigList from './config_list';
class App extends Component {
render() {
... |
src/parser/shared/modules/items/bfa/raids/uldir/SyringeOfBloodborneInfirmity.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import { calculateSecondaryStatDefault } from 'common/stats';
import { formatPercentage, formatNumber } from 'common/format';
import ItemDamageDone from 'interface/ItemDamageDone';
import Analyzer from 'parser/core/Analyzer... |
src/svg-icons/av/replay-30.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay30 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-2.4 8.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-.... |
demo/icons/hardware.js | jahglow/MDIcon | import React from 'react';
export const ic_cast = <path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" />;
export const ic_cast_connected = <path d="M1 18v3h3c0-1.66-1.3... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js | ontruck/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import './assets/style.css';
export default () => <p id="feature-css-inclusion">We love useless text.</p>;
|
docs/app/Examples/elements/Divider/Variations/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const DividerVariationsExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Inverted'
desc... |
src/views/Components/Timeline/Timeline.js | corbinpage/react-play | import React, { Component } from 'react';
import styles from './timeline.css';
import TimelineCard from '../TimelineCard';
class Timeline extends Component {
constructor(props) {
super(props);
this.renderTimelineCards = this.renderTimelineCards.bind(this);
this.state = {
collapse: false,
stat... |
app/app.js | brainsandspace/ship | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
src/react/components/App/index.js | bolshchikov-public/react-module-container-example | import React from 'react';
import s from './App.scss';
class App extends React.Component {
render() {
return (
<div className={s.root}>
<div className={s.header}>
<h2>{'Hello React World!'}</h2>
</div>
</div>
);
}
}
export default App;
|
src/scene/Order/OrderMenuItem.js | Cowboy1995/JZWXZ | /**
* Copyright (c) 2017-present, Liu Jinyong
* All rights reserved.
*
* https://github.com/huanxsd/MeiTuan
* @flow
*/
//import liraries
import React, { Component } from 'react';
import { View, Text, StyleSheet, Image, TouchableOpacity } from 'react-native';
import {Heading2} from '../../widget/Text'
import {... |
app/javascript/mastodon/features/getting_started/index.js | blackle/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/projects/content/Halo4.js | tehfailsafe/portfolio | import React from 'react';
import Section from '../show/Section'
import CopySplitLeft from '../show/CopySplitLeft'
import CopySplitRight from '../show/CopySplitRight'
import Copy from '../show/Copy'
import ImageFull from '../show/ImageFull'
import VideoPlayer from '../show/VideoPlayer'
export default React.createClas... |
packages/material-ui-icons/src/AccountBalance.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let AccountBalance = props =>
<SvgIcon {...props}>
<path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z" />
</SvgIcon>;
AccountBalance = pure(AccountBalance);
... |
src/routes/BusinessComponent/antdStyle/index.js | janeluck/red | /**
* Created by janeluck on 5/11/17.
*/
import React from 'react'
import {Row, Col, Select, Modal, Button, Input, Tag} from 'antd'
const Option = Select.Option;
import styles from './index.less'
class AntdStylePage extends React.Component {
constructor(props) {
super(props)
}
render() {
return ... |
dva/wind-tunnel/src/components/Rules/Rules.js | imuntil/React | import React from 'react'
import styles from './Rules.less'
function Rules() {
return (
<a className={styles.rule_btn} href="javascript:;">
<img src={require('../../assets/activity-rule.png')} alt=""/>
</a>
)
}
export default Rules
|
js/components/tab/tabOne.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import { View } from 'react-native';
import { Container, Header, Title, Content, Button, Fab, IconNB, Icon, List, ListItem, Text, Thumbnail, Left, Right, Body } from 'native-base';
import styles from './styles';
const randomColor = require('randomcolor'); // import the scr... |
src/js/components/AggregateDoc.js | grommet/grommet-index-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import DocsArticle from './DocsArticle';
import Example from './Example';
import Aggregate from 'grommet-index/components/Aggregate';
// So Example has something useful to display
Aggregate.displayName = 'Ag... |
examples/js/remote/remote-store-export-csv.js | powerhome/react-bootstrap-table | import React from 'react';
import RemoteExportCSV from './remote-export-csv';
function getProducts() {
const products = [];
const startId = products.length;
for (let i = 0; i < 12; i++) {
const id = startId + i;
products.push({
id: id,
name: 'Item name ' + id,
price: Math.floor((Math.ra... |
client/src/js/game/Game.js | FlorianDe/MotivationalStairs | import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import MotivationalStairsGame from './component/MotivationalStairs.js';
import MSAPI from './MotivationalStairsAPI.js';
import { dummyScores } from './scores.js';
import '../../css/App.css';
class Game extends React.Comp... |
src/components/MessageContent/MessageContent.js | nolawi/champs-dialog-sg | /**
* Copyright 2017 dialog LLC <info@dlg.im>
* @flow
*/
import type { MessageContent as MessageContentTypes } from '@dlghq/dialog-types';
import React from 'react';
import Text from './Text/Text';
import Service from './Text/Service';
import Photo from './Photo/Photo';
import Sticker from './Sticker/Sticker';
impo... |
app/components/LoadingIndicator/index.js | AnhHT/react-boilerplate | 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... |
src/components/form/SimpleForm.js | shrimpliu/shradmin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import mapValues from 'lodash/mapValues';
import get from 'lodash/get';
import pickBy from 'lodash/pickBy';
import isEqual from 'lodash/isEqual';
import isFunction from 'lodash/isFunction';
import has from 'lodash/has';
import inflection from... |
js/components/common/badge/badge.js | justarrived/p2p-client | import React, { Component } from 'react';
import { View, Text } from 'react-native';
import BadgeStyles from './badgeStyles';
import { BADGE_COLOR_DEFAULT } from '../../../resources/colors';
// Badge component. A color can be specified optionally as a prop.
export default class Badge extends Component {
static propT... |
src/common/icons/Github.js | k2052/journal.2052.me | import React from 'react'
class Github extends React.Component {
render() {
return (
<svg x="0px" y="0px" width="512px" height="512px" viewBox="0 0 512 512">
<path d="M256,32C132.3,32,32,134.9,32,261.7c0,101.5,64.2,187.5,153.2,217.9c1.4,0.3,2.6,0.4,3.8,0.4c8.3,0,11.5-6.1,11.5-11.4
c0-5.5-0.... |
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/js/rendererjs/statusbar.js | patel344/Mr.Miner | import PropTypes from 'prop-types'
import React from 'react'
// -- helper functions --
// currentEstimatedHeight returns the estimated block height for the current time.
const currentEstimatedHeight = () => {
const knownBlockHeight = 100e3
const knownBlockTime = new Date(1492126189*1000) // timestamp for block 1000... |
examples/forms-bootstrap/src/components/dialogs-create-overlay/Hook.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
export default createReactClass({
displayName: 'Hook',
render: function() {
return (
<div style={{ padding: '20px' }}>
<button
className="btn btn-primary"
onClick={() => {
lore.dialog.sh... |
src/svg-icons/image/filter-vintage.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterVintage = (props) => (
<SvgIcon {...props}>
<path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.9... |
frontend/src/InteractiveImport/Confirmation/ConfirmImportModalContentConnector.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { clearInteractiveImportTrackFiles, fetchInteractiveImportTrackFiles } from 'Store/Actions/interactiveImportActions';
import createClientSideCollectionSe... |
src/svg-icons/device/access-alarm.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessAlarm = (props) => (
<SvgIcon {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-... |
app/containers/Root.js | robogroves/iotbp | // @flow
import React from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import Routes from '../routes';
type RootType = {
store: {},
history: {}
};
export default function Root({ store, history }: RootType) {
return (
<Provider store={store}>
<... |
react-native/masApp/index.android.js | eirikaa/dataCapture | /* eslint no-console: 0 */
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
TextInput,
View,
DeviceEventEmitter //react-native-sensor-manager
} from 'react-native';
// Sensor manager
// var sensorManager = require("NativeModules").SensorManager;
... |
src/components/Posts/PostsList.js | niquepa/react-readable | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Title, Grid, RadioGroup, Radio, Dialog, DialogTitle, DialogBody, DialogFooter, DialogHeader, Cell, Textfield, Button, Icon } from 'react-mdc-web/lib';
import { withRouter } from 'react-router-dom';
import PropTypes from 'prop-type... |
monkey/monkey_island/cc/ui/src/components/attack/techniques/T1021.js | guardicore/monkey | import React from 'react';
import ReactTable from 'react-table';
import {renderMachine, ScanStatus} from './Helpers'
import MitigationsComponent from './MitigationsComponent';
class T1021 extends React.Component {
constructor(props) {
super(props);
}
static getServiceColumns() {
return ([{
colum... |
assets/jqwidgets/demos/react/app/chart/stackedwaterfallseries/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let sampleData = [
{ a: 35, b: 40 },
{ a: 10, b: 25 },
{ a: 20, b: 20 },
{ a: 30, ... |
eventkit_cloud/ui/static/ui/app/components/MapTools/DrawFreeButton.js | venicegeo/eventkit-cloud | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { withTheme } from '@material-ui/core/styles';
import ContentCreate from '@material-ui/icons/Create';
import ContentClear from '@material-ui/icons/Clear';
export class DrawFreeButton extends Component {
constructor(props) {
... |
src/AffixMixin.js | jamon/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
const AffixMixin = {
propTypes: {
offset: React.PropTypes.number,
offsetTop: React.PropTypes.number,
offsetBottom: React.PropTypes.number
},
getInitialState() {
return {
a... |
examples/src/components/NumericSelect.js | mobile5dev/react-select | import React from 'react';
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select';
var ValuesAsNumbersField = createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: PropTypes.string
},
getInitialState () {
return {
options: [
{... |
public/components/wz-menu/wz-menu-security.js | wazuh/wazuh-kibana-app | /*
* Wazuh app - React component for Settings submenu.
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* 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 yo... |
simpleFetch/src/Detail.js | fengnovo/webpack-react | import React from 'react'
import ReactDOM from 'react-dom'
import { connect } from 'react-redux'
import { Link } from 'react-router'
import { fetchCommentData,fetchDetailData } from './actions'
class Detail extends React.Component {
constructor (props) {
super(props)
if(this.props && this.props.par... |
components/Layout.js | icarlossz/icarlossz.github.io | import React from 'react'
import Head from 'next/head'
import { Menu, Loader, Footer } from './'
export default ({ title, content:Content }) => (
<main role="application">
<Head>
<title>Carlos Sz | {title}</title>
</Head>
<Menu />
<Loader />
<div id="content">
<Conte... |
stories/time-related-controls.js | wmzy/formsy-antd | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { FormItem, Form, DatePicker, TimePicker } from 'formsy-antd';
import { Button } from 'antd';
import './styles.css';
const MonthPicker = DatePicker.MonthPicker;
const RangePicker = DatePic... |
app/components/ContactsList.js | thirdicrypto/darkwallet-electron-ui | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class SendForm extends Component {
render() {
return (
<div>
<div className="scroller">
<div className="row">
<div className="small-6 columns">
<h3 >Contacts</h3>
... |
cubetracker-app/src/Draft.js | sandorw/cubetracker | import React from 'react';
import {render} from 'react-dom';
import Button from 'react-bootstrap/lib/Button';
export default class Draft extends React.Component {
render() {
return (
<Button>Draft</Button>
);
}
}
|
src/modules/persisted/components/Request-persisted.js | otissv/graphql-guru-ide | import React from 'react';
import autobind from 'class-autobind';
import styled from 'styled-components';
import CodeMirror from 'react-codemirror';
import '../../../../node_modules/codemirror/lib/codemirror.css';
require('codemirror/mode/javascript/javascript');
require('codemirror/addon/fold/foldgutter');
require('co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.