path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/RoomUserList/Row.js | u-wave/web | import cx from 'clsx';
import React from 'react';
import PropTypes from 'prop-types';
import ListItemButton from '@mui/material/ListItemButton';
import ListItemAvatar from '@mui/material/ListItemAvatar';
import ListItemText from '@mui/material/ListItemText';
import useUserCard from '../../hooks/useUserCard';
import Ava... |
src/app/components/Posts.js | saulshanabrook/eee-display | import React from 'react'
import Reflux from 'reflux'
import Remarkable from 'remarkable'
import Moment from 'moment'
import _ from 'lodash'
import Timestamp from 'react-time'
import {Panel, Button} from 'react-bootstrap'
import Toggle from 'react-toggle'
import PostActions from '../actions/PostActions'
import PostsS... |
file-browser-ui/dev/js/components/payment/selectcard.js | CloudBoost/cloudboost | import React from 'react';
import planList from './plans';
import {Menu, MenuItem, Popover} from 'material-ui'
var valid = require('card-validator');
const style = {
menuItem: {
width: '112px'
}
}
class SelectCard extends React.Component {
constructor(props) {
super(props);
this.sta... |
app/jsx/actAs/ActAsPanda.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
src/svg-icons/hardware/phone-iphone.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhoneIphone = (props) => (
<SvgIcon {...props}>
<path d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1... |
src/wrappers/RectangleInterfaceWrapper.js | tmpaul06/gathering-client | import React from 'react';
import RectangleInterface from '../components/RectangleInterface';
// Define an interface for retrieving and manipulating the rectangle
// MOVE, ROTATE. We will assign roles to various connections for moving
// and updating at random (assigning roles).
// Then introduce an intermediary (e.g ... |
packages/ui/stories/components/userPluginsItem.stories.js | nukeop/nuclear | import React from 'react';
import { storiesOf } from '@storybook/react';
import {UserPluginsItem} from '../..';
storiesOf('Components/User plugins item', module)
.add('Basic', () => (
<div className='bg'>
<UserPluginsItem
path='/usr/bin/local'
name='test plugin'
description='test d... |
src/components/pages/Checkout/CheckoutBillingInformation.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports
*/
import React from 'react';
import {FormattedMessage} from 'react-intl';
// Flux
import IntlStore from '../../../stores/Application/IntlStore';
// Required components
import AddressField from '../../common/forms/AddressField';
import AddressPreview from '../../common/forms/AddressPreview';
import Ch... |
src/vendor/recharts/demo/component/PolarRadiusAxis.js | donal-crotty/fuzzy-telegram | import React from 'react';
import { Surface, PolarRadiusAxis } from 'recharts';
export default React.createClass({
render () {
const ticks = [
{ value: '100', radius: 50 },
{ value: '200', radius: 100 },
{ value: '300', radius: 150 },
{ value: '400', radius: 200 },
{ value: '500', r... |
examples/js/expandRow/expand-indicator.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
if (i < 3) {
products.push... |
src/index.js | a-tarr/Fleetr | import React from 'react';
import ReactDOM from 'react-dom';
import Store from './data/Store';
import Main from './Main';
import './index.css';
const store = new Store();
ReactDOM.render(
<Main store={store} />, document.getElementById('root')
);
|
app/react-icons/fa/gittip.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaGittip extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m20.3 29.1l7.8-10.6q0.3-0.5 0.5-1.3t-0.1-1.9-1.4-1.8q-0.9-0.6-1.8-0.5t-1.7 0.... |
src/components/containers/MainSpinner/MainSpinner.js | PulseTile/PulseTile-React | import React from 'react';
const MainSpinner = (props) => {
return (
<div className="main-spinner">
<div className="lds-css ng-scope">
<div className="lds-dual-ring">
<div></div>
<div></div>
</div>
</div>
</div>)
};
export default MainSpinner;
|
src/components/SearchPage/SearchPager/index.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'components/Interactive/Link'
import QueryString from 'querystring'
import typy from 'typy'
const SearchPager = (props) => {
const queries = typy(props.queries).safeObjectOrEmpty
const pagerQuery = QueryString.parse(props.pagerQuery.repl... |
app/javascript/mastodon/features/list_adder/components/list.js | imas/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from '../../../components/icon_button';
import { defineMessages, inject... |
ozwillo-datacore-web/src/main/webapp/dc-ui/src/components/inputCurrentPath.js | ozwillo/ozwillo-datacore | import React from 'react';
import { connect } from 'react-redux';
import * as actions from '../actions/actionIndex.js';
class InputCurrentPath extends React.Component{
updateCurrentPath = (e) => {
this.props.dispatch(actions.setCurrentQueryPath(e.target.value));
}
render() {
return (
<input classN... |
packages/yam-vr/components/Message/index.vr.js | unindented/little-yam | import React from 'react'
import {
Image
} from 'react-vr'
import {formatUrl} from 'yam-data'
const fallbackUrl = 'https://mug0.assets-yammer.com/mugshot/images/{width}x{height}/no_photo.png'
export default class GroupFeed extends React.PureComponent {
static propTypes = {
message: React.PropTypes.object,
... |
src/utils/domUtils.js | victorzhang17/react-bootstrap | import React from 'react';
import canUseDom from 'dom-helpers/util/inDOM';
import getOwnerDocument from 'dom-helpers/ownerDocument';
import getOwnerWindow from 'dom-helpers/ownerWindow';
import contains from 'dom-helpers/query/contains';
import activeElement from 'dom-helpers/activeElement';
import getOffset from 'd... |
app/static/src/diagnostic/TestTypeResultForm_modules/WindingTestForm.js | vsilent/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import Button from 'react-bootstrap/lib/Button';
import HelpBlock from 'react-bootstrap/lib/HelpBlock';
import {Notifi... |
src/svg-icons/notification/adb.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAdb = (props) => (
<SvgIcon {...props}>
<path d="M5 16c0 3.87 3.13 7 7 7s7-3.13 7-7v-4H5v4zM16.12 4.37l2.1-2.1-.82-.83-2.3 2.31C14.16 3.28 13.12 3 12 3s-2.16.28-3.09.75L6.6 1.44l-.82.83 2.1 2.1C6.14... |
examples/transitions/app.js | nickaugust/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link, History, Lifecycle } from 'react-router'
const history = useBasename(createHistory)({
basename: '/transitions'
})
const App = React.createClass({
render() {
return (
<div>
<ul>
... |
BookSearch/Search.js | onezens/react-native-repo |
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
var styles = StyleSheet.create({
description: {
fontSize: 20,
backgroundColor: 'white'
},
container: {
flex: 1,
justifyContent: 'center... |
src/components/welcome.js | tedjames/reduxAuth | import React from 'react'
const Welcome = (props) => {
return (
<p>Welcome!</p>
);
};
export default Welcome;
|
src/Badge.js | jakubsikora/react-bootstrap | import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
import classNames from 'classnames';
const Badge = React.createClass({
propTypes: {
pullRight: React.PropTypes.bool
},
getDefaultProps() {
return {
pullRight: false
};
},
hasContent() {
re... |
src/components/Combobox/components/DropdownItems/SearchIndicatorDropdownItem.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import { EntityDropdownItem } from './EntityDropdownItem';
const searchIcon = { icon: 'search', sprite: 'utility' };
export const SearchIndicatorDropdownItem = ({ search }) => (
<EntityDropdownItem
className="slds-listbox__option_term"
isPresent... |
app/jsx/discussions/components/DiscussionBackgrounds.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
frontend-new/src/index.js | leapfrogtechnology/vyaguta-resource | import React from 'react';
import ReactDOM from 'react-dom';
import Routes from './js/Routes';
import './css/bundle.css';
import './custom-ui/app.js';
import './custom-ui/plugins.js';
import './custom-ui/bootstrap.js';
import './css/style.css';
ReactDOM.render(
<Routes /> ,
document.getElementById('main-contai... |
client/userinterface/gebouwen/Gebouwen.js | benstuijts/darkage-framework | import React from 'react';
import DialogBox from '../DialogBox';
import Input from './Gebouwen/Input.js';
export default class Gebouwen extends React.Component {
constructor() {
super();
this.state = { name: "Een mooie naam, vastgelegd in this.state"};
}
changeName(name) {
this... |
src/Progress/Shapes/Arc.js | fengshanjian/react-native-komect-uikit | /* eslint new-cap: ["error", { "capIsNew": false }] */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ART } from 'react-native';
const CIRCLE = Math.PI * 2;
function makeArcPath(x, y, startAngleArg, endAngleArg, radius, direction) {
let startAngle = startAngleArg;
let endA... |
frontend/teg-web-ui/src/common/LoadingOverlay.js | tegh/tegh-daemon |
import React from 'react'
import Loading from './Loading'
import useStyles from './LoadingOverlayStyles'
const LoadingOverlay = ({
className = '',
children = null,
loading,
loadingText = 'Loading...',
...props
}) => {
const classes = useStyles()
return (
<div className={`${classes.root} ${className... |
app/components/SocialLogin/icons/svg/linkedin.js | juanda99/arasaac-frontend | import React from 'react'
import PropTypes from 'prop-types'
import pure from 'recompose/pure'
import SvgIcon from 'material-ui/SvgIcon'
/* eslint-disable import/no-mutable-exports */
let Linkedin = (props) => (
<SvgIcon {...props} viewBox='0 0 24 24'>
<path
d="M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0... |
src/routes.js | milangupta511/react-split-settlement | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import App from './components/app';
import FriendList from './components/friend_list';
import GroupList from './components/group_list';
import ActivityList from './components/activity_list';
import NewExpense from './components/new_expense';
imp... |
frontend/src/components/QuantitySlider.js | loicbaron/nutrition | import React from 'react';
import PropTypes from 'prop-types';
import { Slider } from '@mui/material';
const marks = [
{
value: 0,
label: '0',
width: '100%',
},
{
value: 1,
label: 'A',
width: '36%',
},
{
value: 2,
label: 'B',
width: '54%',
},
{
value: 3,
label:... |
src/wics/src/components/Login/index.js | civiclee/Hack4Cause2017 | import React from 'react';
import baseTheme from './theme.js';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import './style.css';
const b... |
src/components/Tabs/components/ScrollableInkTabBar.js | zhangjianguo1500/f01 | import React from 'react';
import InkTabBarMixin from './InkTabBarMixin';
import ScrollableTabBarMixin from './ScrollableTabBarMixin';
import TabBarMixin from './TabBarMixin';
const ScrollableInkTabBar = React.createClass({
mixins: [TabBarMixin, InkTabBarMixin, ScrollableTabBarMixin],
render() {
const inkBarN... |
src/hoc/selectable-enhance.js | tyfoo/material-ui | import React from 'react';
import ThemeManager from '../styles/theme-manager';
import StylePropable from '../mixins/style-propable';
import ColorManipulator from '../utils/color-manipulator';
import DefaultRawTheme from '../styles/raw-themes/light-raw-theme';
export const SelectableContainerEnhance = (Component) => {
... |
admin/src/index.js | pmdevers/ChaosCMS | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import chaosTheme from './theme/chaosTheme';
import App from './App';
im... |
packages/react-ui-components/src/Button/index.story.js | grebaldi/PackageFactory.Guevara | import React from 'react';
import {storiesOf, action} from '@storybook/react';
import {withKnobs, text, boolean, select} from '@storybook/addon-knobs';
import {StoryWrapper} from './../_lib/storyUtils';
import Button from '.';
const validSizes = ['small', 'regular'];
storiesOf('Button', module)
.addDecorator(with... |
src/svg-icons/image/crop.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop = (props) => (
<SvgIcon {...props}>
<path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"/>
</SvgIcon>
);
ImageCrop = pure(ImageCrop);
ImageCrop.displayNam... |
examples/huge-apps/components/Dashboard.js | freeyiyi1993/react-router | import React from 'react';
import { Link } from 'react-router';
class Dashboard extends React.Component {
render () {
var { courses } = this.props;
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
y... |
app/scripts/components/node-details/node-details-relatives.js | hustbill/network-verification-ui | import React from 'react';
import { Map as makeMap } from 'immutable';
import { NODE_DETAILS_DATA_ROWS_DEFAULT_LIMIT } from '../../constants/limits';
import NodeDetailsRelativesLink from './node-details-relatives-link';
export default class NodeDetailsRelatives extends React.Component {
constructor(props, context)... |
src/common/SelectFieldWrapper/SelectFieldWrapper.js | Syncano/syncano-dashboard | import React from 'react';
import _ from 'lodash';
import { SelectField, TextField } from 'material-ui';
import SelectFieldWrapperItem from './SelectFieldWrapperItem';
const SelectFieldWrapper = ({ name, disabled, itemStyles = {}, options, type = 'list', ...other }) => {
const renderSelectField = () => (
<Select... |
common/routes/About/containers/About.js | luanlv/minhphat | // /* global $ */
import { provideHooks } from 'redial'
import React from 'react'
import { connect } from 'react-redux'
import { loadData } from '../actions'
import Helmet from 'react-helmet'
// import {Link} from 'react-router'
const redial = {
fetch: ({ dispatch }) => dispatch(loadData())
}
const mapStateToProps ... |
packages/@lyra/form-builder/src/inputs/BlockEditor/nodes/Blockquote.js | VegaPublish/vega-studio | // @flow
import type {Node} from 'react'
import React from 'react'
import styles from './styles/Blockquote.css'
type Props = {
attributes: {},
children: Node
}
export default function Blockquote(props: Props) {
return (
<div className={styles.root}>
<blockquote className={styles.quote} {...props.attri... |
src/payWithWeChat.js | Kennytian/learning-react-navigation | import React, { Component } from 'react';
import {
Text,
TouchableOpacity,
View,
} from 'react-native';
import styles from './styles';
class PayWithWeChat extends Component {
static navigationOptions = {
title: ({state}) => `微信支付`,
}
render() {
const {navigate, state, goBack} = this.props.navigat... |
node_modules/antd/es/breadcrumb/BreadcrumbItem.js | ZSMingNB/react-news | import _extends from 'babel-runtime/helpers/extends';
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/i... |
app/javascript/mastodon/features/account_timeline/containers/header_container.js | pso2club/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import Header from '../components/header';
import {
followAccount,
unfollowAccount,
blockAccount,
unblockAccount,
unmuteAccount,
pinAccount,
unpinAccount,
} from '../../../actions/account... |
node_modules/react-bootstrap/es/InputGroupAddon.js | NathanBWaters/jb_club | 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 ... |
bin/server.js | young-utf/microblog | /**
* Created by youngmoon on 8/24/15.
*/
import Express from 'express';
import React from 'react';
import Location from 'react-router/lib/Location';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
... |
examples/src/components/NumericSelect.js | Paveltarno/react-select | import React from 'react';
import Select from 'react-select';
var ValuesAsNumbersField = React.createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: React.PropTypes.string
},
getInitialState () {
return {
options: [
{ value: 10, label: 'Ten' },
{ value: 11, label: 'Eleven' },
{ ... |
app/javascript/flavours/glitch/components/extended_video_player.js | vahnj/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class ExtendedVideoPlayer extends React.PureComponent {
static propTypes = {
src: PropTypes.string.isRequired,
alt: PropTypes.string,
width: PropTypes.number,
height: PropTypes.number,
time: PropTypes.number,
contr... |
fields/types/email/EmailColumn.js | Ftonso/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var EmailColumn = React.createClass({
displayName: 'EmailColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropType... |
stories/index.js | isBatak/react-infinitytracks | import React from 'react';
import { storiesOf, addDecorator } from '@storybook/react';
// import { action } from '@storybook/addon-actions';
// import { linkTo } from '@storybook/addon-links';
import { Waveform, AudioProvider, AudioRenderProps } from 'react-infinitytracks';
import Utils from './utils';
const contex... |
src/components/Layout.js | qkevinto/kevinto.me | import React from 'react';
import PropTypes from 'prop-types';
import { Helmet } from 'react-helmet';
import { siteMetadata } from '../utils/siteMetadata';
import '../css/main.scss';
export default class Layout extends React.Component {
static propTypes = {
children: PropTypes.any,
data: PropTypes.any
}
... |
react-movies/src/index.html.js | Morhaus/hackathon | import React from 'react';
export default function createHTML(stats) {
stats = stats.toJson();
let main = stats.assetsByChunkName.main;
return (
'<!DOCTYPE html>' +
React.renderToString(
<html>
<head>
<meta name="format-detection" content="telephone=no" />
<meta name="ms... |
frontend/src/pages/sys-admin/search.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
const propTypes = {
placeholder: PropTypes.string.isRequired,
submit: PropTypes.func.isRequired
};
class Search extends React.Component {
constructor(props) {
super(props);
this.state = {
value: ''
};
}
handleInputChange = (e... |
imports/startup/client/index.js | juliancwirko/scotty | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Switch } from 'react-router-dom';
import { onPageLoad } from 'meteor/server-render';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import { createStore, applyMiddleware } from 'redux';
import routes from '../... |
src/components/Box/Box.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import { THEMES, getThemeClass } from '../../utils';
const Box = (props) => {
const {
children, className, size, theme, ...rest
} = props;
const sldsClasses = [
'slds-box',
{ [`slds-box_${size}`]: !!size },
... |
app/components/personalities/Developer.js | VasilyShelkov/Vasily | import React, { Component } from 'react';
class Developer extends Component {
render() {
return (
<div id="profile" className="row">
<h1 className="center-align">I AM A...DEVELOPER</h1>
<div className="col-xs-12 col-sm-6 valign-wrapper">
<div className="col-xs-12 valign">
<h2 className="c... |
Paths/React/06.Styling React Components/4-react-styling-components-m4-exercise-files/After/src/frame.js | phiratio/Pluralsight-materials | import React from 'react'
export default function Frame({ children }) {
return <div>{children}</div>
}
|
node_modules/react-select/src/utils/defaultArrowRenderer.js | premcool/getmydeal | import React from 'react';
export default function arrowRenderer ({ onMouseDown }) {
return (
<span
className="Select-arrow"
onMouseDown={onMouseDown}
/>
);
};
|
src/screen/Skills.js | nahuelhds/react-native-hello-world | import React from 'react';
import { StyleSheet } from 'react-native'
import {
Body,
Button,
Container,
Header,
Icon,
Left,
Right,
Title,
View
} from "native-base";
import lang from "lang/main"
export default class SkillsScreen extends React.Component {
render() {
const { navigate } = this.prop... |
tests/flow/react_modules/es6class-proptypes-callsite.js | yamafaktory/prettier | /* @flow */
import React from 'react';
import Hello from './es6class-proptypes-module';
class HelloLocal extends React.Component<void, {name: string}, void> {
defaultProps = {};
propTypes = {
name: React.PropTypes.string.isRequired,
};
render(): React.Element<*> {
return <div>{this.props.name}</div>;
... |
src/statement/StatementPage.js | qingweibinary/binary-next-gen | import React from 'react';
import WebPage from '../containers/WebPage';
import StatementContainer from './StatementContainer';
export default (props) => (
<WebPage>
<StatementContainer {...props} />
</WebPage>
);
|
src/components/routes/guest.js | vFujin/HearthLounge | import React from 'react';
import {connect} from 'react-redux';
import PropTypes from 'prop-types';
import {Redirect, Route} from "react-router-dom";
const GuestRoute = ({ isAuthenticated, component: Component, ...rest }) => (
<Route {...rest}
render={props =>
!isAuthenticated ? <Component {...pr... |
packages/react-jsx-highcharts/src/components/BarSeries/BarSeries.js | AlexMayants/react-jsx-highcharts | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Series from '../Series';
class BarSeries extends Component {
static propTypes = {
id: PropTypes.string.isRequired
};
render () {
return (
<Series {...this.props} type="bar" />
);
}
}
export default BarSerie... |
app/components/NavigationBar/UINavItem.js | aoshmyanskaya/tko | import React from 'react';
import { Link } from 'react-router';
import { Button } from 'react-bootstrap';
import Ink from 'react-ink';
class UINavItem extends React.Component {
render() {
return (
<Link to={this.props.href}>
<Button
active={this.props.active}
block
bsS... |
src/components/modal/ViewPost.js | TimothyBom/react-redux-instagram | import React from 'react'
import CommentPage from '../comment/CommentPage'
class ViewPost extends React.Component {
render() {
const { post, user, currentUser } = this.props
const noAvatar = (
<img className="_a4egj" src="https://res.cloudinary.com/timothybom/image/upload/v1505211426/a... |
src/views/notifications/badges/Badges.js | mrholek/CoreUI-React | import React from 'react'
import { CButton, CCard, CCardBody, CCardHeader, CCol, CBadge, CRow } from '@coreui/react'
import { DocsCallout, DocsExample } from 'src/components'
const Badges = () => {
return (
<CRow>
<CCol xs={12}>
<DocsCallout name="Badges" href="components/badge" />
</CCol>
... |
examples/src/stepperRoute.js | HBM/md-components |
import React from 'react'
import {HashRouter} from 'react-router-dom'
import {Stepper, StepperStepFooter, Textfield} from '../../lib'
const step1 = () => (
<div style={{width: '100%', height: 300, background: '#607D8B'}}>
<h1 style={{padding: '2em', color: '#FFFFFF'}}>Step1: Your custom content</h1>
<... |
src/challenges/react/React_26.js | bonham000/fcc-react-tests-module | /* eslint-disable */
import React from 'react'
import assert from 'assert'
import { transform } from 'babel-standalone'
import Enzyme from '../Enzyme';
const shallow = Enzyme.shallow;
const mount = Enzyme.mount;
const render = Enzyme.render;
export const QA = true;
// ---------------------------- define challenge t... |
js/BaseComponents/CardItem.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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 3 of the License, or
*... |
app/components/ListItem/index.js | X0nic/cloud-cost | import React from 'react';
import styles from './styles.css';
function ListItem(props) {
return (
<li className={props.className || styles.item}>
<div className={styles.itemContent}>
{props.content}
</div>
</li>
);
}
ListItem.propTypes = {
className: React.PropTypes.string,
conten... |
src/svg-icons/maps/edit-location.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsEditLocation = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm-1.56 10H9v-1.44l3.35-3.34 1.43 1.43L10.44 12zm4.45-4.45l-.7.7-1.44-1.44.7-.... |
src/routes/notFound/index.js | lisong/code-push-web | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
app/components/genericComponents/List/index.js | romainquellec/cuistot | import React from 'react';
import PropTypes from 'prop-types';
import Ul from './Ul';
function List(props) {
const ComponentToRender = props.component;
let content = <div />;
// If we have items, render them
if (props.items) {
content = props.items.map((item) =>
<ComponentToRender key={`item-${item.... |
docs/src/sections/TransitionSection.js | dozoisch/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function TransitionSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
src/scripts/components/menu/Menu.component.js | kodokojo/kodokojo-ui | /**
* Kodo Kojo - Software factory done right
* Copyright © 2017 Kodo Kojo (infos@kodokojo.io)
*
* 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 3 of the License, or
* (at ... |
pages/schedule.js | francisdzheng/calwtcrew | import React from 'react';
import Schedule from '../components/Schedule';
import schedule from '../assets/images/schedule.jpg';
const ScheduleComponent = () => (
<div>
<div className="page__header">
2015-2016 Race Schedule and Results
</div>
<Schedule />
<img id="schedule__pic" alt="" src={sche... |
src/components/Header/Header.js | tomasreichmann/cards | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import withStyles from 'isomorp... |
src/routes/register/index.js | kevinchau321/TReactr | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
examples/ProgressBars.js | mattBlackDesign/react-materialize | import React from 'react';
import Row from '../src/Row';
import Col from '../src/Col';
import ProgressBar from '../src/ProgressBar';
export default
<Row>
<Col s={12}>
<ProgressBar progress={70}/>
</Col>
<Col s={12}>
<ProgressBar />
</Col>
</Row>;
|
app/components/EntranceAnimation/index.js | Chaos-Zero/GoemonInternational | import React from 'react';
import { StaggeredMotion, spring } from 'react-motion';
import styled from 'styled-components'
const colours = [
'#DE3022',
'#FF9800',
'#005418',
'#333333',
'#E7DEBB',
];
const Wrapper = styled.div`
display: flex;
width: 100vw;
min-height: 100vh;
`;
const Box = styled.div`
flex-b... |
CompositeUi/src/views/layout/ContentRightLayout.js | kreta/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import CrossIcon from './../../svg/cross.... |
src/svg-icons/editor/monetization-on.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMonetizationOn = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2... |
universal/containers/main/Main.js | Amazing-Space-Invader/outline | /**
* Created by invader on 06.07.16.
*/
import React from 'react'
import s from './main.pcss'
import Partners from '../../components/partners/Partners'
import Features from '../../components/features/Features'
import Features2 from '../../components/features-2/Features2'
import Testimonials from '../../components... |
web/views/HelpPage/index.js | xontab/basic-node-ci | import React, { Component } from 'react';
import globalStyles from '../../layout/styles.scss';
export default class HelpPage extends Component {
render() {
return (
<div>
<h1 className={globalStyles.title}>Help</h1>
<p>Coming soon. WIP</p>
</div>
... |
components/Cards/SpaceFeatureCard/SpaceFeatureCard.js | NGMarmaduke/bloom | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import cx from 'classnames';
import { applyContainerQuery } from 'react-container-query';
import css from './SpaceFeatureCard.css';
import PictureCard from '../PictureCard/PictureCard';
const query = {
[css.large]: {
minWidth: 192,
... |
imports/ui/components/Orders/MyOrdersList/AddToWallet.js | haraneesh/mydev | import React from 'react';
import PropTypes from 'prop-types';
import {
Button, Row, Col, Panel,
} from 'react-bootstrap';
import { formatMoney } from 'accounting-js';
import { accountSettings } from '../../../../modules/settings';
import { useStore, GlobalStores } from '../../../stores/GlobalStore';
import { calcula... |
docs/app/Examples/views/Card/Content/CardExampleImageCard.js | shengnian/shengnian-ui-react | import React from 'react'
import { Card, Icon, Image } from 'shengnian-ui-react'
const CardExampleImageCard = () => (
<Card>
<Image src='/assets/images/avatar/large/daniel.jpg' />
<Card.Content>
<Card.Header>Daniel</Card.Header>
<Card.Meta>Joined in 2016</Card.Meta>
<Card.Description>Daniel... |
src/library/navigation/buildRouteConfig.js | Digitova/reactova-framework | import React, { Component } from 'react';
import getRouteTemplate from './getRouteTemplate';
import MultiNavigator from '../../components/Navigation/MultiNavigator'
import buildNavigationConfig from './buildNavigationConfig'
export default buildRouteConfig = function(navigationSchema) {
let routes = navigationSchema.... |
src/components/SessionHeader/SessionHeader.js | copygof/go-ayutthaya | import React from 'react'
import { Link } from 'react-router-dom'
import './styles.css'
import DropDownMenu from 'material-ui/DropDownMenu';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import IconButton from 'material-ui/IconButton';
import MoreVertIcon from 'material-ui/sv... |
frontend/src/components/eois/cfeiContainer.js | unicef/un-partner-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Grid from 'material-ui/Grid';
import Card from 'material-ui';
import { loadCfei } from '../../reducers/cfei';
import EoiUnFilter from './filters/eoiUnFilter';
import EoiFilter from './filters/eoiF... |
src/components/Link/Link.js | langpavel/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
src/components/MyiWorlds/ContainerMapperLevel1/containers/MediaContainer1/MediaContainer1.js | DaveyEdwards/myiworlds | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
src/bundles/Oops/index.js | sashafklein/ballot-marker | import React from 'react';
import { View, Text } from 'react-native';
import { Actions } from 'react-native-router-flux';
import PageWithActions from '../../shared/components/PageWithActions';
import { wrap } from '../../shared/wrap';
// Export an unconnected version for testing
export const Oops = ({ messages, gbs ... |
lib/shared/components/dnd/dragger/index.js | relax/relax | import * as dndActions from 'actions/dnd';
import Component from 'components/component';
import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import Dragger from './dragger';
@connect(
(state) => ({
draggingData: state.dnd.draggingData,
dragInfo: state.d... |
src/app/_server.js | mdjasper/React-Reading-List | import React from 'react';
import docTemplate from './HTML.js';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
import { Provider } from 'react-redux';
import Helmet from 'react-helmet';
import routes from './routes.js';
import getStore from './store.js';
import {... |
examples/dynamic-segments/app.js | egobrightan/react-router | import React from 'react'
import { Router, Route, Link, Redirect } from 'react-router'
import { createHistory, useBasename } from 'history'
const history = useBasename(createHistory)({
basename: '/dynamic-segments'
})
class App extends React.Component {
render() {
return (
<div>
<ul>
<... |
src/UglyComponents/Polyline/index.js | VladimirMilenko/CamAdmin | /**
* Created by netre on 13.10.2016.
*/
import React from 'react';
import ReactLine from '../ReactLine';
const getLink = (p1, p2) => ({x1: p1.x, y1: p1.y, x2: p2.x, y2: p2.y});
const createPairs = (items, pairify) => items.reduce(
(acc, item, index, arr) =>
!arr[index + 1] ? acc
: acc.concat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.