path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
script/pages/MainPage.js | ypxu87/listener | import {TabNavigator} from 'react-navigation';
import React from 'react';
import HomePage from './HomePage';
import DownloadPage from './DownloadPage';
const MainPage = TabNavigator({
HomePage: {
screen: HomePage
},
DownloadPage: {
screen: DownloadPage
}
},
... |
src/icons/CloudUploadIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class CloudUploadIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38.71 20.07C37.35 13.19 31.28 8 24 8c-5.78 0-10.79 3.28-13.3 8.07C4.69 16.72 0 21.81 0 28c0 6.63 5.37... |
node_modules/react-select/examples/src/components/Multiselect.js | Alex-Shilman/Drupal8Node | import React from 'react';
import Select from 'react-select';
const FLAVOURS = [
{ label: 'Chocolate', value: 'chocolate' },
{ label: 'Vanilla', value: 'vanilla' },
{ label: 'Strawberry', value: 'strawberry' },
{ label: 'Caramel', value: 'caramel' },
{ label: 'Cookies and Cream', value: 'cookiescream' },
{ label... |
src/components/PetitionsFiltersField/index.js | iris-dni/iris-frontend | import React from 'react';
import styles from './petitions-filters-field.scss';
const PetitionsFiltersField = ({ label, name, children }) => (
<div className={styles.root}>
<label className={styles.label} htmlFor={name}>
{label}
</label>
<div className={styles['input-wrapper']}>
{children}
... |
app/src/client/components/app/Home.js | dvdschwrtz/DockDev | import React from 'react';
var ReactTooltip = require("react-tooltip");
export default () => {
return (
<div id="content">
</div>
);
};
|
app/javascript/mastodon/features/ui/components/media_modal.js | 3846masa/mastodon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ExtendedVideoPlayer from '../../../components/extended_video_player';
import ImageLoader from 'react-imageloader';
impor... |
examples/github-explorer/components/login.js | hetmann/sass-redux-router | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Paper from 'material-ui/Paper';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import CircularProgress from 'material-ui/CircularProgress';
import { ENTER_KEY } from '../modules/c... |
src/components/video_list.js | Jaberwalky/ReduxCourse | import React from 'react'
import VideoListItem from './video_list_item'
const VideoList = (props) => {
const videoItems = props.videos.map((video, index) => {
return <VideoListItem
video={video}
key={index}
onVideoSelect={props.onVideoSelect}
/>
})
return (
<ul className="col-md-4... |
app/containers/SignupPage/index.js | vlastoun/picture-uploader-crud | import React from 'react';
import PropTypes from 'prop-types';
import { createStructuredSelector } from 'reselect';
import { connect } from 'react-redux';
import CreateUserForm from 'components/CreateUserForm';
import { CREATE_USER } from './constants';
import { makeSelectUser, makeSelectError } from './selectors';
/* ... |
src/example/plot/static-hints.js | jameskraus/react-vis | // Copyright (c) 2016 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, merge... |
src/components/root/enhanced-bottom-navigation.js | quanglam2807/webcatalog | import React from 'react';
import PropTypes from 'prop-types';
import Paper from '@material-ui/core/Paper';
import BottomNavigation from '@material-ui/core/BottomNavigation';
import BottomNavigationAction from '@material-ui/core/BottomNavigationAction';
import HomeIcon from '@material-ui/icons/Home';
import SystemUpdat... |
submissions/kyldvs/src/index.js | staltz/flux-challenge | /**
* @flow
*/
'use strict';
import AppContainer from './AppContainer';
import React from 'react';
import ReactDOM from 'react-dom';
const el = React.createElement(AppContainer, {});
const root = document.getElementById('app-root');
ReactDOM.render(el, root);
|
examples/counter/containers/Root.js | leolujuyi/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './CounterApp';
import configureStore from '../store/configureStore';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
... |
Libraries/Utilities/throwOnWrongReactAPI.js | ankitsinghania94/react-native | /**
* Copyright (c) 2015-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.
*
* @provides... |
examples/website/ghcn/app.js | uber-common/deck.gl | import React from 'react';
import {useMemo} from 'react';
import {render} from 'react-dom';
import {OrthographicView} from '@deck.gl/core';
import {TextLayer, PathLayer} from '@deck.gl/layers';
import {SimpleMeshLayer} from '@deck.gl/mesh-layers';
import DeckGL from '@deck.gl/react';
import {Matrix4} from 'math.gl';
... |
src/routes.js | Abdelmageed/voter | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import {App} from './components/app';
import AllPolls from './containers/AllPolls';
import MyPolls from './containers/MyPolls';
import Poll from './containers/Poll';
export const getRoutes = () => {
const redirectIfNotAuth = (nextState, rep... |
templates/frontOffice/modern/components/React/SubmitButton/index.js | lopes-vincent/thelia | import Loader from '../Loader';
import React from 'react';
export default function SubmitButton({
label,
isSubmitting,
onClick = () => {},
className,
...props
}) {
return (
<button
className={`btn relative ${className ? className : ''}`}
onClick={onClick}
type="button"
{...props... |
analysis/druidguardian/src/modules/features/Gore.js | anom0ly/WoWAnalyzer | // Based on Clearcasting Implementation done by @Blazyb
import { t } from '@lingui/macro';
import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import { SpellLink } from 'interface';
import { SpellIcon } from 'interface';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';... |
src/modules/users/components/SidebarUserAvatar/SidebarUserAvatar.js | CtrHellenicStudies/Commentary | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import './SidebarUserAvatar.css';
const SidebarUserAvatar = props => (
<div className="sidebarUserAvatar">
<Link to="/profile">
<div
className="sidebarUserAvatarImage"
style={{
backgroundImage: ... |
quick-bench/src/AssemblyEditor.js | FredTingaud/quick-bench-front-end | import React from 'react';
import Palette from 'components/Palette.js';
import { Tab, Tabs } from 'react-bootstrap';
import Editor from 'components/Editor';
const RE_CODE = /\s*([0-9\\.]+) +:\s+([0-9a-f]+):\s+(.*)/;
const RE_TITLE = /-{11} ([^\s]*)\s*/;
const RATIO_WIDTH = 7;
const COMMAND_WIDTH = 7;
class AssemblyEd... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Listing/Listing.js | sambaheerathan/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | fiture/react-router | import React from 'react';
class Assignments extends React.Component {
render () {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
);
}
}
export default Assignments;
|
app/javascript/mastodon/features/ui/components/tabs_bar.js | pointlessone/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { NavLink, withRouter } from 'react-router-dom';
import { FormattedMessage, injectIntl } from 'react-intl';
import { debounce } from 'lodash';
import { isUserTouching } from '../../../is_mobile';
export const links = [
<NavLink className='tabs-bar... |
node_modules/_antd@2.13.4@antd/es/mention/index.js | ligangwolai/blog | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
app/components/Toggle/index.js | Jonathan-Steinmann/react-boilerplate-testing | /**
*
* LocaleToggle
*
*/
import React from 'react';
import Select from './Select';
import ToggleOption from '../ToggleOption';
function Toggle(props) {
let content = (<option>--</option>);
// If we have items, render them
if (props.values) {
content = props.values.map((value) => (
<ToggleOption key... |
app/utils/injectReducer.js | joeysherman/noodle-time | import React from 'react';
import hoistNonReactStatics from 'hoist-non-react-statics';
import { ReactReduxContext } from 'react-redux';
import getInjectors from './reducerInjectors';
/**
* Dynamically injects a reducer
*
* @param {string} key A key of the reducer
* @param {function} reducer A reducer that will be... |
fields/types/cloudinaryimage/CloudinaryImageField.js | xyzteam2016/keystone | import xhr from 'xhr';
import React from 'react';
import Field from '../Field';
import Select from 'react-select';
import { Button, FormField, FormInput, FormNote } from 'elemental';
import ImageThumbnail from '../../components/ImageThumbnail';
import Lightbox from '../../components/Lightbox';
import classnames from 'c... |
src/components/SvgIcon/FileUpload.js | sk-iv/iva-app | import React from 'react';
import SvgIcon from './SvgIcon';
import classNames from 'classnames';
/**
* @ignore - internal component.
*/
let FileUpload = props => (
<SvgIcon {...props} className={classNames('icon--size24', props.className)}>
<path d="M20,23H4V1h10l6,6V23z M14,1v6h6 M12,11v9 M16,15l-4-4l-4,4"/>
... |
src/Icon.js | tanbo800/react-ui | "use strict"
import React from 'react'
import classnames from 'classnames'
let prefix = "icon"
export default class Icon extends React.Component {
static displayName = 'Icon'
static propTypes = {
icon: React.PropTypes.string,
size: React.PropTypes.oneOfType([React.PropTypes.string, React.PropTypes.number... |
actor-apps/app-web/src/app/components/JoinGroup.react.js | liqk2014/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import DialogActionCreators from 'actions/DialogActionCreators';
import JoinGroupActions from 'actions/JoinGroupActions';
import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line
class JoinGroup extends React.Component {
st... |
src/components/Form/Radios/RadiosView.js | Kalcode/Gatsby-Boilerplate | import React from 'react'
import PropTypes from 'prop-types'
import baseStyles from '../Inputs/styles.module.scss'
import styles from './styles.module.scss'
export default function RadiosView({ radios, children, error, inputProps, value }) {
return (
<div className={baseStyles.container}>
<fieldset classNa... |
examples/huge-apps/routes/Course/components/Course.js | 1000hz/react-router | import React from 'react';
import Dashboard from './Dashboard';
import Nav from './Nav';
var styles = {};
styles.sidebar = {
float: 'left',
width: 200,
padding: 20,
borderRight: '1px solid #aaa',
marginRight: 20
};
class Course extends React.Component {
static loadProps (params, cb) {
console.log('C... |
Native/Learn_Image/index.android.js | renxlWin/React-Native_Demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class Learn_Image extends Component {
render() {
return (
<View style={styles.contain... |
src/SiteSnackbar.js | PSilling/StudentHubUIDevelopment | import React, { Component } from 'react';
import Snackbar from 'react-toolbox/lib/snackbar/Snackbar.js';
/**
* Renders the site's custom Snackbar.
* @param active current visiblity state
* @param toggleHandler() function handling visiblity toggle
* @param label label of the Snackbar... |
src/svg-icons/device/devices.js | lawrence-yu/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/helpers/Html.js | minheq/grrupwa-boilerplate | import React from 'react';
type Props = {
criticalCss: string,
markup: string,
preloadedData: string,
head: Object,
assets: Object,
}
const Html = ({ markup, preloadedData, head, criticalCss, assets }: Props) => (
<html>
<head>
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta c... |
src/Faster.js | talarari/faster | import React, { Component } from 'react';
import Autosuggest from 'react-autosuggest';
import {Observable} from 'rx'
import AutosuggestHighlight from 'autosuggest-highlight'
const values = map => Object.keys(map).map(x=> map[x]);
function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x... |
04-custom-link/index.js | nodeyu/jason-react-router-demos-v4 | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(
<App/>,
document.querySelector('#app')
);
|
src/clincoded/static/components/score/case_control_score.js | ClinGen/clincoded | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import { Form, FormMixin, Input } from '../../libs/bootstrap/form';
import { userScore } from './helpers/user_score';
import { affiliationScore } from './helpers/affiliation_score';
// Rende... |
src/components/Avatar/Avatar.js | ScrantonHacks/website | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
const AvatarContainer = styled.a`
position: relative;
width: 12em;
&:hover ${Overlay} & {
opacity: 1;
}
margin-left: auto;
margin-right: auto;
margin-bottom: 2em;
`;
const Image = styled.img`
tr... |
pkg/interface/publish/src/js/components/lib/sidebar-invite.js | jfranklin9000/urbit | import React, { Component } from 'react';
import classnames from 'classnames';
import _ from 'lodash';
export class SidebarInvite extends Component {
onAccept() {
let action = {
accept: {
path: '/publish',
uid: this.props.uid,
}
}
window.api.action("invite-store", "invite-act... |
templates/rubix/demo/src/common/timeline.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import {
Grid,
Row,
Col,
Button,
TimelineView,
TimelineItem,
TimelineBody,
TimelineHeader,
TimelineAvatar,
TimelineTitle,
} from '@sketchpixy/rubix';
export default class TimelineComponent extends React.Component {
render() {
return (
<div>
<Grid>
... |
src/containers/Introduce/index.js | pmg1989/lms_mobile | import React from 'react'
// import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { browserHistory } from 'react-router'
import classnames from 'classnames'
import { isApp, isIOS, getAppVersion, tools } from 'utils/app'
import { Header } from 'components'
import Content from './Content'
cons... |
admin/client/components/ItemsTable/ItemsTableCell.js | Tangcuyu/keystone | import React from 'react';
var ItemsTableCell = React.createClass({
displayName: 'ItemsTableCell',
propTypes: {
className: React.PropTypes.string,
},
getDefaultProps () {
return {
className: '',
};
},
render () {
const className = `ItemList__col ${this.props.className}`;
return (
<td {...this.pro... |
src/components/helpers/container.helper.js | guzmonne/mcp | import React from 'react'
export default ({className="supermarket-1", children}) =>
<section className={"Container inner " + className}>
<div className="Container__hero">
<div className="Container__center_box">
<div className="Container__container-fluid container-fluid">
{children}
</div>
... |
src/parser/warrior/arms/modules/talents/Cleave.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import SPELLS from 'common/SPELLS';
import { formatThousands } from 'common/format';
import SpellLink from 'common/SpellLink';
import StatisticListBoxItem from 'interface/others/Sta... |
lib/editor/components/question_editors/RadioQuestionEditor.js | jirokun/survey-designer-js | import React from 'react';
import BaseQuestionEditor from './BaseQuestionEditor';
export default function RadioQuestionEditor(props) {
const { page, question } = props;
return (
<BaseQuestionEditor
page={page}
question={question}
editorTitle="単一選択肢(ラジオボタン)"
title
description
... |
src/svg-icons/content/flag.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentFlag = (props) => (
<SvgIcon {...props}>
<path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/>
</SvgIcon>
);
ContentFlag = pure(ContentFlag);
ContentFlag.displayName = 'ContentFlag';
ContentFlag.muiName = '... |
frontend/src/components/partners/profile/overview/undata/partnerUnDataContent.js | unicef/un-partner-portal |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Typography from 'material-ui/Typography';
import { prop, find, propEq } from 'ramda';
import { connect } from 'react-redux';
import { withStyles } from 'material-ui/styles';
import PaddedContent from '../../../../common/paddedContent'... |
app/index.js | lmatteis/peer-tweet | import React from 'react';
import { render } from 'react-dom';
import Main from './components/Main';
import './app.css';
import './css/ionicons.min.css';
render(
<Main />,
document.getElementById('root')
);
if (process.env.NODE_ENV !== 'production') {
// Use require because imports can't be conditional.
// In... |
frontend/src/components/layout/options.js | unicef/un-partner-portal | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Paper from 'material-ui/Paper';
import { withStyles } from 'material-ui/styles';
import Typography from 'material-ui/Typography';
import { FormControlLabel } from 'material-ui/Form';
import { sess... |
pages/_document.js | pagesource/fusion | import { extractCritical } from 'emotion-server';
import Document, { Head, Main, NextScript } from 'next/document';
import React from 'react';
export default class MyDocument extends Document {
static getInitialProps({ renderPage }) {
const page = renderPage();
const styles = extractCritical(page.html);
... |
src/js/app.js | TTFG-Analytics/commonground | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, Route, browserHistory } from 'react-router';
import App from 'App';
import CampParent from 'CampParent';
import store from './store'; //tie react application to redux
import FaceBookIntegration from 'Fa... |
src/routes/home/index.js | Artemuch727/UserList-React-Isomorhic- | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Home from './Home';
impo... |
src/routes.js | anztrax/simple-image-server-frontend | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import MainPage from './Template/MainPage';
import IndexPage from './pages/page/IndexPage';
import ImagePage from './pages/page/ImagesPage';
import EditorPage from './pages/page/EditorPage';
export default (
<Route path='/' component={MainP... |
src/native/components/About.js | gocreating/express-react-hmr-boilerplate | import React from 'react';
import { Text, View } from 'react-native';
import { Actions } from 'react-native-router-flux';
import styles from '../styles';
let About = () => {
const goToAbout = () => Actions.home();
return (
<View>
<Text style={styles.bigblue}>
About
</Text>
<Text styl... |
src/svg-icons/editor/mode-edit.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorModeEdit = (props) => (
<SvgIcon {...props}>
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"... |
src/svg-icons/action/donut-small.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDonutSmall = (props) => (
<SvgIcon {...props}>
<path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84zM13 1... |
internals/templates/containers/HomePage/index.js | abasalilov/react-boilerplate | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' 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 and remove
* the l... |
examples/DynamicMenu.js | codeart1st/react-contextmenu | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ContextMenuTrigger from 'src/ContextMenuTrigger';
import ContextMenu from 'src/ContextMenu';
import MenuItem from 'src/MenuItem';
import connectMenu from 'src/connectMenu';
const MENU_TYPE = 'DYNAMIC';
const targets = [{
name: '... |
js/jqwidgets/demos/react/app/chart/funnelchart/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let sampleData = [
{ Index: '1', SerieA: -30, SerieB: -10, SerieC: -25 },
{ Index: '2', SerieA: -25, SerieB... |
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/mode-comment.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorModeComment = (props) => (
<SvgIcon {...props}>
<path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z"/>
</SvgIcon>
);
EditorModeComment.displayName = 'EditorModeComment';
EditorModeComment.muiName = 'S... |
docs/src/examples/collections/Form/States/FormExampleFieldReadOnly.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Form } from 'semantic-ui-react'
const FormExampleFieldReadOnly = () => (
<Form>
<Form.Group widths='equal'>
<Form.Input fluid label='First name' placeholder='Read only' readOnly />
<Form.Input fluid label='Last name' placeholder='Read only' readOnly />
</Form.Gr... |
app/containers/App/index.js | shafeeqonline/xt-quiz-app | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/components/RideTweets.js | j-der/pickmeup-ui | import React from 'react';
import axios from 'axios';
import Card from 'material-ui/lib/card/card';
import CardActions from 'material-ui/lib/card/card-actions';
import CardHeader from 'material-ui/lib/card/card-header';
import FlatButton from 'material-ui/lib/flat-button';
import CardText from 'material-ui/lib/card/car... |
src/containers/DevTools.js | Leviathan5/BeamSoundlyInteractive | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
/* istanbul ignore next */
export default createDevTools(
<DockMonitor
toggleVisibilityKey='ctrl-h'
changePositionKey='ctrl-q' >
... |
src/pages/404.js | kazupooot/kazupooot.github.io | import React from 'react';
import { Heading, Box } from 'rebass';
import Layout from '../components/Layout';
import Section from '../components/Section';
import Triangle from '../components/Triangle';
const Background = () => (
<div>
<Triangle
color="backgroundDark"
height={['35vh', '80vh']}
wi... |
src/plugins/local/components/TableContainer.js | ttrentham/Griddle | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from '../../../utils/griddleConnect';
import compose from 'recompose/compose';
import mapProps from 'recompose/mapProps';
import getContext from 'recompose/getContext';
import { classNamesForComponentSelector, stylesForComponentSelector,... |
src/Flags/Estonia.js | runjak/css-flags | // @flow
import React from 'react';
import LinearFlag from './LinearFlag';
import gradient from '../utils/gradient';
const blue = '#0073CF';
const black = '#000000';
const white = '#FFFFFF';
export default function Estonia() {
return (
<LinearFlag
gradient={`${gradient([blue, black, white])}`}
/>
)... |
src/Hangman.js | sam365/react-hangman | import React from 'react'
class Hangman extends React.Component {
constructor(props) {
super(props);
this.state = {
guesses: ['n']
};
}
guess(letter) {
this.setState({
guesses: this.state.guesses.concat([letter])
});
}
render() {
const incorrectGuesses = _.filter(this... |
src/components/layout/Section/Section.js | dreamyguy/sidhree-com | import React from 'react';
import './Section.scss';
const Section = props => {
const { sectionClasses, contentClasses, children } = props;
return (
<section className={sectionClasses || ''}>
<div className={`content${contentClasses ? ` ${contentClasses}` : ''}`}>
{children}
</div>
</sec... |
docs/src/app/components/pages/components/Table/ExampleSimple.js | barakmitz/material-ui | import React from 'react';
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table';
const TableExampleSimple = () => (
<Table>
<TableHeader>
<TableRow>
<TableHeaderColumn>ID</TableHeaderColumn>
<TableHeaderColumn>Name</TableHeaderColumn>... |
src/components/Header.js | ccoode/timer | import classNames from 'classnames'
import React from 'react'
import Button from './Button'
import Switch from './Switch'
import toggleFullscreen from '../utils/toggleFullscreen'
const Header = ({ title, subtitle, menuItems }) => (
<header className="site-header">
<span className="site-title">{`${title} - ${sub... |
legacy_back/src/routes/error/index.js | nextinnovation-corp/gacha | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import ErrorPage from './ErrorP... |
src/OverlayMixin.js | RichardLitt/react-bootstrap | import React from 'react';
import CustomPropTypes from './utils/CustomPropTypes';
import domUtils from './utils/domUtils';
export default {
propTypes: {
container: CustomPropTypes.mountable
},
componentWillUnmount() {
this._unrenderOverlay();
if (this._overlayTarget) {
this.getContainerDOMNode... |
src/ButtonRaised/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import Typography from '../Typography';
import classNames from 'classnames';
import styles from './styles.css';
function ButtonRaised(props) {
return (
<button
className={classNames(styles.raised, {
[styles.darkBackground]: props.theme ... |
src/components/Home.js | Cretezy/react-redux-router-firebase | import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router';
class Home extends React.Component {
render() {
return (
<div>
<h1>Home</h1>
<Link to='/login'>Login</Link> <Link to='/register'>Register</Link>
</div>
)
}
}
export default connect()(Home);
|
pages/schedule.js | inthegully/steveGillian | import React from 'react';
import '../css/schedule.css';
import LeftLeaf from '../images/leftleaf.png';
import RightLeaf from '../images/rightleaf.png';
export default class Schedule extends React.Component {
render() {
return (
<div className="schedule-height">
<div className="schedule-body">
... |
app/views/Proposals/Create/Agreements/Agreements.js | RcKeller/STF-Refresh | import React from 'react'
import { Row, Col, Alert } from 'antd'
/*
Agreement Component:
Renders a policy alert box with links
Map these to create giant angry walls of legal text.
*/
class Agreement extends React.Component {
agreements = {
important: [
{
link: 'https://uwstf.org/docs/... |
blueocean-material-icons/src/js/components/svg-icons/content/remove-circle.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentRemoveCircle = (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 2zm5 11H7v-2h10v2z"/>
</SvgIcon>
);
ContentRemoveCircle.displayName = 'ContentRemoveCircle';
ContentRemoveCircle... |
src/svg-icons/notification/event-available.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEventAvailable = (props) => (
<SvgIcon {...props}>
<path d="M16.53 11.06L15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17l5.94-5.94zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 ... |
index.js | hovissimo/wI18n-issue50 | import React from 'react'
import PropTypes from 'prop-types'
import DatePicker from 'react-datepicker'
import './index.css'
class Reproducer extends React.Component {
render() {
let foobar = this.props.maybe ? __("foo") : __("bar")
return <div>{foobar}
<DatePicker />
</div>; ... |
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedComputerVertically.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Grid } from 'semantic-ui-react'
const GridExampleReversedComputerVertically = () => (
<Grid reversed='computer vertically'>
<Grid.Row>
<Grid.Column>Computer Row 4</Grid.Column>
</Grid.Row>
<Grid.Row>
<Grid.Column>Computer Row 3</Grid.Column>
</Grid.Row>
... |
src/components/table/EditableCell.js | Restry/RSS | import { Table, Input, Icon, Button, Popconfirm } from 'antd';
import React from 'react';
class EditableCell extends React.Component {
state = {
value: this.props.value,
editable: true,
}
handleChange = (e) => {
const value = e.target.value;
this.setState({ value });
if (this.props... |
src/components/App/NavBarTitle.js | nuagenetworks/visualization-framework | import React from 'react';
import style from "./styles";
class NavBarTitleView extends React.Component {
render() {
const {
context,
title,
titleIcon
} = this.props;
if (context && context.hasOwnProperty("fullScreen"))
return (<div></div>);
... |
app/components/home/Home.js | natac13/vegan-recipe-app-redux | import React, { Component } from 'react';
import shouldPureComponentUpdate from 'react-pure-render/function';
/*** Components ***/
import Navbar from '../navbar/';
import PhotoBanner from '../photoBanner/';
/*** Styling ***/
import style from './style.scss';
export default class Home extends Component {
c... |
app/share/app.js | Princess310/antd-demo |
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import request from 'utils/shareRequest';
import { setHongbaoInfo } from 'utils/utils';
// Import root app
import App from 'share/containers/App';
import 'sanitize.css/sanitize.css';... |
src/Accordion.js | dozoisch/react-bootstrap | import React from 'react';
import PanelGroup from './PanelGroup';
class Accordion extends React.Component {
render() {
return (
<PanelGroup {...this.props} accordion>
{this.props.children}
</PanelGroup>
);
}
}
export default Accordion;
|
app/javascript/mastodon/features/notifications/components/notification.js | rekif/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusContainer from '../../../containers/status_container';
import AccountContainer from '../../../containers/account_container';
import { injectIntl, FormattedMessage } from 'react-intl';
... |
src/svg-icons/notification/airline-seat-legroom-extra.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatLegroomExtra = (props) => (
<SvgIcon {...props}>
<path d="M4 12V3H2v9c0 2.76 2.24 5 5 5h6v-2H7c-1.66 0-3-1.34-3-3zm18.83 5.24c-.38-.72-1.29-.97-2.03-.63l-1.09.5-3.41-6.98c-.34-.68-1.03-1.... |
src/components/loadmore/loadmore.js | n7best/react-weui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from '../../utils/classnames';
import Icon from '../icon';
/**
* Loadmore Indicators.
*
*/
const LoadMore = (props) => {
const { className, children, loading, showLine, showDot, ...others } = props;
const cls = classNames({
... |
src/select/Input.js | sthomas1618/react-crane | import React from 'react'
import PropTypes from 'prop-types'
function Input({ disabled, getRef, id, inputValue, onBlur, onChange, onFocus, ...ariaProps }) {
return (
<div className="crane-select-input">
<input
id={id}
aria-activedescendant={ariaProps['aria-activedescendant'] || undefined}
... |
src/routes/user/index.js | hrSoft-FE/mobile-vote | import React from 'react'
import { connect } from 'dva'
import './index.less'
const User = ({location, app, children, info}) => {
return (
<div className="user" style={{height: '100%'}}>
{children}
</div>
)
}
export default connect(({app, user}) => ({app, user}))(User)
|
src/components/Ngaji.js | zainfathoni/ngaji | import React from 'react';
import AddItem from './AddItem';
import VisibleItems from './VisibleItems';
import Footer from './Footer';
const Ngaji = () => (
<div>
<AddItem />
<VisibleItems />
<Footer />
</div>
)
export default Ngaji; |
src/destinations/Swatch.js | RoyalIcing/gateau | import R from 'ramda'
import React from 'react'
import { Seed } from 'react-seeds'
const hexColorRegex = /^[a-fA-F0-9]{3,6}$/
const defaultSwatchSize = 32
const parseColorValue = (alpha = 1) => R.ifElse(
R.test(hexColorRegex),
(value) => `#${value}`,
R.pipe(
R.split(/[,]?\s+/),
R.cond([
[
R.propEq('leng... |
src/svg-icons/maps/local-hotel.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsLocalHotel = pu... |
ui/src/containers/BasicQueryBuilder/index.js | LearningLocker/learninglocker | import React from 'react';
import PropTypes from 'prop-types';
import { compose, setPropTypes, defaultProps, shouldUpdate } from 'recompose';
import { Map, List } from 'immutable';
import { changeCriteria, deleteCriterion, addCriterionFromSection, getCriteria } from 'ui/utils/queries';
import QueryBuilderSections from ... |
src/error/index.js | marchisbogdan/licenta-front | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
src/Parser/DeathKnight/Unholy/Modules/Talents/UnholyFrenzy.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import StatisticBox... |
admin/client/App/screens/List/index.js | everisARQ/keystone | /**
* The list view is a paginated table of all items in the list. It can show a
* variety of information about the individual items in columns.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import { BlankState, Button, Container, FormInput, InputGroup, Paginat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.