path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/parser/monk/brewmaster/modules/spells/GiftOfTheOx.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber } from 'common/format';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import StatisticBox from 'interface/others/StatisticBox';
imp... |
src/html/tags/HtmlTagImg.js | saketkumar95/zulip-mobile | /* @flow */
import React from 'react';
import { Image, StyleSheet, TouchableWithoutFeedback } from 'react-native';
import { getResource, isEmojiUrl } from '../../utils/url';
import { Auth, Message, PushRouteAction, StyleObj } from '../../types';
import { Touchable } from '../../common';
const styles = StyleSheet.crea... |
packages/ui/lib/components/LibraryListTypeToggle/index.js | nukeop/nuclear | import React from 'react';
import PropTypes from 'prop-types';
import { Button } from 'semantic-ui-react';
import { withHandlers } from 'recompose';
import styles from './styles.scss';
export const LIST_TYPE = Object.freeze({
SIMPLE_LIST: 'simple-list',
ALBUM_GRID: 'album-grid',
ALBUM_LIST: 'album-list',
FOLD... |
app/components/magnetopause/MagnetopauseSettings.js | sheldhur/Vector | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Modal, Icon, Button, Input, Select, Form } from 'antd';
import * as mainActions from './../../actions/main';
import * as magnetopauseActions from './.... |
src/components/ContainerDetailsSubheader.react.js | lzbgt/kitematic | import _ from 'underscore';
import React from 'react';
import shell from 'shell';
import metrics from '../utils/MetricsUtil';
import ContainerUtil from '../utils/ContainerUtil';
import classNames from 'classnames';
import containerActions from '../actions/ContainerActions';
import dockerMachineUtil from '../utils/Docke... |
src/components/RestaurantViewDetails.js | soyguijarro/lunchroulette | import React from 'react';
import PropTypes from 'prop-types';
import Icon from './Icon';
const RestaurantViewDetails = ({
address, phone, websiteUrl, googlePageUrl, distanceInTime, distanceInSpace
}) => (
<div
className="restaurant__details"
>
<div
className="restaurant__details--top"
>
... |
app/components/Progress.js | surrealroad/electron-react-boilerplate | // @flow
import React, { Component } from 'react';
import { ProgressCircle } from 'react-desktop/macOs';
export default class Progress extends Component {
props: {
size: 25,
hidden: boolean
};
render() {
return (
<ProgressCircle size={this.props.size} hidden={this.props.hidden} />
);
}
}... |
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js | ebihara99999/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import TextIconButton from '../components/text_icon_button';
import { changeComposeSensitivity } from '../../../actions/compose';
import Motion from 'react-motion/lib/Motion';
import spring from 'react-motion/lib/sprin... |
node_modules/react-bootstrap/es/NavItem.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 ... |
fields/types/number/NumberColumn.js | nickhsine/keystone | import React from 'react';
import numeral from 'numeral';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var NumberColumn = React.createClass({
displayName: 'NumberColumn',
propTypes: {
col: React.PropTyp... |
react/features/deep-linking/components/NoMobileApp.web.js | gpolitis/jitsi-meet | /* @flow */
import React, { Component } from 'react';
import { createDeepLinkingPageEvent, sendAnalytics } from '../../analytics';
declare var interfaceConfig: Object;
/**
* React component representing no mobile app page.
*
* @class NoMobileApp
*/
export default class NoMobileApp extends Component<*> {
/**... |
src/components/Title/Title.story.js | OSBI/saiku-react-starter | /**
* Copyright 2017 OSBI Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
actor-apps/app-web/src/app/components/modals/MyProfile.react.js | berserkertdl/actor-platform | import React from 'react';
import { KeyCodes } from 'constants/ActorAppConstants';
import MyProfileActions from 'actions/MyProfileActionCreators';
import MyProfileStore from 'stores/MyProfileStore';
import AvatarItem from 'components/common/AvatarItem.react';
import Modal from 'react-modal';
import { Styles, TextFi... |
components/webrtc/SpeechRecognition.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import { Input, Button, Label } from 'semantic-ui-react';
import ISO6391 from 'iso-639-1';
class SpeechRecognition extends React.Component {
/*
Props:
isInitiator - var
sendRTCMessage - func
showInviteModal - func
subtitle - var
*/
... |
Libraries/Components/TextInput/InputAccessoryView.js | exponent/react-native | /**
* 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
* @format
*/
'use strict';
const Platform = require('../../Utilities/Platform');
const React = require('react');
const ... |
react-router-tutorial/lessons/05-active-links/modules/Repos.js | zerotung/practices-and-notes | import React from 'react'
export default React.createClass({
render() {
return <div>Repos</div>
}
})
|
index.js | zuhairp/LearningSpace | import React from 'react';
import ReactDOM from 'react-dom';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import OptionsScreen from './scenes/OptionsScreen';
import VRScene from './scenes/VRScene';
import getFlashcards from './utils/flashcards';
class Application extends React.Component {
co... |
src/widgets/modalChildren/BreachDisplay.js | sussol/mobile | /* eslint-disable react/forbid-prop-types */
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2020
*/
import React from 'react';
import { connect } from 'react-redux';
import { View, FlatList, StyleSheet } from 'react-native';
import PropTypes from 'prop-types';
import { getPageInfoColumns } from '../../page... |
src/pages/writing.js | mattmischuk/m1x | // @flow
import React from 'react'
import { UnstyledList } from '../components/typography'
import { PostTitle, PostGroup, PostLink } from '../scenes/feed'
type Props = {
data: Object,
}
const WritingIndex = ({ data }: Props) => {
const { allMarkdownRemark } = data
const { edges } = allMarkdownRemark
const P... |
src/js/playground/QuickStart.js | ludonow/ludo-beta-react | import React from 'react';
import { Link } from "react-router";
import styled from 'styled-components';
import { baseUrl } from '../baseurl-config';
import createIcon from '../../images/create.png';
const StyledLink = styled(Link)`
color: black;
text-decoration: none;
`;
const QuickStartCard = styled.div`
... |
example-slack-message/src/SlackBubble.js | atFriendly/react-native-friendly-chat | /* eslint-disable no-underscore-dangle, no-use-before-define */
import React from 'react';
import {
Text,
Clipboard,
StyleSheet,
TouchableOpacity,
View,
ViewPropTypes,
Platform,
} from 'react-native';
import { MessageText, MessageImage, Time, utils } from 'react-native-gifted-chat';
const { isSameUser,... |
Libraries/Components/WebView/WebView.ios.js | tadeuzagallo/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... |
src/decorators/withViewport.js | vbdoug/ISOReStack | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height:... |
src/routes/contact/index.js | malinowsky/dataroot_03 | /**
* 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/components/svg/Horse.js | JoeTheDave/onitama | import PropTypes from 'prop-types';
import React from 'react';
export const Horse = ({ fillColor }) => (
<svg width="110px" height="130px" viewBox="0 0 180 220" preserveAspectRatio="xMidYMid meet">
<g transform="translate(0, 220) scale(0.1, -0.1)" fill={fillColor} stroke="none">
<path d="M1040 2156 c-59 -3... |
stories/Avatar.stories.js | tidepool-org/blip | import React from 'react';
import { withDesign } from 'storybook-addon-designs';
import { ThemeProvider } from 'styled-components';
import baseTheme from '../app/themes/baseTheme';
import Avatar from '../app/components/elements/Avatar';
const withTheme = Story => (
<ThemeProvider theme={baseTheme}>
<Story />
... |
components/test/Nav.js | kimeva/zerofallgravity | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Link from 'next/link';
import find from 'lodash/find';
import { topNavigationLinks } from '../../helpers/util';
import {
Nav,
NavContainer,
Brand,
NavBar,
NavMobile,
NavItems,
NavItem,
ItemText,
ActiveItemText,
Hamb... |
internals/templates/homePage.js | nimzco/takemyidea-ui | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
export function HomePage() {
return (
<h1>This is the Homepage!</h1>
);
}
export default HomePage;
|
client/room.js | ben-pr-p/assemble | import React from 'react'
import { render } from 'react-dom'
import { LocaleProvider } from 'antd'
import enUS from 'antd/lib/locale-provider/en_US'
import Main from './room/main'
window.onload = () => {
render(
<LocaleProvider locale={enUS}>
<Main />
</LocaleProvider>,
document.querySelector('#rea... |
client/src/components/generic/edit-form.js | commoncode/ontap | /**
* EditForm
* Extendable class that provides some help for editing forms.
*/
import React from 'react';
import reactPropTypes from 'prop-types';
import autobind from 'autobind-decorator';
@autobind
class EditForm extends React.Component {
static propTypes = {
model: reactPropTypes.object, // eslint-disa... |
test/e2e/redux-zone/redux-zone.js | opbeat/opbeat-react | import '../opbeat-e2e'
import 'babel-polyfill'
import { createOpbeatMiddleware } from '../../../dist/opbeat-react/redux'
import { push } from 'react-router-redux'
import React from 'react'
import ReactDOM from 'react-dom'
import { createStore, applyMiddleware } from 'redux'
import { Router, Route, IndexRedirect } fr... |
src/MediaHeading.js | apkiernan/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import elementType from 'react-prop-types/lib/elementType';
import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
const propTypes = {
componentClass: elementType,
};
const defaultProps = {
componentClass: 'h4',
};
class Media... |
blueprints/smart/files/__root__/containers/__name__/__name__.js | nicolas-amabile/counter | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
type Props = {
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
const mapStateToProps = (state) => {
return {}
}
const... |
MovieApp/app/index.js | Ronny25/Ronny25.github.io | //Libraries
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
//Routes
import { routes } from './routes';
//Store
import configureStore from './redux/store/configureStore';
const store = configureStore();
render(
... |
src/scripts/views/comments.js | sharnee/instaClone | import React from 'react'
import CommentSubmit from './commentSubmit'
var Comments = React.createClass({
_listComments: function(commentsArray) {
var commentArr = []
for ( var i = 0; i < commentsArray.length; i++) {
commentArr.push( <li><strong> {commentsArray[i].byUser} </strong> {commentsArray[i].message} </... |
tests/components/SVGIcon-test.js | abzfarah/Pearson.NAPLAN.GnomeH | import {test} from 'tape';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import SVGIcon from '../../src/components/SVGIcon';
import CSSClassnames from '../../src/components/utils/CSSClassnames';
const CONTROL_ICON = CSSClassnames.CONTROL_ICON;
test('loads a default SVGIcon', (t) => {
... |
app/screens/Favourites/FavouritesScreenView.js | JSSolutions/Perfi | import React from 'react';
import T from 'prop-types';
import { View } from 'react-native';
import {
Subtitle,
DateFilter,
FlatList,
Separator,
TransactionItem,
} from '../../components';
import s from './styles';
const Favourites = ({
concatenatedData,
onDeleteFromFavourites,
onGo... |
src/components/hahoo/Toast/Toast.js | hahoocn/hahoo-admin | import React from 'react';
import styles from './Toast.css';
import Loading from '../Loading/Loading';
import dhIcon from '../../../assets/icons/hahoo-ui/dui.svg';
import warnIcon from '../../../assets/icons/hahoo-ui/warn.svg';
import wrongIcon from '../../../assets/icons/hahoo-ui/wrong.svg';
class Toast extends Reac... |
packages/ringcentral-widgets-docs/src/app/pages/Components/ActiveCallActionMenu/Demo.js | ringcentral/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import ActiveCallActionMenu from 'ringcentral-widgets/components/ActiveCallActionMenu';
/**
* A example of `ActiveCallActionMenu`
*/
const ActiveCallActionMenuDemo = () => (
<ActiveCallActionMenu
currentLocale="en-US"
disableLinks={false}
hasEntity... |
addons/themes/read-only/layouts/Blog.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import scrollToElement from 'scroll-to-element';
import NavPanel from '../includes/NavPanel';
let Blog = React.createClass({
component... |
example/app.js | n7best/react-weui | import React from 'react';
import ReactDOM from 'react-dom';
import { TransitionGroup, CSSTransition } from 'react-transition-group';
import {
Switch,
HashRouter as Router,
Route,
IndexRoute,
Link
} from 'react-router-dom';
import FastClick from 'fastclick';
import Pages from './index';
import './style.less';... |
app/containers/HomePage/index.js | bsr203/react-boilerplate | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import shouldPureComponentUpdate from 'react-pure-render/function';
import { createSelector } from 'reselect';
import {
... |
docs/src/app/components/pages/components/RaisedButton/Page.js | hwo411/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import raisedButtonReadmeText from './README';
import raisedButtonExampleSimpleC... |
src/components/app.js | tedjames/reduxAuth | import React, { Component } from 'react';
import Header from './header'
export default class App extends Component {
render() {
return (
<div>
<Header />
{this.props.children}
</div>
);
}
}
|
public/app/src/components/Button.js | wjwu/blog | import React from 'react';
import PropTypes from 'prop-types';
const Button = props => {
const cls = `btn btn-${props.type} btn-${props.size}`;
return (
<button type='button' className={ cls } onClick={props.click}>
{ props.children }
</button>);
};
Button.defaultProps = {
type: 'default',
size: '... |
V2-Node/esquenta.v2/UI/src/views/Icons/Flags/Flags.js | leandrocristovao/esquenta | import React, { Component } from 'react';
import { Card, CardBody, CardHeader, Col, Row } from 'reactstrap';
class Flags extends Component {
render() {
return (
<div className="animated fadeIn">
<Card>
<CardHeader>
<i className="fa fa-font-awesome"></i> Flags
</CardH... |
app/components/movies/Movies.js | CodeRowerSoftware/react-native-starter-app | /**
* Created by garima.kaila on 2017-04-14.
*/
import React, { Component } from 'react';
import {
ScrollView,
View,
Text
} from 'react-native';
var MovieItem = require('./MovieItem');
class Movies extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
app/src/index.js | udacityalumni/alumni-client | /* eslint-disable */ // React must be in scope here
import React from 'react';
/* eslint-enable */
import { render } from 'react-dom';
import { match } from 'react-router';
import { history } from './store';
import RouterApp, { routes } from './routes';
import { install } from 'offline-plugin/runtime';
import '../style... |
src/parser/deathknight/frost/modules/features/AlwaysBeCasting.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
class AlwaysBeCasting extends CoreAlwaysBeCasting {
get downtimeSuggestionThresholds() ... |
src/components/moment/moment.js | ogoss/react-contacts-demo | import React from 'react';
import ApiList from '../../apiList';
import { Card, CardMedia, CardTitle } from 'material-ui/Card';
const cardStyle = {
'marginBottom': '10px'
};
const cardTitleStyle = {
'padding': '8px 14px'
};
const titleStyle = {
'fontSize': '14px',
'lineHeight': '18px',
'marginBottom': '4px'
}... |
src/app/components/Home.js | akzuki/BoardgameAPI | import React from 'react';
import { Header } from './Header';
import { ProductGridView } from './ProductGridView';
import { Footer } from './Footer';
import FacebookLogin from 'react-facebook-login';
export class Home extends React.Component {
render() {
return (
<div>
<Header/>
... |
pages/demos/avatars.js | AndriusBil/material-ui | // @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from 'docs/src/pages/demos/avatars/avatars.md';
function Page() {
return (
<MarkdownDocs
markdown={markdown}
demos={{
... |
src/browser/todos/Todos.js | chad099/react-native-boilerplate | // @flow
import React from 'react';
import todosMessages from '../../common/todos/todosMessages';
import type { State, Todo } from '../../common/types';
import { Box, Button, Text } from '../../common/components';
import { compose, isEmpty, prop, reverse, sortBy, values } from 'ramda';
import { connect } from 'react-re... |
src/core/DefaultDropzoneRenderer/index.js | dlennox24/ricro-app-template | import Paper from '@material-ui/core/Paper';
import withStyles from '@material-ui/core/styles/withStyles';
import Typography from '@material-ui/core/Typography';
import PropTypes from 'prop-types';
import React from 'react';
import FileDropzoneList from '../../component/FileDropzoneList';
import DDZAppbar from './DDZAp... |
client/modules/users/components/.stories/logout.js | kaibagoh/PitchSpot | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import Logout from '../logout.jsx';
storiesOf('users.Logout', module)
.add('default view', () => {
return (
<Logout />
);
})
|
client/src/components/Page.js | rantav/reversim-summit-2017 | import React, { Component } from 'react';
import Navbar from './Navbar';
import Footer from "./Footer";
class Page extends Component {
componentDidMount() {
document.title = this.props.title || "Reversim Summit 2017";
}
render() {
const { children, isHome, user, isSmallScreen, onLogout } = this.... |
node_modules/react-bootstrap/es/Checkbox.js | superKaigon/TheCave | 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 ... |
docs/src/Routes.js | westonplatter/react-bootstrap | import React from 'react';
import Root from './Root';
import HomePage from './HomePage';
import IntroductionPage from './IntroductionPage';
import GettingStartedPage from './GettingStartedPage';
import ComponentsPage from './ComponentsPage';
import SupportPage from './SupportPage';
import NotFoundPage from './NotFound... |
packages/material-ui-icons/src/Replay10.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Replay10 = props =>
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.1 11H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0 .6-.1.... |
src/KeyboardAwareTabBarComponent.js | ardaogulcan/react-native-keyboard-accessory | import React from 'react'
import PropTypes from 'prop-types';
import { Keyboard, Platform } from 'react-native'
export default class KeyboardAwareTabBarComponent extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
isVisible: true
}
}
componentWillMount() {
con... |
examples/huge-apps/routes/Course/components/Course.js | cojennin/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 {
render () {
let { children, params } = this.pro... |
node_modules/react-router/es6/RouteUtils.js | thuannh1027/react-todo-app | 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; };
import React from 'react';
function isValidChild(object) {
... |
app/client/src/routes/welcome/index.js | uprisecampaigns/uprise-app | import React from 'react';
import Layout from 'components/Layout';
import Welcome from 'scenes/Welcome';
export default {
path: '/welcome',
action(context) {
return {
title: 'Welcome to UpRise',
component: <Layout><Welcome /></Layout>,
};
},
};
|
complete-example/client/src/components/presentation/headers/heading.js | jpaulptr/ecom-react | import React from 'react';
import PropTypes from 'prop-types';
const Heading = ({ level, children }) => {
switch (level) {
case 1:
return (<h1>{children}</h1>);
case 2:
return (<h2>{children}</h2>);
case 3:
return (<h3>{children}</h3>);
... |
components/Deck/ContentPanel/AttachQuestions/AttachSlideWiki.js | slidewiki/slidewiki-platform | import React from 'react';
import {connectToStores} from 'fluxible-addons-react';
import UserProfileStore from '../../../../stores/UserProfileStore';
import AttachSubdeckModalStore from '../../../../stores/AttachSubdeckModalStore';
import AttachQuestionsModalStore from '../../../../stores/AttachQuestionsModalStore';
im... |
fields/types/code/CodeField.js | dvdcastro/keystone | import _ from 'lodash';
import CodeMirror from 'codemirror';
import Field from '../Field';
import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormInput } from 'elemental';
import classnames from 'classnames';
/**
* TODO:
* - Remove dependency on underscore
*/
// See CodeMirror docs for AP... |
containers/meta/DevTools.js | caTUstrophy/frontend | import React from 'react'
import { createDevTools } from 'redux-devtools'
import DockMonitor from 'redux-devtools-dock-monitor'
import SliderMonitor from 'redux-slider-monitor'
import Inspector from 'redux-devtools-inspector'
import ChartMonitor from 'redux-devtools-chart-monitor'
export default createDevTools(
<Do... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | carlosmontes/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;
|
examples/src/components/RemoteSelectField.js | silppuri/react-select | import React from 'react';
import Select from 'react-select';
var RemoteSelectField = React.createClass({
displayName: 'RemoteSelectField',
propTypes: {
hint: React.PropTypes.string,
label: React.PropTypes.string,
},
loadOptions (input, callback) {
input = input.toLowerCase();
var rtn = {
options: [
... |
src/routes/admin/index.js | bobbybeckner/ha-catalyst-test | /**
* 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/components/common/icons/Checked.js | WendellLiu/GoodJobShare | import React from 'react';
/* eslint-disable */
const Checked = (props) => (
<svg {...props} width="148" height="148" viewBox="0 0 148 148">
<g fillRule="evenodd">
<path d="M106.432812,41.823875 L55.7566875,97.8349375 L39.7773125,80.174375 C38.0660625,78.278125 35.1384375,78.1370625 33.2468125,79.846 C31.3... |
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxtogglebutton.js | dhawal9035/WebPLP | /*
jQWidgets v4.5.0 (2017-Jan)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
let jqxToggleButton = React.createClass ({
getInitialState: function () {
return { value: '' };
},
componentDidMount: function () {
let options = this.manageAttributes(... |
packages/react-ui-components/src/_lib/testUtils.js | mstruebing/PackageFactory.Guevara | import React from 'react';
/**
* A function which returns a simple React element which can be
* used as a test stub for cross component dependencies.
*/
export const createStubComponent = componentName => props => <div data-component-name={componentName} {...props} style={{}}/>;
|
docs/app/Examples/elements/Image/Variations/ImageFluidExample.js | jamiehill/stardust | import React from 'react'
import { Image } from 'stardust'
const src = 'http://semantic-ui.com/images/wireframe/image.png'
const ImageFluidExample = () => (
<Image src={src} fluid />
)
export default ImageFluidExample
|
src/components/atoms/Tooltip/index.js | DimensionLab/narc | import React from 'react'
import PropTypes from 'prop-types'
import styled, { css } from 'styled-components'
import { font } from 'styled-theme'
import { ifProp } from 'styled-tools'
const opposites = {
top: 'bottom',
right: 'left',
bottom: 'top',
left: 'right',
}
export const opposite = ({ position }) => opp... |
app/components/analytics/analytics.js | imankit/dashboard-ui | /**
* Created by Darkstar on 11/29/2016.
*/
import React from 'react';
import {connect} from 'react-redux';
import Toolbar from '../toolbar/toolbar.js';
import FlatButton from 'material-ui/FlatButton';
import StorageIcon from 'material-ui/svg-icons/device/sd-storage';
import APIIcon from 'material-ui/svg-icons/action... |
src/components/Home.js | danielemery/natural-goodness | import React, { Component } from 'react';
import { Jumbotron } from 'reactstrap';
class Home extends Component {
render() {
return (
<div>
<Jumbotron>
<h1>Coming Soon</h1>
<p className="lead">A new way of managing the Natural Goodness Co-O... |
node_modules/react-native-svg/elements/Circle.js | Helena-High/school-app | import React from 'react';
import createReactNativeComponentClass from 'react/lib/createReactNativeComponentClass';
import Shape from './Shape';
import {CircleAttributes} from '../lib/attributes';
import {pathProps, numberProp} from '../lib/props';
class Circle extends Shape {
static displayName = 'Circle';
s... |
templates/rubix/demo/src/routes/Datatablesjs.js | jeffthemaximum/jeffline | import React from 'react';
import ReactDOM from 'react-dom';
import {
Row,
Col,
Grid,
Panel,
Table,
PanelBody,
PanelHeader,
FormControl,
PanelContainer,
} from '@sketchpixy/rubix';
class DatatableComponent extends React.Component {
componentDidMount() {
$(ReactDOM.findDOMNode(this.example))
... |
lib/MenuSection/stories/MenuSection.stories.js | folio-org/stripes-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import withReadme from 'storybook-readme/with-readme';
import readme from '../readme.md';
import BasicUsage from './BasicUsage';
import DropdownExample from './DropdownExample';
storiesOf('MenuSection', module)
.addDecorator(withReadme(readme))... |
src/App.js | manovotny/client-side-render-and-seo | import React from 'react';
import logo from './logo.svg';
import './App.css';
const App = () =>
<section>
<header className="header">
<img src={logo} className="logo" alt="logo"/>
<h1>Welcome to a client side rendered React site! Let's see how seo does...</h1>
</header>
... |
lib/components/modifications-map/reroute-layer.js | conveyal/analysis-ui | import lineSlice from '@turf/line-slice'
import {point} from '@turf/helpers'
import get from 'lodash/get'
import dynamic from 'next/dynamic'
import React from 'react'
import colors from 'lib/constants/colors'
import useModificationPatterns from 'lib/hooks/use-modification-patterns'
import Pane from '../map/pane'
con... |
docs/src/app/components/pages/components/List/ExampleFolders.js | tan-jerene/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import ActionInfo from 'material-ui/svg-icons/action/info';
import Divider from 'material-ui/Divider';
import Subheader from 'material-ui/Subheader';
import Avatar from 'material-ui/Avatar... |
src/components/TelegramLoginWidget.js | kpi-ua/ecampus.kpi.ua | import React from 'react';
import PropTypes from 'prop-types';
class TelegramLoginWidget extends React.Component {
componentDidMount() {
const {
botName,
size,
requestAccess,
showUserPic,
callbackOnAuth,
} = this.props;
window.TelegramLoginWidget = {
callbackOnAuth: (u... |
src/App.js | thadiggitystank/react-hot-boilerplate | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world.</h1>
);
}
}
|
examples/react-todomvc/components/Header.js | lahmatiy/component-inspector | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TodoTextInput from './TodoTextInput';
export default class Header extends Component {
static propTypes = {
addTodo: PropTypes.func.isRequired
};
handleSave(text) {
if (text.length !== 0) {
this.props.addTodo(text)... |
src/client/StoryList.js | JiLiZART/tmfeed-menu | import React from 'react'
import Story from './Story.js'
import _ from 'lodash'
export default class StoryList extends React.Component {
render () {
var onUrlClick = this.props.onUrlClick;
var onMarkAsRead = this.props.onMarkAsRead;
var storyNodes = _.map(this.props.stories, function (story, index) {
... |
packages/mineral-ui-icons/src/IconThumbsUpDown.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconThumbsUpDown(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconP... |
src/components/TicketList/Ticket/Details/index.js | sdwvit/coding-challenge-frontend-b | import React from 'react';
import { string, number, object, func } from 'prop-types';
import { Action } from '../../../';
import getGmapsUrl from '../../../../actions/getGmapsUrl';
import './style.scss';
function Details({ t, origin, destination, duration, transfers, review }) {
const transferStr = (
<strong>{
... |
src/Breadcrumb.js | dozoisch/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import BreadcrumbItem from './BreadcrumbItem';
import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
class Breadcrumb extends React.Component {
render() {
const { className, ...props } = this.props;
const [bsProps, elemen... |
docs/app/Examples/elements/List/ContentVariations/ListExampleFloated.js | ben174/Semantic-UI-React | import React from 'react'
import { Button, Image, List } from 'semantic-ui-react'
const ListExampleFloated = () => (
<List divided verticalAlign='middle'>
<List.Item>
<List.Content floated='right'>
<Button>Add</Button>
</List.Content>
<Image avatar src='http://semantic-ui.com/images/ava... |
src/components/Loader/Loader.js | City-of-Helsinki/helerm-ui | import React from 'react';
import PropTypes from 'prop-types';
import './Loader.scss';
const Loader = ({ show }) => (
show
? (<div className='loader-container'>
<span className='fa fa-2x fa-spinner fa-spin loader'/>
</div>)
: null
);
Loader.propTypes = {
show: PropTypes.bool.isRequired
};
expor... |
examples/huge-apps/app.js | CivBase/react-router | import React from 'react';
import { Router } from 'react-router';
import stubbedCourses from './stubs/COURSES';
var rootRoute = {
component: 'div',
childRoutes: [{
path: '/',
component: require('./components/App'),
childRoutes: [
require('./routes/Calendar'),
require('./routes/Course'),
... |
webpack/move_to_foreman/components/common/table/formatters/collapseableAndSelectionCellFormatter.js | ares/katello | import React from 'react';
import selectionCellFormatter from './selectionCellFormatter';
import CollapseSubscriptionGroupButton from '../components/CollapseSubscriptionGroupButton';
export default (collapseableController, selectionController, additionalData) => {
const shouldShowCollapseButton = collapseableControl... |
.storybook/preview.js | LN-Zap/zap-desktop | import React from 'react'
import { addParameters, addDecorator, configure, setAddon } from '@storybook/react'
import { withThemes } from 'storybook-styled-components'
import { withTheme } from 'styled-components'
import chaptersAddon, { setDefaults } from 'react-storybook-addon-chapters'
import { withKnobs } from '@sto... |
assets/jqwidgets/demos/react/app/datetimeinput/righttoleftlayout/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDateTimeInput from '../../../jqwidgets-react/react_jqxdatetimeinput.js';
class App extends React.Component {
render() {
return (
<JqxDateTimeInput
width={250} height={25}
culture={'he-IL'} rt... |
docs/src/app/AppRoutes.js | manchesergit/material-ui | import React from 'react';
import {
Route,
Redirect,
IndexRoute,
} from 'react-router';
// Here we define all our material-ui ReactComponents.
import Master from './components/Master';
import Home from './components/pages/Home';
import RequiredKnowledge from './components/pages/get-started/RequiredKnowledge';
i... |
examples/files/react/reactDom.js | dabbott/react-express | import React from 'react'
import { render } from 'react-dom'
// Create a React element
const element = <button>Hello, world!</button>
// Render it into the DOM
render(element, document.querySelector('#app'))
|
src/components/tables/RankingsTable.js | availabs/kauffman-atlas | /* @flow */
import React from 'react'
import { connect } from 'react-redux'
import CategoryNames from 'components/misc/categoryNames'
import classes from 'styles/sitewide/index.scss'
var roundFormat = d3.format(".2f")
import d3 from 'd3'
let categories = {
combined: ['combinedcomposite', 'densitycomposite', 'fluidit... |
packages/shared/ReactGlobalSharedState.js | apaatsio/react | /**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
export const ReactCurrentO... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.