path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
frontend/src/components/username-history/root.js | 1905410/Misago | import React from 'react';
import ListEmpty from 'misago/components/username-history/list-empty'; // jshint ignore:line
import ListReady from 'misago/components/username-history/list-ready'; // jshint ignore:line
import ListPreview from 'misago/components/username-history/list-preview'; // jshint ignore:line
export de... |
examples/CardSimple.js | 15lyfromsaturn/react-materialize | import React from 'react';
import Card from '../src/Card';
import Col from '../src/Col';
export default
<Col m={6} s={12}>
<Card className='blue-grey darken-1' textClassName='white-text' title='Card title' actions={[<a href='#'>This is a link</a>]}>
I am a very simple card.
</Card>
</Col>;
|
src/svg-icons/action/hourglass-full.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHourglassFull = (props) => (
<SvgIcon {...props}>
<path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"/>
</SvgIcon>
);
ActionHourglassFull = pure(ActionHour... |
frontend/src/Settings/Metadata/Metadata/Metadata.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Card from 'Components/Card';
import Label from 'Components/Label';
import { kinds } from 'Helpers/Props';
import EditMetadataModalConnector from './EditMetadataModalConnector';
import styles from './Metadata.css';
class Metadata exten... |
src/icons/ConnectionBars.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class ConnectionBars extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<rect x="80" y="352" width="64" height="64"></rect>
<rect x="176" y="288" width="64" height="128"></rect>
<rect x="2... |
client/components/popover/AdminCreateBasisForm.js | slantz/slasti-od-ua | import React from 'react'
import { Field, reduxForm } from 'redux-form'
import {connect} from 'react-redux'
import * as InputWithValidation from '../elements/InputWithValidation'
import * as UTIL from '../../util/util'
import { RaisedButton } from "material-ui";
import { ru_RU } from "../../constants/Translations";
le... |
src/svg-icons/action/perm-media.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermMedia = (props) => (
<SvgIcon {...props}>
<path d="M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 15l4.5-6 3.5 ... |
example1/toilet/ios_views/read/category.js | anchoretics/ztf-work-app | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ScrollView,
Image,
TouchableOpacity
} from 'react-native';
import Util from './../util';
import List from './list';
class Category extends Component{
constructor(props){
super(props);
this.state = {
data: this.pro... |
src/svg-icons/device/devices.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceDevices = (props) => (
<SvgIcon {...props}>
<path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/>
</Sv... |
src/dumb/block_graph/ReadonlyBlockGraph.js | jeckhummer/wf-constructor | import React from 'react';
import {WORKFLOW_GRID} from "../../styles";
import {ReadonlyArrowBlock} from "./ReadonlyArrowBlock";
import {Grid} from '../common/Grid';
import * as _ from "lodash";
import {ReadonlyTaskBlock} from "./ReadonlyTaskBlock";
import {EmptyBlockStub} from "./EmptyBlockStub";
export const Readonly... |
templates/rubix/rubix-bootstrap/src/Alert.js | jeffthemaximum/jeffline | import React from 'react';
import BAlert from 'react-bootstrap/lib/Alert';
export default class Alert extends React.Component {
static propTypes = {
success: React.PropTypes.bool,
info: React.PropTypes.bool,
warning: React.PropTypes.bool,
danger: React.PropTypes.bool,
dismissible: React.PropTypes... |
src/CrudRoute.js | RestUI/rest-ui | import React from 'react';
import { IndexRoute, Route } from 'react-router';
import { createRoutesFromReactChildren } from 'react-router/lib/RouteUtils';
import pure from 'recompose/pure';
const CrudRoute = () => <div><CrudRoute> elements are for configuration only and should not be rendered</div>;
CrudRoute.cr... |
app/javascript/mastodon/features/ui/components/column_loading.js | tri-star/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Column from '../../../components/column';
import ColumnHeader from '../../../components/column_header';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class ColumnLoading extends ImmutablePureComponent {
stat... |
classic/src/scenes/wbui/TooltipSectionListItem.js | wavebox/waveboxapp | import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import { withStyles } from '@material-ui/core/styles'
import classNames from 'classnames'
import { ListItem } from '@material-ui/core'
import ThemeTools from 'wbui/Themes/ThemeTools'
const styles = (theme) => ({
root: {
paddingTo... |
app/components/component.js | mac10688/react-webpack-cookbook | import './MyComponent.css';
import './LessComponent.less';
import React from 'react';
export default class Hello extends React.Component {
render() {
return (
<div className="MyComponent-wrapper box">
<h1>Hello world!!</h1>
</div>
)
}
} |
src/js/components/text.js | frig-js/frigging-bootstrap | import React from 'react'
import cx from 'classnames'
import InputErrorList from './input_error_list'
import Saved from './saved'
import Label from './label'
import { sizeClassNames, formGroupCx } from '../util.js'
import defaultProps from '../default_props.js'
import defaultPropTypes from '../default_prop_types.js'
... |
pootle/static/js/editor/components/SuggestionFeedbackForm.js | phlax/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import _ from 'underscore';
import React from 'react';
im... |
pages/contact.js | peterqiu1997/irc | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import { config } from 'config';
import { Link } from 'react-router';
import { prefixLink } from 'gatsby-helpers';
import FontAwesome from 'react-fontawesome';
export default class Contact extends Component {
render () {
return (
... |
src/route.js | CRwming/cnode-webapp | /**
* Created by ming on 2017/3/24
*/
import React from 'react';
import {Route, IndexRoute} from 'react-router';
import App from './App';
/*
* 代码分拆
* */
const homeScreen = (location, cb) => {
require.ensure([], require => {
cb(null, require('./containers/HomePage').default);
}, 'HomeScreen');
};... |
src/svg-icons/image/crop-landscape.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropLandscape = (props) => (
<SvgIcon {...props}>
<path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/>
</SvgIcon>
);
ImageCropLandscape = pure(ImageCro... |
packages/react-dom/src/server/ReactPartialRenderer.js | silvestrijonathan/react | /**
* Copyright (c) 2013-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.
*
* @flow
*/
import type {ReactElement} from 'shared/ReactElementType';
import React from 'react';
import emptyFunction from 'fbjs/lib/e... |
src/decorators/withViewport.js | piscis/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
node_modules/semantic-ui-react/dist/es/collections/Form/FormGroup.js | mowbell/clickdelivery-fed-test | import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';
import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useWidthProp } ... |
assets/jqwidgets/demos/react/app/grid/everpresentrowwithcustomwidgets/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxDateTimeInput from '../../../jqwidgets-react/react_jqxdatetimeinput.js';
import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js';
import JqxInput from '../../.... |
src/components/buttons/Button.js | edu-affiliates/promo_calculators | 'use strict';
import React from 'react';
import {connect} from 'react-redux'
import generalOptions from '../../config/generalOptions'
class Button extends React.Component {
constructor(props) {
super(props);
}
redirectTo() {
const {type, service, serviceId, levelId, deadlineId, serviceN... |
app/javascript/mastodon/components/poll.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import Motion fr... |
test/integration/image-component/default/pages/layout-fill.js | azukaru/next.js | import React from 'react'
import Image from 'next/image'
const Page = () => {
return (
<div>
<p>Layout Fill</p>
<div style={{ position: 'relative', width: '600px', height: '350px' }}>
<Image id="fill1" src="/wide.png" layout="fill" />
</div>
<p>Layout Fill</p>
<div style={{ ... |
modules/frontend/src/js/components/containers/Application.js | fleximaps/fleximaps | import styles from './Application.css';
import Header from '../widgets/Header';
import CSSModules from 'react-css-modules';
import React from 'react';
export default CSSModules(class Application extends React.Component {
render() {
return (
<div styleName='application'>
<Heade... |
frontend/component/Footer.js | ghkk/node_dataguru | import React from 'react';
const footerStyle = {
marginTop: 50,
padding: 20,
};
export default class Footer extends React.Component {
render() {
return (
<div className="text-center" style={footerStyle}>
© CopyRight Node.js hank guo
</div>
);
... |
src/Splicer.js | chenzihui/react-splicer | 'use strict';
import React from 'react';
import SplicerList from './SplicerList';
const KEYS = {
ENTER: 13,
ESC: 27,
DOWN: 40,
UP: 38
};
class Splicer extends React.Component {
constructor(props) {
super(props);
this.state = { selectables: [], selectedIndex: 0 };
this._insertSelected = this._... |
packages/ringcentral-widgets-docs/src/app/pages/Components/CallCtrlPanel/Demo.js | u9520107/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import CallCtrlPanel from 'ringcentral-widgets/components/CallCtrlPanel';
const props = {};
props.nameMatches = [];
props.fallBackName = 'test string';
props.currentLocale = 'en-US';
props.recordStatus = 'test string';
props.onMute = () => null;
props.onUnmute = (... |
src/store.js | batazor/labelMap | import React from 'react'
import { createStore, combineReducers, compose, applyMiddleware } from 'redux'
import * as reducers from './reducers'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
import { routerRedu... |
example/WithSize.js | wuct/react-dom-utils | import React from 'react'
import throttle from 'raf-throttle'
import withSize from '../src/withSize'
const style = {
width: '100%',
height: 100,
backgroundColor: '#7E94C7',
}
const component = ({ DOMSize }) =>
(<div style={style}>
<span>
{JSON.stringify(DOMSize)}
</span>
</div>)
export defaul... |
app/ListScene.js | dalmago/thatThing |
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
ScrollView,
ActivityIndicator,
Alert,
TouchableOpacity,
} from 'react-native'
import Icon from 'react-native-vector-icons/FontAwesome';
export class ListScene extends Component {
constructor(props){
super(props);
... |
docs/src/IntroductionPage.js | RichardLitt/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const IntroductionPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="introduction" />
<... |
packages/netlify-cms-editor-component-image/src/index.js | netlify/netlify-cms | import React from 'react';
const image = {
label: 'Image',
id: 'image',
fromBlock: match =>
match && {
image: match[2],
alt: match[1],
title: match[4],
},
toBlock: ({ alt, image, title }) =>
`}"` : ''})`,
// ... |
app/javascript/mastodon/components/dropdown_menu.js | anon5r/mastonon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from './icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../features/ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
imp... |
app/javascript/mastodon/components/status_list.js | Craftodon/Craftodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import StatusContainer from '../containers/status_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ScrollableList from './scrollable_list';
export default cl... |
assets/javascripts/kitten/karl/pages/pre-deposit/components/triptych/solutions-triptych.js | KissKissBankBank/kitten | import React from 'react'
import { Container, Grid, GridCol, Title, Triptych, COLORS } from 'kitten'
import { CardWithButton } from './card-with-button'
const SolutionsTriptych = () => (
<div className="k-u-margin-top-octuple k-u-margin-top-decuple@l-up">
<Container>
<Grid>
<GridCol
col-l... |
src/shared/components/Shared/HeartToggle.js | Grace951/ReactAU | import React from 'react';
class HeartToggle extends React.Component{
constructor(props) {
super(props);
this.state ={
select: props.init
};
this.handleClick = this.handleClick.bind(this);
}
handleClick(evt){
let nSelect = !this.state.select;
this.setState((state, props) => { return { select: nSelect... |
web/src/components/IndexLayout.js | ZhuPeng/trackupdates | import React from 'react';
import style from './IndexLayout.css';
import * as jobitem from '../services/item';
import ItemList from './ItemList';
import { Layout, Menu, Icon, Select, BackTop } from 'antd';
const { Header, Sider, Content, Footer } = Layout;
const Option = Select.Option;
class IndexLayout extends React.... |
src/containers/Home/index.js | DiscipleD/react-redux-antd-starter | /**
* Created by jack on 16-9-6.
*/
import React from 'react';
import {push} from 'react-router-redux';
import {connect} from 'react-redux';
import {createSelector} from 'reselect';
import HeaderNav from 'components/HeaderNav';
import menuActions from 'actions/menu';
@connect(
state => ({
...state.menu,
curre... |
src/components/Main.js | Looooper/openclass-gallery | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
import ControllerUnit from './ControllerUnit';
import ImgFigure from './ImgFigure';
// 获取图片相关数据
let imageDatas = require('../data/imageData.json');
// 利用自执行函数,讲图片名称转换成路径信息
imageDatas = (... |
src/containers/app/index.js | eNdiD/wl_test_frontend | import React, { Component } from 'react';
import { Route, Switch, withRouter } from 'react-router';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as filmsListActions from '../../actions/films';
import * as actorsListActions from '../../actions/actors';
import 'bootstrap/d... |
app/javascript/mastodon/features/following/index.js | gol-cha/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import LoadingIndicator from '../../components/loading... |
javascript/canopy-listing/GridHeader.js | AppStateESS/carousel | 'use strict'
import React from 'react'
import PropTypes from 'prop-types'
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'
import {faCaretUp, faCaretDown} from '@fortawesome/free-solid-svg-icons'
const GridHeader = ({columns, sortFunction, sortIconTrack}) => {
const th = columns.map((value, key) => {
... |
src/components_back20170707/components/message-box/index.js | MeteDesign/MeteDesign | import React from 'react';
import ReactDOM from 'react-dom';
import MessageBox from './MessageBox';
function alert(message, title, props) {
if (typeof title === 'object') {
props = title;
}
props = Object.assign({ title, message,
modal: 'alert',
closeOnPressEscape: false,
closeOnClickModal: fal... |
src/routes/Post/components/Post.js | oliveirafabio/wut-blog | import React from 'react'
import { Field } from 'redux-form'
import RaisedButton from 'material-ui/RaisedButton'
import TextField from 'material-ui/TextField'
import classes from './Post.scss'
export const Post = (props) => {
const { handleSubmit, post } = props
return (
<div className={classes['Post']}>
... |
webapp/src/app/about/screen/About.js | cpollet/itinerants | import React from 'react';
class About extends React.Component {
render() {
return (
<div>
<a href="https://github.com/cpollet/itinerants">Fork me on github</a>
</div>
);
}
}
export default About;
|
src/containers/NhtsaApp/NhtsaApp.js | Zoomdata/nhtsa-dashboard-2.2 | import styles from './NhtsaApp.css';
import React from 'react';
import { connect } from 'react-redux';
import Overlay from '../../components/Overlay/Overlay';
import Dashboard from '../../components/Dashboard/Dashboard';
import { ButtonContainerContainer } from '../../containers/ButtonContainer/ButtonContainer';
impor... |
src/scenes/dashboard/messages/index.js | PowerlineApp/powerline-rn | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Content, Text, List, ListItem, Left, Body, Right, Thumbnail, Button, Icon } from 'native-base';
import {
TouchableOpacity,
View
} from 'react-native';
import ContentPlaceholder from '../../../components/ContentPlaceholder';
... |
analysis/druidferal/src/modules/spells/FerociousBiteEnergy.js | anom0ly/WoWAnalyzer | import { t } from '@lingui/macro';
import { formatNumber } from 'common/format';
import SPELLS from 'common/SPELLS';
import HIT_TYPES from 'game/HIT_TYPES';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import { SpellLink } from 'interface';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import E... |
react/features/base/media/components/native/VideoTransform.js | gpolitis/jitsi-meet | // @flow
import React, { Component } from 'react';
import { PanResponder, PixelRatio, View } from 'react-native';
import { type Dispatch } from 'redux';
import { connect } from '../../../redux';
import { storeVideoTransform } from '../../actions';
import styles from './styles';
/**
* The default/initial transform ... |
src/svg-icons/hardware/keyboard.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboard = (props) => (
<SvgIcon {...props}>
<path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v... |
shared/components/Main/Payment/Payment.js | KCPSoftware/KCPS-React-Starterkit | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { getPayment } from '../../../actions/orderActions';
import { Redirect } from 'react-router';
import { paymentStatus } from '../../../utils/enums/paymentStatus';
import Loading from '../../SubComponents/Loading';
import { updateMeet... |
fields/types/select/SelectColumn.js | michaelerobertsjr/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var SelectColumn = React.createClass({
displayName: 'SelectColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () ... |
frontend/src/Components/Form/CaptchaInputConnector.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { getCaptchaCookie, refreshCaptcha, resetCaptcha } from 'Store/Actions/captchaActions';
import CaptchaInput from './CaptchaInput';
function createMapSta... |
src/containers/TeamAbout/index.js | JohnPaulHarold/ReactExample | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import {
getTeamRequested
} from '../../logic/actions/';
import {TeamCrest} from '../../components/';
class TeamAbout extends Component {
componentWillMount() {
const {
match: {
pa... |
src/components/common/stat/HoverBar.js | tidepool-org/viz | import PropTypes from 'prop-types';
import React from 'react';
import { Bar, Rect } from 'victory';
import _ from 'lodash';
import colors from '../../../styles/colors.css';
export const HoverBar = props => {
const {
barSpacing,
barWidth,
chartLabelWidth,
cornerRadius,
domain,
index,
scal... |
components/Form/Star/Star.story.js | rdjpalmer/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, boolean } from '@storybook/addon-knobs';
import Star from './Star';
const stories = storiesOf('FormComponents', module);
stories.addDecorator(withKnobs);
stories.add('Star', () => (
<Star checked={ boolean('Checked', false)... |
docs/src/app/components/pages/components/Divider/ExampleForm.js | spiermar/material-ui | import React from 'react';
import Divider from 'material-ui/Divider';
import Paper from 'material-ui/Paper';
import TextField from 'material-ui/TextField';
const style = {
marginLeft: 20,
};
const DividerExampleForm = () => (
<Paper zDepth={2}>
<TextField hintText="First name" style={style} underlineShow={fal... |
app/js/index.js | mattiaslundberg/typer | import '../style/main.scss'
import React from 'react'
import ReactDOM from 'react-dom'
import App from './app'
ReactDOM.render(<App />, document.getElementById('root'))
|
docs/src/app/components/pages/components/FloatingActionButton/Page.js | spiermar/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 floatingButtonReadmeText from './README';
import floatingButtonExampleSim... |
src/components/DevTool/index.js | urfonline/frontend | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
const DevTools = createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-q"
defaultIsVisible={f... |
src/@ui/Chip/Chip.stories.js | NewSpring/Apollos | import React from 'react';
import { storiesOf } from '@storybook/react-native';
import FlexedView from '@ui/FlexedView';
import Chip from './';
storiesOf('Chip', module)
.add('default', () => (
<FlexedView style={{ flexWrap: 'wrap', flexDirection: 'row' }}>
<Chip
onPress={() => {}}
title=... |
assets/javascripts/kitten/components/form/checkbox-set/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import classNames from 'classnames'
import { Checkbox } from '../../form/checkbox'
import { pxToRem } from '../../../helpers/utils/typography'
import { Label } from '../../form/label'
const StyledCheckboxSet = styled.fi... |
app/javascript/mastodon/features/followers/index.js | corzntin/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import {
fetchAccount,
fetchFollowers,
expandFollowers,
} from '../../actions/account... |
src/js/components/icons/base/AccessAd.js | odedre/grommet-final | /**
* @description AccessAd SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @p... |
docs/src/pages/styles/basics/NestedStylesHook.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles({
root: {
color: 'red',
'& p': {
margin: 0,
color: 'green',
'& span': {
color: 'blue',
},
},
},
});
export default function NestedStylesHook() {
const classe... |
src/components/NotFound/NotFound.js | outlandishideas/kasia-boilerplate | /**
* # Not Found Container
*/
import React from 'react'
import { Link } from 'react-router'
import Helmet from 'react-helmet'
import styles from './NotFound.scss'
export default function NotFound () {
return (
<div className={styles.NotFound}>
<Helmet title='Not Found' />
<h2>Not Found</h2>
... |
src/components/Box/Overlay.js | falmar/react-adm-lte | import React from 'react'
const Overlay = () => {
return (
<div className='overlay'>
<i className='fa fa-refresh fa-spin' />
</div>
)
}
export default Overlay
|
src/components/overview.js | prexsa/m3specs | import React from 'react';
import { Card, Grid, Header, List } from 'semantic-ui-react';
import CarOption from './caroption';
const Overview = (props) => {
const options = props.equipment;
if(!options) {
return <div>Loading...</div>;
}
const equipment = options;
const modelName = equipment.name;
con... |
packages/react-error-overlay/src/components/ErrorOverlay.js | viankakrisna/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.
*/
/* @flow */
import React, { Component } from 'react';
import { black } from '../styles';
import type { Node as ReactNode } from 'react'... |
src/react.js | aaronjensen/redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, Connector, provide, connect } = createAll(React);
|
src/svg-icons/av/playlist-add.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAdd = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/>
</SvgIcon>
);
AvPlaylistAdd = pure(AvPlaylistAdd);
AvPlaylistAdd... |
app/components/listItem/App.js | Artur93gev/React-lists | import React from 'react';
import styles from './sass/app.scss';
import { connect } from 'react-redux';
import { addToList } from '../../actions/add';
import { removeFromList } from '../../actions/remove';
import { updateListItemValue } from '../../actions/update';
import { ITEMTYPES as itemTypes } from './constants/in... |
js/barber/HaircutDetails.js | BarberHour/barber-hour | import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
StatusBar,
Image,
ScrollView,
TouchableNativeFeedback,
Alert,
Platform,
ActivityIndicator
} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
import { connect } from 'react-redux';
import Butt... |
js/Login.js | mk007sg/threeSeaShells | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
AsyncStorage,
} from 'react-native';
//import {GoogleSignin, GoogleSigninButton} from 'react-native-google-signin';
import { Containe... |
chat/chat/YOChat.js | wph1129/react-native-chat | import React from 'react';
import {
Animated,
InteractionManager,
Platform,
StyleSheet,
View,
Text,
} from 'react-native';
import DismissKeyboard from 'react-native-dismiss-keyboard';
import moment from 'moment';
import Actions from './Actions';
import Avatar from './Avatar';
import Bubble from './Bubble'... |
.history/src/instacelebs_20171001003039.js | oded-soffrin/gkm_viewer |
import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack to load favicon.ico
import './styles/styles.scss'; // Yep, that's right. You can import SASS/CSS files too! Webpack will r... |
src/package/plugins/slate-grid-plugin/GridButton.js | abobwhite/slate-editor | import React from 'react'
import FontAwesome from 'react-fontawesome'
import classnames from 'classnames'
import { Button} from '../../components/button'
import { appendGrid, hasGrid } from './GridUtils'
const GridButton = ({ state, onChange, className, style, type }) => (
<Button
style={style}
type={type}... |
src/components/common/svg-icons/communication/call-end.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallEnd = (props) => (
<SvgIcon {...props}>
<path d="M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08c-.18-.17-.29-.... |
bear-api-koa/client/src/libs/component/index.js | thoughtbit/node-web-starter | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
class Component extends React.Component {
classNames(...args) {
return classnames(args);
}
className(...args) {
return this.classNames.apply(this, args.concat([this.props.className]));
}
style(args) ... |
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js | yangchaogit/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import CreateGroupActionCreators from 'actions/CreateGro... |
app/containers/NotFoundPage/index.js | gihrig/react-boilerplate-logic | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
export default function NotFound() {
return (
<article>
... |
admin/client/components/FooterBar.js | Tangcuyu/keystone | import React from 'react';
import blacklist from 'blacklist';
var FooterBar = React.createClass({
propTypes: {
style: React.PropTypes.object,
},
getDefaultProps () {
return {
style: {},
};
},
getInitialState () {
return {
position: 'relative',
width: 'auto',
height: 'auto',
top: 0,
};
},... |
frontend/jqwidgets/jqwidgets-react/react_jqxknob.js | yevgeny-sergeyev/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxKnob extends React.Component {
componentDidMount() {
let options = this.manageAtt... |
src/index.js | jackiechoi/redux_weather_app | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(... |
src/svg-icons/action/feedback.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFeedback = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/>
</SvgIcon>
);
ActionFeedback = pure(Acti... |
Veo/index.android.js | JGMorgan/Veo | 'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
Dimensions,
StyleSheet,
Text,
Vibration,
TouchableHighlight,
View
} from 'react-native';
import Camera from 'react-native-camera';
var pattern = [0, 500, 200, 500];
class Veo extends Component {
render() {
return (
... |
node_modules/react-native/local-cli/server/middleware/heapCapture/src/heapCapture.js | hpdmitriy/Bjj4All | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict... |
TestDemos/examples/BookExamples/XA-2-1.js | AzenXu/ReactNativeTest | /**
* Created by Azen on 16/8/31.
* 《RN跨平台移动应用开发代码2-1》
* 知识点:
* 1. 'use strict'
* 2. PixelRatio(记录逻辑像素的密度) 和 scale(记录缩放比例) 好像没啥区别
* 3. chrome调试 - console.log(打印普通的log信息) console.warn 打印醒目的console信息
*/
'use strict';
import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';... |
src/interface/common/Expandable.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import ReactTooltip from 'react-tooltip';
class Expandable extends React.PureComponent {
static propTypes = {
header: PropTypes.node.isRequired,
children: PropTypes.node.isRequired,
};
constructor() {
super();
this.state = {
ex... |
src/ButtonInput.js | Firfi/meteor-react-bootstrap | import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... |
frontend/src/cms/components/shared/CustomDatePicker/index.js | tsurupin/portfolio | import React, { Component } from 'react';
import DatePicker from 'material-ui/DatePicker';
export default class CustomDatePicker extends Component {
constructor(props) {
super(props);
}
onChange(e, date) {
if (this.props.onChange) {
this.props.onChange(date);
}
}
render() {
let props... |
src/svg-icons/communication/stay-current-landscape.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayCurrentLandscape = (props) => (
<SvgIcon {...props}>
<path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/>
</SvgIcon>
);
Communicat... |
tools/browser-runtime/src/component/Tile/Tile.js | kevoree/kevoree-js | import React from 'react';
import { Icon } from 'semantic-ui-react';
import './Tile.css';
export default class Tile extends React.Component {
changeState() {
if (this.props.instance.started) {
this.props.instance.submitScript(`stop ${this.props.instance.nodeName}.${this.props.instance.name}`);
} else... |
main.js | RickFrom1987/rickfrom1987.com | import 'whatwg-fetch';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import store from './core/store';
import router from './core/router';
import history from './core/history';
let routes = require('./routes.json'); // Loaded with utils/routes-loader.js
const con... |
components/Form/RadioGroup/RadioGroup.story.js | NGMarmaduke/bloom | import React from 'react';
import { storiesOf, action } from '@storybook/react';
import { withKnobs, number } from '@storybook/addon-knobs';
import RadioGroup from './RadioGroup';
const stories = storiesOf('FormComponents', module);
stories.addDecorator(withKnobs);
stories.add('RadioGroup', () => (
<RadioGroup
... |
src/Table.js | 15lyfromsaturn/react-materialize | import React from 'react';
import cx from 'classnames';
class Table extends React.Component {
render() {
let classes = {
centered: this.props.centered,
highlight: this.props.hoverable,
'responsive-table': this.props.responsive,
stripped: this.props.stripped,
bordered: this.props.bor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.