path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/App.js | zhaowenyi94/hey-spark | import React, { Component } from 'react';
import './App.css';
import IdeaPanel from "./IdeaPanel";
import LeaveIdea from "./LeaveIdea";
import TitleBar from "./title-bar/TitleBar";
class App extends Component {
render() {
return (
<div className="App">
<div><TitleBar/></div>
<div><Leav... |
app/javascript/src/components/conversations/EditorButtons.js | michelson/chaskiq | import React from 'react'
import ReactDOM from 'react-dom'
import {
model,
utils
} from 'Dante2'
const {addNewBlock, resetBlockWithType, getCurrentBlock} = model
const {
selection
} = utils
const {getSelection, getRelativeParent, getSelectionRect } = selection
import { InlinetooltipWrapper } from './tooltipM... |
examples/huge-apps/routes/Messages/components/Messages.js | etiennetremel/react-router | import React from 'react';
class Messages extends React.Component {
render () {
return (
<div>
<h2>Messages</h2>
</div>
);
}
}
export default Messages;
|
SettingsStorage.js | tugberka/tubi-weather | import React, { Component } from 'react';
import { AppRegistry, Text, View, AsyncStorage } from 'react-native';
// List of setting variables
var selectedLocation = 'Helsinki';
var gpsOn = 'false';
var metric = true;
var mapType = 'pressure'
var curLat = "60.2";
var curLong = "24.9";
class SettingsStorage {
static ... |
docs/src/sections/ButtonSection.js | apkiernan/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 ButtonSection() {
return (
<div className="bs-docs-section">
<h1 className="page-header">
<An... |
app/old/containers.v1/Main.js | Nakan4u/pokemons-finder | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { withRouter } from 'react-router-dom';
import {
AppRegistry,
ActivityIndicator,
Text,
StyleSheet,
TextInput,
TouchableHighlight,
TouchableOpacity,
View
} f... |
Demo/App.js | terrillo/rn-apple-healthkit | /**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
} from 'react-native';
import AppleHealthKit from 'rn-apple-healthkit';
const PERMS = AppleHea... |
src/mixins/style-propable.js | ntgn81/material-ui | import React from 'react';
import ImmutabilityHelper from '../utils/immutability-helper';
import Styles from '../utils/styles';
// This mixin isn't necessary and will be removed
/**
* @params:
* styles = Current styles.
* props = New style properties that will override the current style.
*/
export default {
p... |
app/javascript/mastodon/features/ui/components/column_loading.js | pso2club/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... |
analysis/paladinretribution/src/modules/features/AlwaysBeCasting.js | anom0ly/WoWAnalyzer | import { t } from '@lingui/macro';
import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import { SpellLink } from 'interface';
import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting';
import { STATISTIC_ORDER } from 'parser/ui/StatisticBox';
import React from 'react';
c... |
templates/rubix/rubix-bootstrap/src/SplitHoverButton.js | jeffthemaximum/jeffline | import React from 'react';
import RSplitButton from './RSplitButton';
import { DropdownHoverButtonHOC } from './DropdownButton';
@DropdownHoverButtonHOC
export default class SplitHoverButton extends React.Component {
render() {
return (
<RSplitButton open={this.props.open}
onToggle={th... |
frontend/src/components/chat/Chat.js | dimkarakostas/unimeet | import React, { Component } from 'react';
import {Topbar} from '../common';
import Chatbody from './body/Chatbody';
import './styles.css';
import * as config from '../config';
import axios from 'axios';
axios.defaults.withCredentials = true;
class Chat extends Component {
constructor(props) {
super(props)... |
src/pages/banner-iframe.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import Head from 'next/head';
import { FormattedMessage } from 'react-intl';
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import MembersWithData from '../components/MembersWithData';
import withData from '../lib/withData';
impor... |
maodou/customers/client/components/admin/customersList.js | ShannChiang/USzhejiang | import React, { Component } from 'react';
import {Link} from 'react-router';
import Loading from 'client/components/common/loading';
import moment from 'moment';
export default class CustomersList extends Component {
render() {
const { data, status } = this.props.customers;
return(
<div className="admi... |
src/js/components/icons/status/Warning.js | odedre/grommet-final | /**
* @description Warning SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} className
* @example
* <svg width="24" height="24" ><path d="M1,0 L1,6" fill="none""/></svg>
*/
// (C) Copyright 2014-2016 Hewlett Packard Ent... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-span.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import BaseMixin from '../common/base-mixin.js';
import ElementaryMixin from '../common/elementary-mixin.js';
import ContentMixin from '../common/content-mixin.js';
import './span.less';
export const Span = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMi... |
src/components/NavMenu/NavMenu.js | hack-duke/hackduke-dayof | import React from 'react';
import classes from './NavMenu.scss';
import { IndexLink } from 'react-router';
import { tabletBreakpoint, navMenuWidth } from 'constants/design';
import BottomPath from './bottom-path.svg';
class NavMenu extends React.Component {
constructor() {
super();
this.handleResize = th... |
clients/packages/admin-client/src/components/editor-wysihtml/wysihtml-toolbar.js | nossas/bonde-client | import PropTypes from 'prop-types'
import React from 'react'
import classnames from 'classnames'
import WYSIHTMLToolbarInsertImage from './wysihtml-toolbar-insert-image'
import WYSIHTMLToolbarInsertHTML from './wysihtml-toolbar-insert-html'
import WYSIHTMLToolbarCreateLink from './wysihtml-toolbar-create-link'
import ... |
src/Components/FormComponents.js | TaylorRayHoward/ReactReduxMessageBoard | import React from 'react';
export function renderInputField(field) {
return (
<input type="text" placeholder={`Enter a ${field.label}...`} {...field.input} className={field.class}/>
);
}
|
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-alert-bus.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import Environment from '../environment/environment.js';
import {BaseMixin, ElementaryMixin, CcrWriterMixin, Tools} from '../common/common.js';
import {FloatMixin} from '../layout/layout.js';
import Alert from './alert.js';
import './alert-bus.less';
export const AlertBus = React.createClas... |
fields/types/location/LocationColumn.js | jstockwin/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country'];
var LocationColumn = React.createClass({
displayName: 'LocationColumn',
propTypes: {
co... |
exercise-3/begin/client-conference-schedule/src/components/Chart/index.js | nanovazquez/nodeconf-isomorphic-workshop | import React from 'react';
import Chart from 'react-c3-component';
import 'c3/c3.css';
export default function SimpleLineChart() {
return (
<Chart
config={{
// Add your C3 config excluding bindto here
// http://c3js.org/reference.html
data: {
columns: [
['data1... |
app/javascript/mastodon/features/direct_timeline/components/conversation.js | hugogameiro/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContainer from '../../../containers/status_container';
export default class Conversation extends ImmutablePureComp... |
src/components/Main.js | heikkipesonen/sysart | require('normalize.css');
require('styles/App.scss');
require('ionicons/scss/ionicons.scss');
import React from 'react';
// import Mainmenu from './menu/Mainmenu.js';
import Slider from './slider/Slider';
import View from './View.js';
// import Footer from './Footer.js';
import ContentSection from './content/ContentSe... |
packages/react-server-website/components/Footer.js | doug-wade/react-server | import React from 'react';
import wireUpGitHubButton from '../lib/github-button';
import wireUpSlackinButton from '../lib/slackin-button';
import './Footer.less';
export default class Footer extends React.Component {
render() {
return (
<footer>
<p>
<small>
<a href="https://www.redfin.com/">Redfin... |
react/reactRedux/redux-master/examples/todos-with-undo/src/index.js | huxinmin/PracticeMakesPerfect | import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './components/App'
import reducer from './reducers'
const store = createStore(reducer)
render(
<Provider store={store}>
<App />
</Provider>,
document.getEle... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Checkbox.js | JamieMason/npm-cache-benchmark | 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 ... |
Realization/frontend/czechidm-core/src/content/role/RoleCatalogueRoleTable.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';
//
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import * as Utils from '../../utils';
import { RoleCatalogueRoleManager, RoleManager } ... |
src/components/MemeGrid/index.js | nextglory/x-auto-testing-react-mocha-webpack-a | 'use strict';
import React from 'react';
import { MemeGridTemplate } from './template';
import { findMemes } from '../../services/api';
export default class MemeGrid extends React.Component {
constructor(props) {
super(props);
this.refreshMemes = this.refreshMemes.bind(this);
this.state = {
... |
examples/huge-apps/components/GlobalNav.js | brenoc/react-router | import React from 'react'
import { Link } from 'react-router'
const dark = 'hsl(200, 20%, 20%)'
const light = '#fff'
const styles = {}
styles.wrapper = {
padding: '10px 20px',
overflow: 'hidden',
background: dark,
color: light
}
styles.link = {
padding: 11,
color: light,
fontWeight: 200
}
styles.activ... |
src/main.js | k2data/books-ui | import React from 'react'
import ReactDOM from 'react-dom'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { useRouterHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import createStore from './store/createStore'
import AppContainer from './containers/Ap... |
app/javascript/mastodon/features/follow_requests/components/account_authorize.js | d6rkaiz/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from '../../../components/permalink';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import IconButton from '../../../... |
admin-ui/src/components/Breadcrumb/Breadcrumb.js | sbender9/signalk-server-node | import React from 'react'
import { Route, Link } from 'react-router-dom'
import { Breadcrumb, BreadcrumbItem } from 'reactstrap'
import routes from '../../routes'
const findRouteName = url => routes[url]
const getPaths = pathname => {
const paths = ['/']
if (pathname === '/') return paths
pathname.split('/').... |
fluxible-router/components/Page.js | JonnyCheng/flux-examples | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import PageStore from '../stores/PageStore';
import { connectToStores } from 'fluxible-addons-react';
@connectToStores([PageStore], (context) => context.getSt... |
src/svg-icons/editor/format-italic.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatItalic = (props) => (
<SvgIcon {...props}>
<path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"/>
</SvgIcon>
);
EditorFormatItalic = pure(EditorFormatItalic);
EditorFormatItalic.displayName ... |
ajax/libs/react-instantsearch/3.2.0/Dom.js | nolsherry/cdnjs | /*! ReactInstantSearch 3.2.0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
examples/async/containers/Root.js | lightsinthesky/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
app/components/Icons/SwitchOnIcon.js | PeterEB/quick-demo-boilerplate | import React from 'react';
export default function (props) {
return (
<div style={{position: "absolute", top: "0", bottom: "0", left: "0", right: "0", margin: "auto", width: '60%', height: '60%'}}>
<svg style={props.style} fill={props.fill} height="100%" viewBox="0 0 24 24" width="100%" xmlns="... |
frontend/src/lib/mui-components/TextField/components/InputCursorCorrect.js | jf248/scrape-the-plate | /**
* Copied from material-ui. This is an internal component that isn't exported.
*/
import React from 'react';
import Textarea from './Textarea';
/**
* Wrapper around <input/> to stop cursor jumping to the end when a controlled
* component.
* @see: https://stackoverflow.com/a/35295650
*/
class InputCursorCor... |
app/view/popup.js | Yx3/Text-Logger | import React from 'react';
import ReactDOM from 'react-dom';
import App from './app-component';
window.onload = () => {
ReactDOM.render(<App />, document.getElementById('app'));
};
|
Veronica/Waundr/src/events.js | Waundr/Waundr.github.io |
import React, { Component } from 'react';
import { Provider, connect } from 'react-redux';
import MapView from 'react-native-maps';
import { events } from './data';
import { createStore, applyMiddleware } from 'redux';
import { apiMiddleware, reducer } from './redux';
import { MKButton, MKColor } from 'react-native-m... |
common/components/Time.js | ebertmi/webbox | /**
* @copyright 2015, Andrey Popp <8mayday@gmail.com>
*/
import deLocale from 'date-fns/locale/de';
import distanceInWordsToNow from 'date-fns/distance_in_words_to_now';
import format from 'date-fns/format';
import parse from 'date-fns/parse';
import isDate from 'date-fns/is_date';
import React from 'react';
import ... |
node_modules/react-bootstrap/es/Image.js | ProjectSunday/rooibus | 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 ... |
ajax/libs/react-instantsearch/3.3.2/Dom.js | sufuf3/cdnjs | /*! ReactInstantSearch 3.3.2 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
src/notebook/components/transforms/image.js | 0u812/nteract | /* @flow */
import React from 'react';
type TopProps = {
data: string,
mimetype: string,
metadata: any,
};
type ImageProps = {
data: string,
metadata: string,
}
export default function ImageDisplay(props: TopProps): ?React.Element<any> {
let size = {};
if (props.metadata) {
const { width, height }... |
src/routes/home/Home.js | ducthuan-2712/To-Do | /*
* @flow
*/
import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import { Helmet } from "react-helmet";
import { connect } from 'react-redux';
import _ from 'lodash';
import RenderTask from '../../components/RenderTask';
// Blocks
import Search from '../../blocks/Search';
/... |
app/javascript/mastodon/features/direct_timeline/components/column_settings.js | summoners-riftodon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import SettingText from '../../../components/setting_text';
const messages = defineMessages({
filter_regex: { id: 'home... |
src/svg-icons/maps/beenhere.js | pradel/material-ui | 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... |
node_modules/react-icons/md/remove-from-queue.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdRemoveFromQueue = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m26.6 16.6v3.4h-13.2v-3.4h13.2z m8.4 11.8v-20h-30v20h30z m0-23.4q1.3 0 2.3 1t1.1 2.4l-0.1 20q0 1.3-1 2.3t-2.3 0.9h-8.4v3.4h-13.2v-3.4h-8.4q-1.4 0-2.4-0.9t-1-2... |
src/components/video_detail.js | gurusewak/react101 | import React from 'react';
const VideoDetail = ({ video }) => {
if (!video) {
return (
<div>Loader....</div>
);
}
const videoId = video.id.videoId;
const url = `https://youtube.com/embed/${videoId}`;
return (
<div className="video-detail col-md-8">
<div classN... |
src/helpers/connectData.js | JohnKim/io.stalk.chat | import React, { Component } from 'react';
/*
Note:
When this decorator is used, it MUST be the first (outermost) decorator.
Otherwise, we cannot find and call the fetchData and fetchDataDeffered methods.
*/
export default function connectData(fetchData, fetchDataDeferred) {
return function wrapWithFetchDa... |
example/util/platformTouchable.js | travelbird/react-native-navigation | import React from 'react';
import PropTypes from 'prop-types';
import {
TouchableNativeFeedback,
View,
Platform,
} from 'react-native';
export const touchablePropTypes = {
children: PropTypes.element.isRequired,
disabled: PropTypes.bool,
onPress: PropTypes.func,
};
export const touchableDefaultProps = {
... |
docs/src/PageHeader.js | Cellule/react-bootstrap | import React from 'react';
const PageHeader = React.createClass({
render() {
return (
<div className='bs-docs-header' id='content'>
<div className='container'>
<h1>{this.props.title}</h1>
<p>{this.props.subTitle}</p>
</div>
</div>
);
}
});
export default Pag... |
plugins/react/frontend/components/controls/base/FlowObjectControl/index.js | pure-ui/styleguide | /**
* FlowObjectControl
*
* Renders an information field mentioning that this property can't be generated.
*/
import renderControls from '../../../../utils/renderControls';
import React from 'react';
import normalizeProps from './normalizeProps';
import randomValue from './randomValue';
import Row from '../../../f... |
mine-data/src/common/withTracking.js | BerlingskeMedia/nyhedsbreve | import React, { Component } from 'react';
import { pageview } from 'react-ga';
export const withTracking = WrapperComponent => {
if (window.location.host.includes('profil.berlingskemedia.dk')) {
return class WithTracking extends Component {
componentDidMount() {
pageview(window.location.pathname + ... |
app/index.ios.js | 1598692232/rn-xcf | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
// import App from './app'
// import App from './Homepage'
// import App from './demo/RefreshControlTest'
// import App from './demo/swiper'
// import App from './demo/animate2'
// import App from './demo/img'
import App from './r... |
showcase/plot/area-chart.js | Apercu/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
src/js/jobs/components/skills/graph/Dots.js | tpucci/jobads-webapp | import React from 'react';
export default class Dots extends React.Component {
render(){
let circles = this.props.data.map((d,i)=>{
return (
<g key={i} className="dot">
<circle r="7" cx={this.props.x(d.vector[0])} cy={this.props.y(d.vector[1])} fill="#7dc7f... |
react/reactRouter/modules/App.js | sabertazimi/st-proj | import React from 'react';
import NavLink from './NavLink';
export default React.createClass({
render() {
return (
<div>
<h1>React Router</ h1>
<ul role="nav">
<li><NavLink to="/" onlyActiveOnIndex={ true }>Home</ NavLink></ li>
<li><NavLink to="/re... |
dispatch/static/manager/src/js/components/PersonEditor/index.js | ubyssey/dispatch | import React from 'react'
import { connect } from 'react-redux'
import personsActions from '../../actions/PersonsActions'
import PersonForm from './PersonForm'
import ItemEditor from '../ItemEditor'
const TYPE = 'Person'
const TYPE_PLURAL = 'People'
const AFTER_DELETE = 'persons'
const mapStateToProps = (state) => ... |
src/svg-icons/action/settings-phone.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsPhone = (props) => (
<SvgIcon {...props}>
<path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-... |
packages/react-interactions/events/src/dom/Input.js | chenglou/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 {
ReactDOMResponderEvent,
ReactDOMResponderContext,
} from 'shared/ReactDOMTypes';
import React from ... |
app/index.js | RoadToGlobal/ClientDistro | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { AppContainer } from 'react-hot-loader';
import configureStore from './redux/store/configureStore';
import Root from ... |
src/components/util/Notification.js | ryanabragg/VanguardLARP | import React from 'react';
import PropTypes from 'prop-types';
class Notification extends React.Component {
constructor(props) {
super(props);
this.dismiss = this.dismiss.bind(this);
this.action = this.action.bind(this);
if(this.props.timeoutDuration > 0)
this.timeout = setTimeout(
th... |
src/components/Toolbar/Toolbar.js | daveham/ilgmrdx | import React from 'react';
import Navbar from 'react-bootstrap/lib/Navbar';
import Nav from 'react-bootstrap/lib/Nav';
import NavItem from 'react-bootstrap/lib/NavItem';
import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap';
export const Toolbar = () => {
return (
<Navbar>
<Nav>
... |
stories/components/form/formZipCode/index.js | tskuse/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import FormZipCode from 'shared/components/form/formZipCode/formZipCode';
storiesOf('shared/components/form/formZipCode', module)
.add('Default', () => (
<FormZipCode
label="Zip co... |
packages/flow-runtime-docs/src/components/TryPage.js | codemix/flow-runtime | /* @flow */
import React, { Component } from 'react';
import {observer} from 'mobx-react';
import CodeMirror from './CodeMirror';
import FakeConsole from './FakeConsole';
import Compiler from '../Compiler';
import fixtures from 'babel-plugin-flow-runtime/fixtures.json';
type Props = {};
const defaultExample = `
... |
src/svg-icons/notification/enhanced-encryption.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEnhancedEncryption = (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-2zM8.9 6c0-1.71 1.39-3.... |
src/components/video_list_item.js | zivolution921/ReduxSimpleStarter2 | import React from 'react';
const VideoListItem = ({video}) => {
//const video = props.video;
return (
<li className="list-group-item">
<div className="video-list media">
<div className="media-left">
<img className="media-object" />
</div>
<div className="media-body">
... |
WebpackProject/src/components/filters/Range.js | sauceSquatch/webpack-learning | import React, { Component } from 'react';
import Slider from 'react-input-range';
class Range extends Component {
onChange(component, values) {
const { input: { onChange } } = this.props;
onChange(values);
}
render() {
const { input: { value } } = this.props;
return (
<div className="ran... |
src/components/forging/delegateStats.js | LiskHQ/lisk-nano | import React from 'react';
import { Card, CardText } from 'react-toolbox/lib/card';
import CircularProgressbar from 'react-circular-progressbar';
import grid from 'flexboxgrid/dist/flexboxgrid.css';
import { translate } from 'react-i18next';
import style from './forging.css';
const identity = x => (x);
const addPercen... |
lib/components/MapCircle.js | j0ergo/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import {
ViewPropTypes,
} from 'react-native';
import decorateMapComponent, {
USES_DEFAULT_IMPLEMENTATION,
SUPPORTED,
} from './decorateMapComponent';
const propTypes = {
...ViewPropTypes,
/**
* The coordinate of the center of the circle
*... |
complete-example/client/src/components/presentation/navagational/header.js | jpaulptr/ecom-react | import React from 'react';
import { Link } from 'react-router-dom';
import Nav from './nav'
import CartCountContainer from '../../container/cart-counter-container'
import LogoutButtonContainer from '../../container/logout-button-container'
const Header = (props) => (
<header>
<Link to='/'> <div> Logo</div... |
src/routes.js | halkeye/sauce-debug-client | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import MainWindow from './pages/MainWindow.jsx';
import Accounts from './pages/Accounts.jsx';
export default (
<Route path='/' component={App}>
<IndexRoute component={MainWindow} />
<Route path='a... |
src/base/routes.js | frostney/react-app-starterkit | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import { Home, About } from 'screens';
const NotFound = () => <h2>Not found</h2>;
const lazyLoadComponent = lazyModule =>
(location, cb) => {
lazyModule(module => cb(null, module));
};
const routes = (
<Route path="/">
<Inde... |
src/components/Navigation/index.js | oct16/Blog-FE | import React from 'react';
import cx from 'classnames';
import PropTypes from 'prop-types';
import s from './Navigation.css';
import Link from 'components/Link';
import jsCookie from 'js-cookie'
import history from 'history';
class Navigation extends React.Component {
static propTypes = {
superUser: PropTypes.... |
js/components/solution.js | brainly/datacontest | import React from 'react';
import Answer from '../components/answer.js';
const Solution = (props) => {
const votes = props.votes;
const question = props.question;
const answerNodes = question.answers.map((answer) => {
const voters = props.votes.getVotersForAnswer(question.id, answer.id);
... |
src/main/resources/ui/components/JobSummaryView.js | vixns/chronos | import React from 'react'
import {observer} from 'mobx-react'
import $ from 'jquery'
import 'bootstrap'
import {JsonStore} from '../stores/JsonStore'
import JsonEditor from './JsonEditor'
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip()
})
@observer
class JobSummaryView extends React.Component {... |
src/sentry/static/sentry/app/icons/icon-circle-exclamation.js | jean/sentry | import React from 'react';
import Icon from 'react-icon-base';
function IconCircleExclamation(props) {
return (
<Icon viewBox="0 0 15 15" {...props}>
<g stroke="currentColor" fill="none" strokeLinejoin="round" strokeLinecap="round">
<circle cx="7.5" cy="7.5" r="7" />
<path d="M7.5,3.5 L7.5,... |
src/js/screens/drop-button/AirlineMultiSelect.js | grommet/next-sample | import React, { Component } from 'react';
import { Anchor, Box, Button, DropButton, Heading, Text } from 'grommet';
import { FormAdd, FormClose } from 'grommet-icons';
import MultiSelect from './MultiSelect';
import airlines from './airlines';
export default class AirlineMultiSelect extends Component {
state = {
... |
src/components/static-page/privacy.js | datea/datea-webapp-react | import React from 'react';
const PrivacyContent = () =>
<div className="static-page-content privacy">
<h1>POLITICA DE PRIVACIDAD</h1>
<p>El presente documento contiene la Política de Privacidad de DATEA,
respecto de la recolección, uso, manejo y disposición de datos e
información recibidos de los Us... |
src/index.js | saada/container-hive | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import './index.css'
ReactDOM.render(
<App />,
document.getElementById('root')
)
|
app/components/shared/User.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import classNames from 'classnames';
import UserAvatar from './UserAvatar';
class User extends React.PureComponent {
static propTypes = {
user: PropTypes.shape({
name: PropTypes.string.isRequired,
... |
projects/twitch-ui/src/components/NavigationLogo.js | unindented/twitch-x | import React from 'react'
import styled from 'styled-components'
import glitch from 'twitch-assets/build/web/icons/glitch.svg'
import NavigationItem from './NavigationItem'
const NavigationLogoRoot = styled.h1`
margin: 0;
background-color: ${props => props.theme.colors.secondary};
`
export default function Naviga... |
project/src/components/Html/Html.js | boldr/boldr | /* eslint-disable no-inline-comments */
// @flow
import React from 'react';
import type { Node, Element } from 'react';
import Helmet from 'react-helmet';
import serialize from 'serialize-javascript';
type Props = {
styles: $ReadOnlyArray<string>,
cssHash: string,
js: $ReadOnlyArray<string>,
component: Node,
... |
src/core/components/types/UndefinedType.js | remy/jsconsole | import React from 'react';
export default () => <div className="type undefined">undefined</div>;
|
src/components/Text.js | weaintplastic/react-sketchapp | /* @flow */
import React from 'react';
import PropTypes from 'prop-types';
import StyleSheet from '../stylesheet';
import TextStylePropTypes from './TextStylePropTypes';
import ViewStylePropTypes from './ViewStylePropTypes';
import ResizingConstraintPropTypes from './ResizingConstraintPropTypes';
const propTypes = {
... |
views/MainPage/index.js | Chibaheit/eventer | /*
* 首页
*/
import React from 'react'
import { connect } from 'react-redux'
import Container from '../components/Container'
import MixedForm from '../components/MixedForm'
import styles from './styles'
@connect(
state => ({
user: state.account.user
})
)
class MainPage extends React.Component {
render() {... |
src/ContentBlocks/BlockParagraph/BlockParagraph.js | grommet/grommet-cms-content-blocks | import PropTypes from 'prop-types';
import React from 'react';
import Markdown from 'grommet/components/Markdown';
import unescape from 'unescape';
import { sizing } from './sizing';
export default function BlockParagraph({ content, align, paragraphSize }) {
const markdownContent = unescape(content || '');
const t... |
src/shared/components/grid/grid.js | namroodinc/contentful-react-mobx-post | import React from 'react';
export default class Grid extends React.Component {
render() {
const { cols } = this.props;
const className = cols ? `gridList gridList--${cols}` : `gridList`;
return (
<div className={className}>
{ this.props.children }
</div>
)
}
}
|
src/containers/AdminPanel/index.js | alimek/scrum-poker-react | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import styles from './styles.css';
import { Button } from '../../components';
import { startGame, flip } from '../../actions/game';
import { STATUS_STARTED } from '../../red... |
examples/counter/index.js | splendido/redux | import React from 'react'
import ReactDOM from 'react-dom'
import { createStore } from 'redux'
import Counter from './components/Counter'
import counter from './reducers'
const store = createStore(counter)
const rootEl = document.getElementById('root')
function render() {
ReactDOM.render(
<Counter
value={... |
client/modules/Mentorship/components/StuDrawer.js | mygithub1216/MERN_SelfCar_Dashboard | import React from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import Menu from 'material-ui/Menu';
import RaisedButton from 'material-ui/RaisedButton';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import CircularProgress from 'material-ui/Circul... |
src/svg-icons/hardware/dock.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDock = (props) => (
<SvgIcon {...props}>
<path d="M8 23h8v-2H8v2zm8-21.99L8 1c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM16 15H8V5h8v10z"/>
</SvgIcon>
);
HardwareDock = ... |
docs/src/app/components/pages/components/FlatButton/ExampleSimple.js | rhaedes/material-ui | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
const FlatButtonExampleSimple = () => (
<div>
<FlatButton label="Default" />
<FlatButton label="Primary" primary={true} />
<FlatButton label="Secondary" secondary={true} />
<FlatButton label="Disabled" disabled={true} />
</... |
docs/app/Examples/collections/Breadcrumb/Variations/BreadcrumbExampleTinySize.js | clemensw/stardust | import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'
const BreadcrumbExampleTinySize = () => (
<Breadcrumb size='tiny'>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
<Breadcrumb.Section link>Registration</Breadcrumb.Section>
<Breadc... |
packages/wix-style-react/stories/utils/GoogleAPILoader.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { Loader } from 'wix-style-react';
const STATUS = {
success: 'success',
loading: 'loading',
error: 'error',
};
export default class GoogleMapsLoader extends React.Component {
state = {
dependencyStatus: STATUS.loading,
};
static p... |
app/components/layout/form/CheckoutForm.js | communicode-source/communicode | // CheckoutForm.js
import React from 'react';
import PropTypes from 'prop-types';
import {injectStripe} from 'react-stripe-elements';
import styles from './../../../assets/css/pages/createProject.scss';
import CardSection from './CardSection';
class CheckoutForm extends React.Component {
constructor(props) {
... |
src/svg-icons/content/send.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentSend = (props) => (
<SvgIcon {...props}>
<path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/>
</SvgIcon>
);
ContentSend = pure(ContentSend);
ContentSend.displayName = 'ContentSend';
ContentSend.muiName = ... |
client/index.js | gut-js/gut | import React from 'react';
import { render } from 'react-dom';
import { createStore, applyMiddleware, compose, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import { syncHistory, routeReducer } from 'react-router-redux';
import createHistory from 'history/lib/createHashHistory';
import thunk f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.