path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
internals/templates/containers/App/index.js | gtct/wallet.eine.com | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/routes.js | sylnp0201/react-redux-universal-hot-example | import React from 'react';
import {Route} from 'react-router';
import {
App,
Home,
Widgets,
About,
Login,
RequireLogin,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default function(store) {
return (
<Route component={App}>
<Route path="/" component={Hom... |
dashboard/client/src/js/components/modules/VariationStats.js | jigarjain/sieve | import React from 'react';
import Loader from './base/Loader';
import Helpers from '../../utils/helpers';
const statTypes = [
{
type: 'count',
text: 'Counts'
},
{
type: 'convRate',
text: 'Conversion Rate'
},
{
type: 'zScore',
text: 'Z Score'
},
... |
examples/todomvc/containers/TodoApp.js | Lucifier129/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/todos';
class TodoApp extends Component {
render() {
... |
src/svg-icons/editor/format-align-right.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignRight = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignRight = pure(EditorFormatAlign... |
examples/with-apollo-auth/lib/with-data.js | arunoda/next.js | import React from 'react'
import cookie from 'cookie'
import PropTypes from 'prop-types'
import { ApolloProvider, getDataFromTree } from 'react-apollo'
import initApollo from './init-apollo'
function parseCookies (ctx = {}, options = {}) {
return cookie.parse(
ctx.req && ctx.req.headers.cookie
? ctx.req.h... |
src/svg-icons/maps/beenhere.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsBeenhere = (props) => (
<SvgIcon {...props}>
<path d="M19 1H5c-1.1 0-1.99.9-1.99 2L3 15.93c0 .69.35 1.3.88 1.66L12 23l8.11-5.41c.53-.36.88-.97.88-1.66L21 3c0-1.1-.9-2-2-2zm-9 15l-5-5 1.41-1.41L10 13.17l7.59... |
admin/client/components/Navigation/SecondaryNavigation.js | pswoodworth/keystone | import React from 'react';
import { Container } from 'elemental';
var SecondaryNavItem = React.createClass({
displayName: 'SecondaryNavItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
href: React.PropTypes.string.isRequired,
path: React.PropTypes.string,
tit... |
app/components/Notice.js | Toreant/monster_web | /**
* Created by apache on 15-10-30.
*/
import React from 'react';
import NoticeActions from '../actions/NoticeActions';
import NoticeStore from '../stores/NoticeStore';
import {Link} from 'react-router';
import Loading from './Loading';
class Notice extends React.Component {
constructor(props) {
super(p... |
packages/cp-frontend/src/components/services/list-item.js | yldio/copilot | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import forceArray from 'force-array';
import sortBy from 'lodash.sortby';
import { isNot } from 'styled-is';
import { Col, Row } from 'react-styled-flexboxgrid';
import remcalc from 'remcalc';
import { InstancesIcon,... |
app/javascript/mastodon/features/standalone/public_timeline/index.js | ashfurrow/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { expandPublicTimeline, expandCommunityTimeline } from 'mastodon/actions/timelines';
import Masonry from 'react-masonry-infinite';
import { List as Imm... |
packages/ringcentral-widgets-demo/dev-server/containers/App/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import sleep from 'ringcentral-integration/lib/sleep';
import AlertContainer from 'ringcentral-widgets/containers/AlertContainer';
import ConnectivityBadgeContainer from ... |
tests/lib/rules/vars-on-top.js | ronkorving/eslint | /**
* @fileoverview Tests for vars-on-top rule.
* @author Danny Fritz
* @author Gyandeep Singh
* @copyright 2014 Danny Fritz. All rights reserved.
* @copyright 2014 Gyandeep Singh. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requiremen... |
src/svg-icons/image/grid-on.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageGridOn = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6... |
docs/app/Examples/views/Card/Types/CardExampleGroupProps.js | shengnian/shengnian-ui-react | import React from 'react'
import { Card } from 'shengnian-ui-react'
const items = [
{
header: 'Project Report - April',
description: 'Leverage agile frameworks to provide a robust synopsis for high level overviews.',
meta: 'ROI: 30%',
},
{
header: 'Project Report - May',
description: 'Bring t... |
src/App.js | xindeling/Kyo-Demo | import React, { Component } from 'react';
import Scroll from 'react-scroll';
import logo from './logo.svg';
import './stylesheets/style.css';
let Link = Scroll.Link;
let Element = Scroll.Element;
let Events = Scroll.Events;
let scroll = Scroll.animateScroll;
let scrollSpy = Scroll.scrollSpy;
class ... |
src/frontend/components/AdminEventsSection.js | al3x/ground-control | import React from 'react';
import ReactDOM from 'react-dom';
import Relay from 'react-relay';
import EventPreview from './EventPreview';
import EventEdit from './EventEdit';
import {Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle, SelectField, DropDownMenu, DropDownIcon, Dialog, Tabs, Tab, FlatButton, RaisedButto... |
src/components/Account.js | opsukka/fantasy-map | import React from 'react';
import { connect } from 'react-redux';
import { compose } from 'recompose';
import { PasswordForgetForm } from './PasswordForget';
import PasswordChangeForm from './PasswordChange';
import withAuthorization from './Session/withAuthorization';
const AccountPage = ({ authUser }) =>
<div cla... |
src/auth/screens/auth-profile.screen.js | dyesseyumba/git-point | import React, { Component } from 'react';
import styled from 'styled-components';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {
RefreshControl,
View,
ActivityIndicator,
Dimensions,
} from 'react-native';
import { ListItem } from 'react-native-elements';
import {
... |
src/index.js | ernestofreyreg/react-calendar-month | import React from 'react';
import classNames from 'classnames';
export function zfill(num, len) { return (Array(len).join('0') + num).slice(-len); }
export function isFirsDay(day) { return day.ordinal === 1; }
export function monthDays(date) {
const d = new Date(date.getFullYear(), date.getMonth() + 1, 0);
return ... |
assets/jqwidgets/demos/react/app/expander/fluidsize/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxExpander from '../../../jqwidgets-react/react_jqxexpander.js';
class App extends React.Component {
render() {
return (
<JqxExpander width={'50%'} height={'50%'}>
<div>Early History of the Internet</div>
... |
src/pages/TodoList.js | marktani/react-native-express-1 | import React from 'react'
import markdown from 'markdown-in-js'
import markdownOptions from '../utils/MarkdownOptions'
import Page from './Page'
import { PageHeader } from '../components'
const content = markdown(markdownOptions)`
Our first exercise will be a simple Todo List. If you get stuck at any point, you can ... |
examples/blockly-react/src/App.js | google/blockly-samples | /**
* @license
*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
src/RadioGroup.js | sazl/react-bootstrap-validation | import React from 'react';
import Radio from './Radio';
import InputContainer from './InputContainer';
import classNames from 'classnames';
export default class RadioGroup extends InputContainer {
constructor(props) {
super(props);
this.state = {
value: props.defaultValue || ... |
stories/ChangingContent/index.js | henrybuilt/react-sticky-table | import React, { Component } from 'react';
import { StickyTable, Row, Cell } from '../../src';
import Button from '../Button';
export default class ChangingContent extends Component {
constructor(props) {
super(props);
var rows = [];
var cells;
for (var r = 0; r < 50; r++) {
cells = [];
... |
src/routes/workTeam/NavSidebar/NavSidebar.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/withStyles';
import s from './NavSidebar.css';
import Sidebar from '../../../components/Sidebar';
import Label from '../../../components/Label';
import Heading from '../../../components/Heading';
import Image ... |
app/components/H3/index.js | ReelTalkers/reeltalk-web | import React from 'react'
function H3(props) {
return (
<h3 { ...props } />
)
}
export default H3
|
MobileApp/node_modules/react-native-elements/src/checkbox/CheckBox.js | VowelWeb/CoinTradePros.com | import PropTypes from 'prop-types';
import React from 'react';
import {
StyleSheet,
TouchableOpacity,
View,
Platform,
Text as NativeText,
} from 'react-native';
import TextElement from '../text/Text';
import fonts from '../config/fonts';
import colors from '../config/colors';
import FAIcon from 'react-native-... |
ui/src/containers/municipalities-grid/index.js | indraneel/sustainability-dashboard | import React, { Component } from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import style from './municipalities-grid.style.js';
import MunicipalitiesGridTile from '../../components/municipalities-grid-tile';
import CategoryMapper from '../../constants/category-map';
import {LoadingIndicator} fro... |
src/esm/components/graphics/icons/envelope-icon/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var EnvelopeIcon = function EnvelopeIcon(_ref) {
var color =... |
common/containers/ArticleBrowser/ArticleBrowser.js | kherrick/postpress | import { connect } from 'react-redux'
import { getArticles } from '../../actions/creators/articleBrowser/thunks/articleBrowser'
import Article from './Article'
import config from '../../../config/config'
import InfiniteScroll from 'react-infinite-scroller'
import PropTypes from 'prop-types'
import React from 'react'
c... |
src/Parser/Mage/Frost/Modules/Features/WintersChill.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import EnemyInstances from 'Parser/Core/Modules/EnemyInstances';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
impor... |
src/index.js | rmoliva/bacon_react_pet | /* import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
*/
// Render the main component into the dom
// ReactDOM.render(<App />, document.getElementById('app'));
import React from 'react';
import ReactDOM from 'react-dom';
import ToDo from... |
src/Interpolate.js | pandoraui/react-bootstrap | // https://www.npmjs.org/package/react-interpolate-component
// TODO: Drop this in favor of es6 string interpolation
import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
const REGEXP = /\%\((.+?)\)s/;
const Interpolate = React.createClass({
displayName: 'Interpolate',
... |
src/components/Root.js | qkevinto/kevinto.me | import React from 'react';
import { root } from './Root.module.scss';
import About from '../components/About';
import SocialActivities from '../components/SocialActivities';
export default class Root extends React.Component {
render() {
return (
<div className={root}>
<About></About>
<Soci... |
src/components/video_list.js | IanY57/ReduxSimpleStarter | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return(
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video}
... |
src/BootstrapMixin.js | insionng/react-bootstrap | import React from 'react';
import styleMaps from './styleMaps';
import CustomPropTypes from './utils/CustomPropTypes';
const BootstrapMixin = {
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: CustomPropTypes.keyOf(styleMaps.CLASSES),
/**
* Style variants
* @type {("... |
front_end/src/pages/Reporting/Reporting-Reports.js | oyiptong/splice | import React from 'react';
import {connect} from 'react-redux';
import moment from 'moment';
import Select from 'react-select';
import {Table} from 'react-tabular';
import {fetchCampaigns, fetchCampaign, campaignSetFilter} from 'actions/Campaigns/CampaignActions';
import {fetchAccounts} from 'actions/Accounts/Account... |
packages/icons/src/md/action/ViewModule.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdViewModule(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M7 23h10V11H7v12zm0 14h10V25H7v12zm12 0h10V25H19v12zm12 0h10V25H31v12zM19 23h10V11H19v12zm12-12v12h10V11H31z" />
</IconBase>
);
}
export de... |
site/src/components/ExampleColumnGroupsNoHeader.js | pbeshai/react-taco-table | import React from 'react';
import { TacoTable, DataType, SortDirection, Formatters } from 'react-taco-table';
import cellLinesData from '../data/cell_lines.json';
/**
* An example demonstrating how to use column groups without headers
*/
const columns = [
{
id: 'name',
value: rowData => rowData.cellLine,
... |
app/javascript/mastodon/features/status/components/action_bar.js | ikuradon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import IconButton from '../../../components/icon_button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMess... |
src/containers/icons.js | BryceKrah/Portfolio | import React, { Component } from 'react';
import Nav from './nav_bar';
export default class Icons extends Component {
render() {
return (
<div className="icon-container">
<a href="//github.com/brycekrah"><div className="icon-image icon-github"></div></a>
<a href="//linkedin.com/in/bry... |
webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionTypeFormatter.js | cfouant/katello | import React from 'react';
import { Link } from 'react-router-dom';
import helpers from '../../../../move_to_foreman/common/helpers';
export const subscriptionTypeFormatter = (value, { rowData }) => {
let cellContent;
if (rowData.virt_only === false) {
cellContent = __('Physical');
} else if (rowData.hyperv... |
docs/src/app/index.js | ButuzGOL/constructor | require('./assets/styles/main.less');
import React from 'react';
import Router from 'react-router';
import routes from './routes';
window.React = React;
Router.run(routes, (Handler) => {
React.render(<Handler />, document.body);
});
|
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/NavItem.js | GoogleCloudPlatform/prometheus-engine | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["className", "cssModule", "active", "tag"];
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';... |
src/js/admin/articles/filters/state-filter/state-filter.js | ucev/blog | import React from 'react'
import { connect } from 'react-redux'
import FilterSelect from '../filter-select'
const STATE_OPTIONS = [
{ value: '-1', title: '全部' },
{ value: 'on', title: '已上线' },
{ value: 'off', title: '已下线' },
]
const StateFilter = ({ value }) => (
<FilterSelect
key="state"
title="stat... |
src/svg-icons/communication/present-to-all.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPresentToAll = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h18c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 16.02H3V4.98h18v14.04zM10 12H8l4-4 4 4h-2v4h-4v-4z"/... |
src/components/Post/Meta/Meta.js | bapti/blog | // @flow strict
import React from 'react';
import moment from 'moment';
import styles from './Meta.module.scss';
type Props = {
date: string
};
const Meta = ({ date }: Props) => (
<div className={styles['meta']}>
<p className={styles['meta__date']}>Published {moment(date).format('D MMM YYYY')}</p>
</div>
);... |
definitions/npm/styled-components_v2.x.x/flow_v0.53.x-/test_styled-components_native_v2.x.x.js | davidohayon669/flow-typed | // @flow
import nativeStyled, {
ThemeProvider as NativeThemeProvider,
withTheme as nativeWithTheme,
keyframes as nativeKeyframes,
} from 'styled-components/native'
import React from 'react'
import type {
Theme as NativeTheme,
Interpolation as NativeInterpolation,
ReactComponentFunctional as NativeReactCompo... |
stories/modal/modal.js | JerryBerton/dh-component | import React from 'react';
import { Modal, Button, Menu, Dropdown, Form, Input } from '../../src';
class ModalDemo extends React.Component {
constructor(props) {
super(props);
this.state = {
visible: false,
visibleForm: false
};
this.handleClick = this.handleClick.bind(this);
}
handleC... |
example/examples/SetNativePropsOverlays.js | j0ergo/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
TouchableOpacity,
Dimensions,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LA... |
packages/material-ui-icons/src/PictureInPictureAlt.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PictureInPictureAlt = props =>
<SvgIcon {...props}>
<path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z" />
</SvgIco... |
app/components/RButton.js | qinfuji/vpt | import React from 'react';
import styles from '../styles/button.less';
import classnames from 'classnames';
export default class RButton extends React.Component {
componentWillUnmount(){
let {remove , id} = this.props;
remove(id);
}
clickHandle(e){
this.props.onClick(e);
}
... |
app/containers/Spa/SpaReport/index.js | vollmerr/app-hub | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { compose } from 'redux';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import { createStructuredSelector } from 'reselect';
import { SelectionMode } from 'office-ui-fabric-r... |
app/index.js | cargillj/WavForm | // @flow
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import configureStore from './store/configureStore';
import './app... |
src/svg-icons/file/cloud-queue.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudQueue = (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.9... |
src/appShell/DevTools/DevTools.js | cBioPortal/cbioportal-frontend | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-q"
default... |
still/src/components/Pages/About.js | marktheshark13/Stillwaters-farm | import React, { Component } from 'react';
class About extends Component {
render() {
return (
<div>
<h1>About Under Construction :(</h1>
<img src='http://i.imgur.com/1jgeOUe.gif' alt="Yolo" />
</div>
);
}
}
export default About; |
packages/icons/src/services.js | geek/joyent-portal | import React from 'react';
import Rotate from './rotate';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
direction = 'down',
colors = {},
style = {},
...rest
}) => (
<Rotate direction={direction}>
{({ style: rotateStyle }) => (
<svg
wid... |
src/components/Carousel/Slide/Slide.js | easingthemes/notamagic | import React from 'react';
import FeIcons from 'components/FeIcons';
import SlideCaption from '../SlideCaption/SlideCaption';
export const Slide = (props) => {
let style = ' item carousel-img ';
if (props.index === props.initialSlideIndex) {
style = 'active ' + style;
}
return (
<div className={style} style={{... |
_theme/template/Menu/SideMenu.js | ElemeFE/react-amap | import React from 'react';
import ComponentsMenu from './ComponentsMenu';
import ArticlesMenu from './ArticlesMenu';
export default class SideMenu extends React.Component {
constructor() {
super();
this.changeMenuLayout = this.changeMenuLayout.bind(this);
this.state = {
mode: 'inline'
};
}
... |
fixtures/dom/src/components/fixtures/input-change-events/RadioGroupFixture.js | pyitphyoaung/react | import React from 'react';
import Fixture from '../../Fixture';
class RadioGroupFixture extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
changeCount: 0,
};
}
handleChange = () => {
this.setState(({changeCount}) => {
return {
chan... |
browser/app/js/components/SideBar.js | dutchcoders/minio | /*
* Minio Cloud Storage (C) 2016 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
src/manager/provider.js | uk-ar/react-native-storybook | import React from 'react';
import { Provider } from '@kadira/storybook-ui';
import createChannel from '@kadira/storybook-channel-websocket';
import addons from '@kadira/storybook-addons';
export default class ReactProvider extends Provider {
constructor({ url }) {
super();
this.selection = null;
this.cha... |
src/components/grid_news/grid_news.js | AvaKathrynShaw/My-React-Material-Dashboard | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
},
gridLi... |
docs/app/Examples/elements/Image/Usage/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 ImageUsageExamples = () => (
<ExampleSection title='Usage'>
<ComponentExample
title='Children'
description='An ... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/FormGroup.js | GoogleCloudPlatform/prometheus-engine | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["className", "cssModule", "row", "disabled", "check", "inline", "tag"];
import React from 'react';
import PropTypes from 'prop-types';
import c... |
src/svg-icons/communication/stop-screen-share.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStopScreenShare = (props) => (
<SvgIcon {...props}>
<path d="M21.22 18.02l2 2H24v-2h-2.78zm.77-2l.01-10c0-1.11-.9-2-2-2H7.22l5.23 5.23c.18-.04.36-.07.55-.1V7.02l4 3.73-1.58 1.47 5.54 5.54c.61-.33 1... |
app/core/constants.js | hbibkrim/neon-wallet | // @flow
import React from 'react'
import tokenList from './tokenList.json'
import nodesMainNet from './nodes-main-net.json'
import nodesTestNet from './nodes-test-net.json'
import England from '../assets/flags/united-kingdom.svg'
import China from '../assets/flags/china.svg'
import France from '../assets/flags/france... |
src/react/JSONTree/grab-node.js | rrrene/redux-devtools | import React from 'react';
import objType from './obj-type';
import JSONObjectNode from './JSONObjectNode';
import JSONArrayNode from './JSONArrayNode';
import JSONStringNode from './JSONStringNode';
import JSONNumberNode from './JSONNumberNode';
import JSONBooleanNode from './JSONBooleanNode';
import JSONNullNode from... |
app/components/FABs/FABs.js | k19862217/LogicGame | import React, { Component } from 'react';
import { Container, Content, Button, Icon, Fab, View } from 'native-base';
export default class FABs extends Component {
constructor(...args) {
super(...args);
this.state = {
active: false
};
}
render() {
return (
... |
app/javascript/mastodon/features/ui/components/media_modal.js | KnzkDev/mastodon | import React from 'react';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ExtendedVideoPlayer from 'mastodon/components/extended_video_player';
import classNames ... |
src/components/summaryTeamComponent/summaryTeamComponent.js | craigbilner/quizapp | 'use strict';
import React from 'react';
import radium from 'radium';
import style from '../summaryTeamComponent/summaryTeamStyle';
class SummaryTeamComponent extends React.Component {
constructor(props) {
super(props);
}
render() {
const compStyle = [
this.props.baseStyles.layout.columns,
... |
app/javascript/mastodon/features/community_timeline/index.js | tateisu/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader fro... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/ListGroupItemText.js | GoogleCloudPlatform/prometheus-engine | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["className", "cssModule", "tag"];
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { ... |
demo/index.js | tangjinzhou/css-flat-loader | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(
<App/>,
document.body.appendChild(document.createElement('div'))
);
|
index.android.js | zhongzhu/aizengshu | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class aizengshu extends Component {
render() {
return (
<View style={styles.container}>
<Tex... |
react/features/always-on-top/VideoMuteButton.js | gpolitis/jitsi-meet | // @flow
import React, { Component } from 'react';
// We need to reference these files directly to avoid loading things that are not available
// in this environment (e.g. JitsiMeetJS or interfaceConfig)
import { IconCameraEmpty, IconCameraEmptyDisabled } from '../base/icons';
import type { Props } from '../base/toolb... |
src/js/components/modules/ui/Slider.js | at-ishikawa/paintlive | import React from 'react';
import style from "modules/ui/slider";
class Slider extends React.Component {
render() {
const { className, children, ...props } = { ...this.props };
return (
<input className={ style.slider + " " + className } type="range" { ...props }>
{ children }
</input>
... |
examples/huge-apps/routes/Course/components/Nav.js | iest/react-router | import React from 'react';
import { Link } from 'react-router';
import AnnouncementsRoute from '../routes/Announcements';
import AssignmentsRoute from '../routes/Assignments';
import GradesRoute from '../routes/Grades';
const styles = {};
styles.nav = {
borderBottom: '1px solid #aaa'
};
styles.link = {
display: ... |
src/routes/app/routes/xdashboard/components/EngagementStats.js | ahthamrin/kbri-admin2 | import React from 'react';
import ReactEcharts from 'components/ReactECharts';
import CHARTCONFIG from 'constants/ChartConfig';
// Engagment pie charts
const labelTop = {
normal: {
show: true,
position: 'center',
formatter: '{b}',
textStyle: {
color: 'rgba(0,0,0,.54)',
baseline: 'bottom',... |
src/pages/HomePage.js | ucladevx/website | import React from 'react'
import styled from 'styled-components'
import { homeCopy } from '../config'
import { colors } from '../styles'
import Col from '../components/Col'
import Text from '../components/Text'
import Section from '../components/Section'
import Hero from '../components/Hero'
const WhatIsDevXContainer... |
ajax/libs/react-instantsearch/4.1.0-beta.5/Dom.js | wout/cdnjs | /*! ReactInstantSearch 4.1.0-beta.5 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
tests/lib/rules/indent.js | sankha93/eslint | /**
* @fileoverview This option sets a specific tab width for your code
* @author Dmitriy Shekhovtsov
* @author Gyandeep Singh
* @copyright 2014 Dmitriy Shekhovtsov. All rights reserved.
* @copyright 2015 Gyandeep Singh. All rights reserved.
*/
"use strict";
//----------------------------------------------------... |
src/components/Button.js | spcoder/movietrivia | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import './Button.css';
class Button extends Component {
render() {
return (
<Link className="Button" {...this.props}>
{this.props.children}
</Link>
);
}
}
export default Button;
|
code/schritte/3-remote/src/main.js | st-he/react-workshop | // polyfill for IE
require('es6-promise').polyfill();
require('whatwg-fetch');
import React from 'react';
import ReactDOM from 'react-dom';
import GreetingController from './GreetingController';
const mountNode = document.getElementById('mount');
ReactDOM.render(<GreetingController />, mountNode);
|
src/svg-icons/maps/local-hotel.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsLocalHotel = pu... |
src/app/application.js | huytrongnguyen/extension-react | import React from 'react';
import { render } from 'react-dom';
import Ext from '~/core/ext';
import StoreManager from '~/data/store-manager';
export default config => Viewport => {
(config && config.stores) && Ext.List(config.stores).each(store => {
store = store.default;
StoreManager.set(store.storeId, stor... |
src/svg-icons/action/lock.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLock = (props) => (
<SvgIcon {...props}>
<path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.... |
frontend/src/System/Logs/Files/LogFilesConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import * as commandNames from 'Commands/commandNames';
import { executeCommand } from 'Store/Actions/commandActions';
import { fetchLogFiles } from 'Store/Actio... |
app/components/game/spectatorBoard.js | erisalke/react-playground | import React from 'react';
import _ from 'lodash';
const TicTacToeBoard = (props) => {
const sortedPlayers = _.sortBy(props.players, [ o => o.name ]);
return (
<div className = 'boardX'>
{
props.board.map((tile,i) => {
var classVariant = ["cell"]
if (i === 1 || i === 4 || i === 7) {
classVariant... |
src/index.js | lamjwe/book-list-redux | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
frontend/src/components/profile/ban-details.js | 1905410/Misago | import moment from 'moment';
import React from 'react';
import PanelLoader from 'misago/components/panel-loader'; // jshint ignore:line
import PanelMessage from 'misago/components/panel-message'; // jshint ignore:line
import misago from 'misago/index';
import polls from 'misago/services/polls';
import title from 'misag... |
src/main.js | vladimir-ivanov/react-webpack-es6-flux-sample | import React from 'react';
import ReactDOM from 'react-dom';
import {CommentBox} from './CommentsBox';
ReactDOM.render(
<CommentBox />,
document.getElementById('content')
); |
modules/IndexLink.js | cold-brew-coding/react-router | import React from 'react'
import Link from './Link'
const IndexLink = React.createClass({
render() {
return <Link {...this.props} onlyActiveOnIndex={true} />
}
})
export default IndexLink
|
src/containers/detail/index.js | qinshou/chakra | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import Panel from '../../components/panel'
import { updateDetailVisible, updateBreakpointEditVisible } from '../../actions'
const Detail = ({ visible, data, updateDetailVisible, updateBreakpointEditVisible }) => ... |
node_modules/rc-pagination/es/Pager.js | wiflsnmo/react_study2 | import React from 'react';
import PropTypes from 'prop-types';
var Pager = function Pager(props) {
var prefixCls = props.rootPrefixCls + '-item';
var cls = prefixCls + ' ' + prefixCls + '-' + props.page;
if (props.active) {
cls = cls + ' ' + prefixCls + '-active';
}
if (props.className) {
cls = cls... |
clients/components/DocSearch/Components/AddonCategory.js | CalderaWP/Caldera-Forms | import axios from 'axios';
import React from 'react';
import { FormGroup } from 'react-bootstrap';
import { Catdera } from '../../Catdera/Catdera';
import { Category } from "./Category";
import { cacheAdapterEnhancer } from 'axios-extensions';
export class AddonCategory extends React.Component {
constructor(props)... |
react-router-tutorial/lessons/09-index-links/modules/Home.js | zerotung/practices-and-notes | import React from 'react'
export default React.createClass({
render() {
return <div>Home</div>
}
})
|
code/workspaces/web-app/src/components/app/AdminSideBar.js | NERC-CEH/datalab | import { withStyles } from '@material-ui/core/styles';
import List from '@material-ui/core/List';
import PropTypes from 'prop-types';
import React from 'react';
import SideBarGroup from './SideBarGroup';
import SideBarButton from './SideBarButton';
import sideBarStyles from './sideBarStyles';
const AdminSideBar = ({ c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.