path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/Navbar.js | founderlab/fl-admin | import _ from 'lodash' // eslint-disable-line
import React from 'react'
import {Navbar, Nav, NavItem} from 'react-bootstrap'
export default function AdminNavbar() {
return (
<Navbar fluid>
<ul className="nav navbar-nav">
<li className="pull-right"><a href="/logout">Logout</a></li>
</ul>
... |
docs/src/app/components/pages/components/Table/ExampleSimple.js | manchesergit/material-ui | import React from 'react';
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn,
} from 'material-ui/Table';
/**
* A simple table demonstrating the hierarchy of the `Table` component and its sub-components.
*/
const TableExampleSimple = () => (
<Table>
<TableHeader>
... |
app/components/Navbar/ToggleButton/index.js | josueorozco/parlay | import React from 'react';
import classNames from 'classnames';
import Icon from '../../Icon';
/*
|--------------------------------------------------------------------------
| ToggleButton
|--------------------------------------------------------------------------
|
| Stateless component
|
*/
const ToggleButton = () ... |
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js | Jaeandroid/actor-platform | import React from 'react';
import mixpanel from 'utils/Mixpanel';
import MyProfileActions from 'actions/MyProfileActions';
import LoginActionCreators from 'actions/LoginActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
import MyProfileModal from 'components/modals/MyProfile.react';
import ... |
src/svg-icons/notification/rv-hookup.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationRvHookup = (props) => (
<SvgIcon {...props}>
<path d="M20 17v-6c0-1.1-.9-2-2-2H7V7l-3 3 3 3v-2h4v3H4v3c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h8v-2h-2zm-9 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1... |
src/Glyphicon.js | wjb12/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Glyphicon = React.createClass({
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: React.PropTypes.string,
/**
* An icon name. See e.g. http://getbootstrap.com/components/#glyphicons
*/
glyph: Re... |
src/components/Hero.js | ryanbaer/busy | import React from 'react';
import { FormattedMessage } from 'react-intl';
import './Hero.less';
const Hero = () =>
(<div className="Hero">
<div className="container container-small">
<h1 className="hero-message">
<FormattedMessage id="hero" defaultMessage="Ensuring compensation for the creators of ... |
src/views/AboutView.js | abachuk/quotes | import React from 'react'
import { Link } from 'react-router'
export class AboutView extends React.Component {
render () {
return (
<div className='container text-center'>
<h1>This is the about view!</h1>
<hr />
<Link to='/'>Back To Home View</Link>
</div>
)
}
}
export ... |
packages/react-error-overlay/src/components/ErrorOverlay.js | HelpfulHuman/helpful-react-scripts | /**
* 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'... |
node_modules/react-bootstrap/es/PagerItem.js | soniacq/LearningReact | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/components/viewer/musicPlayer.js | Q42/CT-3000 | import React from 'react';
import InlineSVG from 'svg-inline-react';
import svg from '!svg-inline-loader!../../assets/svg/radio-station.svg';
import MusicStream from '../../classes/musicStream';
import TranslationStore from '../../stores/translation';
export default class MusicPlayerComponent extends React.Component... |
src/mongostick/frontend/src/screens/Operations.js | RockingRolli/mongostick | import React from 'react'
import { Row, Col, Table, Button } from 'antd'
import { connect } from 'react-redux'
import OperationDetails from '../components/OperationDetails'
import { Link } from 'react-router-dom'
import { availableColumns } from '../lib/operations'
class Operations extends React.Component {
handleC... |
app/assets/scripts/components/main-figure-line-plot.js | HoustonEndowment/after-school-programs | import React from 'react'
export default function (data) {
function scaleAndFormat (num) {
return (num / data.highValTotal) * 100 + '%'
}
return (
<div>
<div className='lineplot'>
<div className='line'
style={{width: scaleAndFormat(Math.abs(data.students - data.slots)), left: scaleAndFor... |
src/components/Home/SearchPlaylistContainer.js | neyko5/BalistosNative | import React from 'react';
import PropTypes from 'prop-types';
import { View, TextInput, StyleSheet, Image } from 'react-native';
import { connect } from 'react-redux';
import SearchPlaylistResult from './SearchPlaylistResult';
import { searchPlaylists } from '../../actions';
const mapStateToProps = (state, ownProps)... |
src/components/family.js | dbertella/my-family | import React from 'react'
import styled from 'styled-components'
import Card from './card'
import { media } from '../utils'
const Title = styled.h3``
const Wrapper = styled.div`
display: flex;
overflow-x: auto;
align-items: center;
flex-direction: column;
flex-flow: row nowrap;
${media.desktop`
justif... |
src/js/components/modules/ui/Checkbox.js | at-ishikawa/paintlive | import React from 'react';
import style from 'modules/ui/checkbox';
class Checkbox extends React.Component {
render() {
const { children, ...props } = { ...this.props };
return (
<label className={ style.checkboxLabel }>
<input className={ style.checkbox }
type="checkbox"
... |
src/components/admin/CreateUserModal.js | Atypon-OpenSource/wayf-admin | import React from 'react';
import PropTypes from 'prop-types';
import { createFragmentContainer, graphql } from 'react-relay';
import {
Form,
Col,
FormGroup,
ControlLabel,
FormControl,
HelpBlock,
Modal,
Grid,
Alert
} from 'react-bootstrap';
import Button from 'react-bootstrap-button-loader';
impo... |
src/routes/contact/index.js | foxleigh81/foxweb | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
src/client/scenes/App/Navigation/GuildList/index.js | kettui/webcord-web-app | import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import CSSTransitionGroup from 'react-addons-css-transition-group'
import { Button, Label, Segment } from 'semantic-ui-react';
import { DiscordIcon } from 'components/';
import classNames from 'classnames/bind';
import scss from '... |
src/svg-icons/content/block.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentBlock = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8... |
linksa/TJ.js | liuhui219/linksa | import React from 'react';
import {
View,
StyleSheet,
Navigator,
TouchableOpacity,
TouchableHighlight,
TouchableNativeFeedback,
Text,
BackAndroid,
Dimensions,
InteractionManager,
Image,
} from 'react-native';
import Communications from 'react-native-communications';
import Token from './Token';
impo... |
src/FormControl.js | tanbo800/react-ui | "use strict"
import React from 'react'
import classnames from 'classnames'
import { isEmpty, forEach } from './utils/objects'
import { format, toArray } from './utils/strings'
import merge from './utils/merge'
import Regs from './utils/regs'
import { requireCss } from './themes'
requireCss('form-control')
import { g... |
src/svg-icons/notification/voice-chat.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationVoiceChat = (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-2 12l-4-3.2V14H6V6h8v3.2L18 6v8z"/>
</SvgIcon>
);
NotificationVoic... |
src/pages/DomainsCheckPage.js | everdimension/check.ru | import React from 'react';
import DomainsContainer from '../containers/DomainsContainer';
class DomainsCheckPage extends React.Component {
render() {
return (
<DomainsContainer />
);
}
}
export default DomainsCheckPage;
|
imports/ui/pages/finish.js | scimusmn/sports-run | import React from 'react';
import { Row, Col, Button } from 'react-bootstrap';
import { Meteor } from 'meteor/meteor';
import { Loading } from '../components/loading';
import { composeWithTracker } from 'react-komposer';
import { Races } from '../../api/races.js';
import { LaneTimer } from '../components/LaneTimer';
i... |
src/client/react/user/components/Description.js | bwyap/ptc-amazing-g-race | import React from 'react';
import ScrollAnimation from 'react-animate-on-scroll';
import '../scss/components/_description.scss';
class Description extends React.Component {
render() {
return (
<div className='event-description'>
<div className='details'>
<ScrollAnimation animateOnce animateIn='fadeInU... |
src/js/components/Table/stories/data.js | HewlettPackard/grommet | import React from 'react';
import { Text } from 'grommet';
// Always should store amount in cents to avoid precision errors
export const data = [
{
id: 1,
name: 'Eric',
email: 'eric@local',
amount: 3775,
},
{
id: 2,
name: 'Chris',
email: 'chris@local',
amount: 5825,
},
{
... |
src/Label.js | yickli/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Label = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'label',
bsStyle: 'default'
};
},
render() {
let classes = this.getBsClassSe... |
src/renderer/components/application.js | r7kamura/retro-twitter-client | import AccountSwitcher from './account-switcher'
import ChannelSwitcher from './channel-switcher'
import Main from './main'
import React from 'react';
export default class Application extends React.Component {
render() {
return(
<div className="application">
<AccountSwitcher
account={this... |
src/routes/dashboard/components/cpu.js | zhouchao0924/SLCOPY | import React from 'react'
import PropTypes from 'prop-types'
import styles from './cpu.less'
import { color } from '../../../utils'
import CountUp from 'react-countup'
import { LineChart, Line, XAxis, YAxis, CartesianGrid, ResponsiveContainer } from 'recharts'
const countUpProps = {
start: 0,
duration: 2.75,
use... |
react-ui/src/components/Admin/Reviews.js | civicparty/legitometer | import React from 'react';
import axios from 'axios';
import { Table, Header } from 'semantic-ui-react';
import ReviewListItem from './ReviewListItem';
// import { Link } from 'react-router-dom';
// import { Button } from 'semantic-ui-react';
class Reviews extends React.Component {
constructor() {
super();
t... |
src/js/components/OrderBy.js | rmhowe/search-ui | import React from 'react';
export default class OrderBy extends React.Component {
static propTypes = {
orderBy: React.PropTypes.object.isRequired,
handleOrderByChange: React.PropTypes.func.isRequired
};
orderByChange = (event) => {
if (event.target.value) {
const [value, ascendingText] = event... |
src/svg-icons/action/view-quilt.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewQuilt = (props) => (
<SvgIcon {...props}>
<path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/>
</SvgIcon>
);
ActionViewQuilt = pure(ActionViewQuilt);
ActionViewQuilt.displayN... |
src/index.js | njscococo/ReactTutorial2 | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
//import axios from 'axios';
import GithubSearch from './components/GithubSearch';
//import SearchBar from './components/SearchBar';
// import User from './components/User';
// import Repos from './components/Repos';
// import RepoRow from '.... |
public/javascripts/counter.js | nicrou/react_js_playground | import React from 'react';
/**
* A counter button: tap the button to increase the count.
*/
class Counter extends React.Component {
constructor() {
super();
this.state = {
count: 0,
};
}
render() {
return (
<button
onClick={() => {
this.setState({ count: this.stat... |
src/components/video_list.js | evandynh/ReactStartExample | 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} />
})
return (
<ul className="col-md-4 list-group"... |
app/components/chartcanvas.js | jzhang729/zoey.news | import React from 'react'
import Timelapse from './timelapse'
import Donut from './donut'
import Snapshot from './snapshot'
import Fluxxor from 'fluxxor'
export default React.createClass({
render: function() {
var charts = this.props.charts.map(function(chart, index) {
switch(chart.chartType) {
case... |
src/client/components/mockup/Button/Button.component.js | andrerpena/monomock | import React from 'react';
import BootstrapButton from 'react-bootstrap/lib/Button';
var Button = React.createClass({
render: function() {
return <BootstrapButton>Button</BootstrapButton>;
}
});
export default Button; |
app/javascript/flavours/glitch/components/avatar_overlay.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from 'flavours/glitch/util/initial_state';
export default class AvatarOverlay extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isReq... |
src/Select/renderers/OptionRenderer.js | agutoli/react-styled-select | import React from 'react'
import SelectOption from '../partials/SelectOption'
export default function OptionRenderer(option, index) {
let style = {}
if (option.virtualized) {
style = {
position: 'absolute',
width: '100%',
top: `${option.virtualizedOptionHeight * index}px`,
maxHeight: `$... |
app/components/loading-panel.js | sirbrillig/voyageur-js-client | import React from 'react';
const LoadingPanel = () => {
return (
<div key="loading-panel-panel" className="loading-panel">
<div className="loading-panel__content">
<img className="loading-panel__logo animated flipInX" alt="Voyageur logo" src="/assets/logo-medium-smooth.png" />
<div classNam... |
test/helpers/shallowRenderHelper.js | KevinT0323/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
client/src/components/header/login.js | OpenChemistry/materialsdatabank | import React, { Component } from 'react';
import { connect } from 'react-redux'
import Button from '@material-ui/core/Button';
import InputIcon from '@material-ui/icons/Input';
import { selectAuthProvider } from '../../redux/ducks/app'
class Login extends Component {
render = () => {
return (
<Button... |
src/page/spa/root/Root.dev.js | SteamerTeam/steamer-react | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../stores/configureStore';
import IndexWrapper from '../container/index';
import CommentWrapper from '../container/comment';
import DetailWrapper from '../container/detail';
import App from '../container/app'... |
src/svg-icons/maps/near-me.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsNearMe = (props) => (
<SvgIcon {...props}>
<path d="M21 3L3 10.53v.98l6.84 2.65L12.48 21h.98L21 3z"/>
</SvgIcon>
);
MapsNearMe = pure(MapsNearMe);
MapsNearMe.displayName = 'MapsNearMe';
MapsNearMe.muiName... |
example/src/index.js | archriss/react-native-snap-carousel | import React, { Component } from 'react';
import { Platform, View, ScrollView, Text, StatusBar, SafeAreaView } from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import Carousel, { Pagination } from 'react-native-snap-carousel';
import { sliderWidth, itemWidth } from './styles/SliderEntry.s... |
frontend/src/components/recipes/view/components/FabButton.js | jf248/scrape-the-plate | import React from 'react';
import { AppFabButton } from 'components/frame';
function FabButtonPres(props) {
const { isLoggedIn, isOwner, onClickEdit, onClickCopy, ...rest } = props;
return (
isLoggedIn && (
<AppFabButton
{...{
variant: isOwner ? 'edit' : 'copy',
tooltipTitle... |
packages/material-ui-icons/src/Drafts.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z" /></g>
, 'Drafts');
|
src/interface/icons/ScrollFilled.js | fyruna/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/jngll2/uploads/?i=1219368
// Created by jngll from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}>
<path d="M80.64,10.87l-.52,0-.26,0H30.64A11.24,11.24,0,0,0,19.42... |
src/App.js | tombray/react-redux-dashboard | import 'babel-polyfill';
import React, { Component } from 'react';
import { createStore, combineReducers, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunkMiddleware from 'redux-thunk';
import rootReducer from './reducers';
import DashboardApp from './DashboardApp';
import createFireb... |
ajax/libs/react-instantsearch/5.0.1/Connectors.js | sashberd/cdnjs | /*! ReactInstantSearch 5.0.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
src/node_modules/react-router/es6/IndexLink.js | oferkafry/gps-tracker-ui | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor... |
assets/jqwidgets/demos/react/app/scheduler/dataexport/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.refs.myScheduler.ensureAppointmentVis... |
examples/macOs/components/progressCircle.js | gabrielbull/react-desktop | import React, { Component } from 'react';
import { ProgressCircle } from 'react-desktop/macOs';
export default class extends Component {
render() {
return (
<ProgressCircle size={25}/>
);
}
}
|
app/scripts/MainViews/MainContainerTabBar.js | nthitz/playlist_archive_site | 'use strict'
import React from 'react'
import QueueControls from './QueueControls'
import Icon from '../Icon'
var tabs = [
'playlist', 'queue', 'chat', 'users'
]
export default class MainContainerTabBar extends React.Component {
constructor(props) {
super(props)
this.state = {
activeTab: this.prop... |
node_modules/react-bootstrap/es/ModalBody.js | cmccandless/SolRFrontEnd | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/svg-icons/image/style.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageStyle = (props) => (
<SvgIcon {...props}>
<path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.... |
packages/idyll-components/src/h6.js | idyll-lang/idyll | import React from 'react';
import GenerateHeaders from './generateHeaders';
class H6 extends React.PureComponent {
render() {
return <GenerateHeaders size="6" {...this.props} />;
}
}
H6._idyll = {
name: 'H6',
tagType: 'open',
children: ['My Header Size 6']
};
export default H6;
|
src/App.js | jeromelachaud/Last.fm-Activities-React | import React from 'react';
import {
store
} from './stores/lastfm-store';
import Topbar from './components/Topbar';
import styled from 'styled-components';
import PropTypes from 'prop-types';
const StyledApp = styled.div`
font-size: 2rem;
`;
class App extends React.Component {
componentWillMount() {
this.s... |
src/components/Main.js | csc-huxiaowei/react-template | //require('bootstrap/dist/css/bootstrap.css');
require('styles/App.styl');
import React from 'react';
let yeomanImage = require('../images/yeoman.png');
class AppComponent extends React.Component {
render() {
return (
<div className="index">
<img src={yeomanImage} alt="Yeoman Generator" />
... |
docs/src/components/HomepageCardList.js | DoSomething/northstar | import React from 'react';
import clsx from 'clsx';
import styles from './HomepageCardList.module.css';
const ResourceList = [
{
icon: '🌟',
description: (
<>
Documentation for the Northstar platform, including the staff Admin
interface.
</>
),
href: 'docs/',
title: '... |
frontend/src/Components/DescriptionList/DescriptionListItemDescription.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import styles from './DescriptionListItemDescription.css';
function DescriptionListItemDescription(props) {
const {
className,
children
} = props;
return (
<dd className={className}>
{children}
</dd>
);
}
DescriptionListItem... |
example/index.js | cotto89/react-spyable-markdown-toc | require('./index.scss');
import React from 'react';
import ReactDOM from 'react-dom';
import {
SpyableMarkdownPreview,
SpyableMarkdownTocWrapper,
SpyableToc,
} from './../src/index.js';
const SampleText = require('./sample.md');
const App = function App() {
return (
<div className="App">
<SpyableMar... |
modules/App.js | jdeskins/k8s-custom-dashboard | import React from 'react'
import NavLink from './NavLink'
import { Link } from 'react-router'
export default React.createClass({
getInitialState: function() {
return {
username: ''
}
},
render() {
return (
<div>
<header className="main-header">
<nav className="navbar... |
admin/client/App/shared/Portal.js | giovanniRodighiero/cms | /**
* Used by the Popout component and the Lightbox component of the fields for
* popouts. Renders a non-react DOM node.
*/
import React from 'react';
import ReactDOM from 'react-dom';
module.exports = React.createClass({
displayName: 'Portal',
portalElement: null, // eslint-disable-line react/sort-comp
compone... |
docs/client.js | Terminux/react-bootstrap | import CodeMirror from 'codemirror';
import 'codemirror/addon/runmode/runmode';
import 'codemirror/mode/htmlmixed/htmlmixed';
import './assets/javascript';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import React from 'react';
import ReactDOM from 'react-dom';
import {Router} from 'react-route... |
src/index.js | Funkycamel/Modern-React-with-Redux-React-Router-and-Redux-Form-Section-9 | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import promise from 'redux-promise';
import reducers from './reducers';
import PostsIndex from './c... |
js/src/dapps/dappreg/CreateDappCard/createDappCard.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
server/reactHTML.js | GalkinDmitriy/CodeDeployGitHubDemo | /**
* Created by prime on 04.03.2017.
*/
import React from 'react';
import { renderToString } from 'react-dom/server';
import AppContainer from './containers/AppContainer';
const reactHTML = (store, renderProps) => renderToString(<AppContainer
store={store}
renderProps={renderProps}
/>);
export default re... |
frontend/src/index.js | VitaC123/YouTube-Mixtape | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import { Provider } from 'react-redux';
import store from './redux/store';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
... |
src/components/const/videoListContent.js | motion123/mbookmakerUI | /**
* Created by tomihei on 17/03/29.
*/
import React from 'react';
import {Grid, Row, Col} from 'react-flexbox-grid';
import AddVideoIcon from '../../containers/video/addVideoIcon';
import {Link} from 'react-router';
import styles from './videoListContent.css';
import Paper from 'material-ui/Paper';
import ContentDe... |
app/components/icons/github.js | disolution/molecule | import React from 'react';
import { SvgIcon } from 'material-ui';
const GithubIcon = (props) => (
<SvgIcon viewBox="0 0 512 512" {...props}>
<path d="M256 70.7c-102.6 0-185.9 83.2-185.9 185.9 0 82.1 53.3 151.8 127.1 176.4 9.3 1.7 12.3-4 12.3-8.9V389.4c-51.7 11.3-62.5-21.9-62.5-21.9 -8.4-21.5-20.6-27.2-20.6-27.2 ... |
pages/404.js | cindytung/calwtcrew | import React from 'react';
const IndexComponent = () => (
<div className="not-found">
<h1>
Well this is awkward...
</h1>
</div>
);
export default IndexComponent;
|
src/svg-icons/image/crop-din.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropDin = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/>
</SvgIcon>
);
ImageCropDin = pure(ImageCropDin);
Image... |
ajax/libs/recompose/0.20.0/Recompose.js | Amomo/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
src/Feed.js | believer/movies | // @flow
import React from 'react'
import {
FlatList,
Image,
StyleSheet,
Text,
TouchableWithoutFeedback,
ScrollView,
View
} from 'react-native'
import { gql, graphql } from 'react-apollo'
import Dimensions from 'Dimensions'
const { width } = Dimensions.get('window')
type FeedProps = {
data: {
err... |
packages/react-server-website/components/homepage-body.js | szhou8813/react-server | import React from 'react';
// import {Component} from 'react';
import Markdown from './Markdown';
import GetStartedSection from './content/HomeGetStartedSection.md';
import WhySection from './content/HomeWhySection.md';
import ContributingSection from './content/HomeContributingSection.md';
import {Link} from "react-se... |
src/svg-icons/image/brightness-2.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness2 = (props) => (
<SvgIcon {...props}>
<path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z"/>
</SvgIcon>
);
I... |
src/containers/home/Home.js | pkaq/TaraRn | 'use strict';
import React from 'react';
import {
TouchableOpacity,
View,
Text
} from 'react-native'
import styles from './Home.style.js';
export default class Home extends React.Component{
constructor(props){
super(props);
this.state = {
name : 'Frank'
};
}
/**接收传递过来的参数 ... |
src/DatePicker/Calendar.js | skarnecki/material-ui | import React from 'react';
import EventListener from 'react-event-listener';
import keycode from 'keycode';
import transitions from '../styles/transitions';
import CalendarMonth from './CalendarMonth';
import CalendarYear from './CalendarYear';
import CalendarToolbar from './CalendarToolbar';
import DateDisplay from '.... |
examples/realtime-redux/components/stock-event/index.js | rocjs/roc-package-web-app-react | import React from 'react';
import styles from './style.scss';
export default class StockEventView extends React.Component {
static propTypes = {
name: React.PropTypes.string.isRequired,
current: React.PropTypes.number.isRequired,
diff: React.PropTypes.number.isRequired
};
static d... |
src/App.js | kaidenvo/bitcoin-insight | import './Legacy.css';
import './App.css';
import React from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import { Switch, Route } from 'react-router';
import { Provider } from 'react-redux';
import NotFound from './NotFound';
import Header from './Header';
import Footer from './Footer';
impo... |
src/svg-icons/image/looks-3.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks3 = (props) => (
<SvgIcon {...props}>
<path d="M19.01 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 7.5c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5V15c0 1.11-.9 2-2 2h-4v... |
src/shared/components/NavButton.js | sashafklein/ballot-marker | import React from 'react';
import Button from './Button';
import { wrap } from '../wrap';
export const NavButton = ({ onPress, content, colorKey, gbs, textStyle, buttonStyle }) => (
<Button
onPress={ onPress || (() => {})}
addStyles={ {
button: [
{
justifyContent: 'center',
... |
Rate.UI/app/components/Categories.js | tanos90/Rate | import React from 'react';
import { Link } from 'react-router';
import styled from 'styled-components';
const StyledLink = styled(Link)`
color: tomato;
display: block;
margin: 0.5em 0;
font-family: Helvetica, Arial, sans-serif;
&:hover {
text-decoration: underline;... |
src/components/reports/report-ranking.js | Xabadu/VendOS | import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import Moment from 'moment';
import Calendar from 'react-input-calendar';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import Select from 'react-select';
import { getRankin... |
src/components/elements/Switch.js | dynamicform/dynamicform-react-client | /**
* Created by KangYe on 2017/4/28.
*/
import React from 'react';
import {connect} from 'react-redux';
import {Switch, Form, Icon} from 'antd';
import _ from 'lodash';
import {initFormData,initDynamicFormData, updateFormData,updateDynamicFormData} from '../../actions/formAction';
import {FormItemLayout, MapStateToP... |
internals/templates/containers/NotFoundPage/index.js | 7ruth/PadStats2 | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
src/svg-icons/action/face.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFace = (props) => (
<SvgIcon {...props}>
<path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-... |
src/ConversationInput/index.js | bolshchikov-public/wazzapp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './ConversationInput.css';
class ConversationInput extends Component {
_onEnter(event) {
if (event.key === 'Enter') {
this.props.onMessage(event.target.value);
event.target.value = '';
}
}
render() {
re... |
src/index.js | IIaJIeHo/react-maskedinput | import React from 'react'
import PropTypes from 'prop-types'
import InputMask from 'inputmask-core'
var KEYCODE_Z = 90
var KEYCODE_Y = 89
function isUndo(e) {
return (e.ctrlKey || e.metaKey) && e.keyCode === (e.shiftKey ? KEYCODE_Y : KEYCODE_Z)
}
function isRedo(e) {
return (e.ctrlKey || e.metaKey) && e.keyCode ... |
src/components/AccountDetails/AccountDetails.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import withStyles from 'isomorphic-style-loader/withStyles';
import { defineMessages, FormattedMessage, FormattedDate } from 'react-intl';
import { fetchUser, deleteUser } from '../../actions/user';
import { getUser, ... |
test/e2e/basepath/pages/absolute-url.js | azukaru/next.js | import React from 'react'
import Link from 'next/link'
export default function Page() {
return (
<>
<Link href="https://vercel.com/">
<a id="absolute-link">https://vercel.com/</a>
</Link>
<br />
<Link href="mailto:idk@idk.com">
<a id="mailto-link">mailto:idk@idk.com</a>
... |
examples/async/index.js | kolodny/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
17/notes/src/pages/notes/NoteItem.js | nanohop/hop_into_react | import React, { Component } from 'react';
import { Button } from 'react-bootstrap';
import FontAwesome from 'react-fontawesome';
class NoteItem extends Component {
render() {
return (
<li
className="list-group-item pull-left note-item"
onClick={this.props.onClick}>
<Button
... |
src/components/NavList/NavList.js | TackleboxBeta/betabox-seed | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class HeadingRow extends Component {
static propTypes = {
navItems: PropTypes.array.isRequired
};
render() {
const { navItems } = this.props;
const styles = require('./NavList.scss');
const items = navIt... |
src/modules/Profile/index.js | prjctrft/mantenuto | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { updateUser } from 'modules/user/redux';
import { updatePassword } from 'modules/Password/redux';
import { notifSend } from '../Notifs/redux';
import ProfileForm from './components/ProfileForm... |
src/containers/everyone.js | gabrielmansour/acquainted | import React from 'react';
import Card from '../components/card';
import {ButtonGroup, ButtonGroupItem } from '../components/button_group';
export default class Everyone extends React.Component {
state = { people: require('../../data/people.json') };
render() {
var people = this.state.people.map(function(pers... |
src/components/Breadcrumb/Breadcrumb.js | giux78/daf-dataportal | 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.sp... |
test/helpers/shallowRenderHelper.js | xianxiango/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.