path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
analysis/demonhunterhavoc/src/modules/talents/TrailofRuin.js | anom0ly/WoWAnalyzer | import { formatThousands } from 'common/format';
import SPELLS from 'common/SPELLS';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER';
import TalentStatisticBox from 'parser/ui/TalentStatisticBox';
import R... |
Lumino/js/screens/TemperatureForm.js | evonove/lumino | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { reduxForm, change, submit } from 'redux-form';
import { View, Button, Alert } from 'react-native';
import { Picker } from 'native-base';
import styles from './style';
import { onTempControllerSubmit } from '.... |
docs/src/app/app.js | hwo411/material-ui | import React from 'react';
import {render} from 'react-dom';
import {Router, useRouterHistory} from 'react-router';
import AppRoutes from './AppRoutes';
import injectTapEventPlugin from 'react-tap-event-plugin';
import {createHashHistory} from 'history';
// Helpers for debugging
window.React = React;
window.Perf = req... |
frontend/js/components/ecosystems/SurveyCreatorGeneral.js | Code4HR/okcandidate-platform | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Card from './../atoms/Card';
import TextField from './../organisms/TextField';
import RadioButtons from './../organisms/RadioButtons';
import Checkbox from './../molecules/Checkbox';
import Tray... |
node_modules/react-icons/go/mortar-board.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const GoMortarBoard = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m19.6 23l-9.6-3v6.3s4.5 3.7 10 3.7 10-1.2 10-3.7v-6.3l-9.6 3c-0.2 0-0.6 0-0.9 0h0.1z m0.7-16c-0.2 0-0.4 0-0.5 0l-19.1 5.9c-0.9 0.3-0.9 1.4 0 1.7l4.3 1.4v4.4c-0.7 ... |
Libraries/Modal/Modal.js | Maxwell2022/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... |
client/src/components/dashboard/common/ChatIconPopup.js | no-stack-dub-sack/alumni-network | import { Popup } from 'semantic-ui-react';
import propTypes from 'prop-types';
import React from 'react';
const ChatIconPopup = ({
ChatIcon,
disableChat,
initiatePrivateChat,
username
}) => {
const chatIcon = (
<ChatIcon
className="comments icon"
disableChat={disableChat}
onClick={(e) =... |
src/components/common/svg-icons/notification/sms.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSms = (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-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/>
</SvgIcon>
);
NotificationSm... |
app/components/feed-content-pane/feed-content-view.js | derycktse/reedee | import React from 'react'
import styles from './feed-content-view.css'
function createMarkup(content) {
return { __html: content };
}
const FeedContentView = ({ content }) => {
return (
<div className={styles['feeds-content']}>
<div dangerouslySetInnerHTML={createMarkup(content)}>
</div>
</div>
... |
src/components/Share/index.js | hasibsahibzada/quran.com-frontend | import React from 'react';
import { ShareButtons, generateShareIcon } from 'react-share';
import styled from 'styled-components';
import * as customPropTypes from 'customPropTypes';
import FbDefault from '../../../static/images/FB-grn.png';
import TwitterDefault from '../../../static/images/Twitter-grn.png';
const { F... |
app/javascript/mastodon/components/autosuggest_hashtag.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ShortNumber from 'mastodon/components/short_number';
import { FormattedMessage } from 'react-intl';
export default class AutosuggestHashtag extends React.PureComponent {
static propTypes = {
tag: PropTypes.shape({
name: PropTypes.string... |
src/pages/NotFound.js | DIYAbility/Capacita-Controller-Interface | import React, { Component } from 'react';
import { PageHeader } from 'react-bootstrap';
class NotFound extends Component {
render() {
return (
<div className="page">
<PageHeader>Page Not Found!</PageHeader>
</div>
);
}
}
export default NotFound;
|
app/javascript/components/RoundMap/CompetitorsList/CompetitorResult/Direction.js | skyderby/skyderby | import React from 'react'
import styled from 'styled-components'
import PropTypes from 'prop-types'
const Direction = ({ className, direction }) => (
<span className={className}>
<i className="far fa-compass" />
{direction}°
</span>
)
Direction.propTypes = {
className: PropTypes.string.isRequ... |
react-flux-mui/js/material-ui/src/svg-icons/action/timeline.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTimeline = (props) => (
<SvgIcon {...props}>
<path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07... |
src/charts/base-chart.js | WaldoJeffers/react-dc | import React from 'react'
export default class BaseChart extends React.Component{
render(){
return <div ref={chart => this.chart = chart}></div>
}
}
|
src/svg-icons/editor/format-textdirection-r-to-l.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatTextdirectionRToL = (props) => (
<SvgIcon {...props}>
<path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/>
</SvgIcon>
);
EditorFormatTextdirectionRTo... |
websocket/client/Client/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | prayuditb/tryout-01 | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
src/Modal.js | Lucifier129/react-bootstrap |
/* eslint-disable react/prop-types */
import classNames from 'classnames';
import React from 'react';
import ReactDOM from 'react-dom';
import tbsUtils, { bsClass, bsSizes } from './utils/bootstrapUtils';
import { Sizes } from './styleMaps';
import getScrollbarSize from 'dom-helpers/util/scrollbarSize';
import canUse... |
index.js | terrylinla/react-native-sketch-canvas | import React from 'react'
import PropTypes from 'prop-types'
import ReactNative, {
View,
Text,
TouchableOpacity,
FlatList,
ViewPropTypes,
} from 'react-native'
import SketchCanvas from './src/SketchCanvas'
import { requestPermissions } from './src/handlePermissions';
export default class RNSketchCanvas exten... |
frontend/src/Movie/Editor/Delete/DeleteMovieModal.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import DeleteMovieModalContentConnector from './DeleteMovieModalContentConnector';
function DeleteMovieModal(props) {
const {
isOpen,
onModalClose,
...otherProps
} = props;
return (
<Modal
... |
src/svg-icons/av/volume-off.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVolumeOff = (props) => (
<SvgIcon {...props}>
<path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86... |
src/svg-icons/editor/format-size.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatSize = (props) => (
<SvgIcon {...props}>
<path d="M9 4v3h5v12h3V7h5V4H9zm-6 8h3v7h3v-7h3V9H3v3z"/>
</SvgIcon>
);
EditorFormatSize = pure(EditorFormatSize);
EditorFormatSize.displayName = 'EditorFo... |
{{cookiecutter.repo_name}}/app/src/views/auth/Login.js | thorgate/django-project-template | import React from 'react';
import PropTypes from 'prop-types';
import { Helmet } from 'react-helmet-async';
import { connect } from 'react-redux';
import { useTranslation } from 'react-i18next';
import AuthLayout from 'components/layouts/AuthLayout';
import LoginForm from 'forms/auth/Login';
import withView from 'deco... |
enrolment-ui/src/modules/Projects/components/ReqForm.js | overture-stack/enrolment | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { initialize } from 'redux-form';
import RequestProgressBar from '../../Common/RequestProgressBar';
import ReqFormStep1 from './ReqFormStep1';
import ReqFormStep2 from './ReqFormStep2'... |
CMS/redux/components/presentational/title.js | BJCheng/cs554-assignments | import React from 'react';
import { Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle } from 'material-ui/Toolbar';
import FlatButton from 'material-ui/FlatButton';
import ActionAndroid from 'material-ui/svg-icons/action/android';
import ActionFavorite from 'material-ui/svg-icons/action/favorite';
import ContentCre... |
react_touchable/setup.js | devSC/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
import TouchableTest from './TouchableTest'
export default class setup extends Component {
render() {
return ... |
docs/src/app/components/pages/components/Popover/ExampleAnimation.js | igorbt/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import Popover, {PopoverAnimationVertical} from 'material-ui/Popover';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
export default class PopoverExampleAnimation extends React.Component {
constructor(... |
src/svg-icons/action/trending-flat.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrendingFlat = (props) => (
<SvgIcon {...props}>
<path d="M22 12l-4-4v3H3v2h15v3z"/>
</SvgIcon>
);
ActionTrendingFlat = pure(ActionTrendingFlat);
ActionTrendingFlat.displayName = 'ActionTrendingFlat';
A... |
app/pages/Character/CharacterSheet/IdentityFeature.js | Technaesthetic/ua-tools | import React from 'react';
import * as CharacterActions from '../../../actions/CharacterActions';
import {ListGroupItem} from 'react-bootstrap';
export default class IdentityFeature extends React.Component {
constructor() {
super();
this.state = {
feature: {},
edit: false
}
}
componentWi... |
src/index.js | vihanchaudhry/cake-showdown | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import { Router, browserHistory } from 'react-router'
import thunkMiddleware from 'redux-thunk'
import injectTapEventPlugin from 'react-tap-event-plugin'
import reducers... |
src/svg-icons/notification/mms.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationMms = (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-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/>
</SvgIcon>
);
NotificationMms = ... |
yycomponent/pagination/Pagination.js | 77ircloud/yycomponent | import React from 'react';
import { Pagination as _Pagination } from 'antd';
class Pagination extends React.Component{
constructor(props){
super(props);
}
static defaultProps = {
prefixCls: 'ant-pagination',
selectPrefixCls: 'ant-select',
};
render(){
return (<_Pagination {...this.props}/>);
... |
src/js/components/profile/edit/MultipleFieldsEdit.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import SelectedEdit from './SelectedEdit';
import TextCheckboxes from '../../ui/TextCheckboxes';
import ChoiceEdit from './ChoiceEdit/ChoiceEdit';
import IntegerEdit from '../edit/IntegerEdit';
import LocationEdit from '../edit/LocationEdit';... |
CoreCRM/ClientApp/src/views/Home/WorkBench.js | holmescn/CoreCRM | import React from 'react';
import { connect } from 'dva';
// import styles from './Index.css';
function WorkBench() {
return (
<div>工作动态,或者叫工作台</div>
);
}
WorkBench.propTypes = {
};
export default connect()(WorkBench);
|
src/index.js | wolfgio/charlotte-hotel | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
app/routes.js | HachiJiang/FamilyFinanceSite | 'use strict';
import React from 'react';
import { Route, IndexRedirect } from 'react-router';
import App from './containers/App';
import SummaryPage from './containers/summaryPage';
import RecordPage from './containers/RecordPage';
import IncomeStatsPage from './containers/IncomeStatsPage';
import BudgetPage from './... |
webpack/ForemanTasks/Components/TasksTable/Components/SelectAllAlert.js | theforeman/foreman-tasks | import React from 'react';
import PropTypes from 'prop-types';
import { Alert, Button } from 'patternfly-react';
import { sprintf, translate as __ } from 'foremanReact/common/I18n';
export const SelectAllAlert = ({
itemCount,
perPage,
selectAllRows,
unselectAllRows,
allRowsSelected,
}) => {
const selectAll... |
app/components/AboutPage/AboutPage.js | eguneys/react-redux-todo-app | import React from 'react';
class AboutPage extends React.Component {
render() {
return (
<div>
<h2>About Page</h2>
</div>
);
}
}
export default AboutPage;
|
src/svg-icons/image/assistant.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAssistant = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5.12 10.88L12 17l-1.88-4.12L6 11l4.12-1.88L12 5l1.88 4.12L18 11... |
examples/one-khz/app.js | vad3x/react-fm | /* eslint-disable react/jsx-no-bind */
import React, { Component } from 'react';
import { render } from 'react-dom';
import FrequencyMeter from 'react-fm';
class App extends Component {
static propTypes = {
audioContext: React.PropTypes.object,
fileName: React.PropTypes.string
};
static d... |
src/components/ErrorPage.js | bradparks/filepizza_javascript_send_files_webrtc | import ErrorStore from '../stores/ErrorStore'
import React from 'react'
import Spinner from './Spinner'
export default class ErrorPage extends React.Component {
constructor() {
super()
this.state = ErrorStore.getState()
this._onChange = () => {
this.setState(ErrorStore.getState())
}
}
co... |
app/javascript/mastodon/components/column_back_button_slim.js | dwango/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import ColumnBackButton from './column_back_button';
export default class ColumnBackButtonSlim extends ColumnBackButton {
render () {
return (
<div className='column-back-button--slim'>
<div role='button' tabIndex='0' onClic... |
src/parser/druid/balance/modules/talents/StellarFlareUptime.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import StatisticBox, {... |
docs/src/examples/elements/Segment/Types/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const SegmentTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExampl... |
src/webview/js/components/elements/element-tree-item.js | julianburr/sketch-debugger | import React, { Component } from 'react';
export default class ElementTreeItem extends Component {
constructor () {
super();
this.state = {
expanded: false
};
}
renderElementName () {
const { element } = this.props;
return (
<span>
<span className="element-class">{element... |
public/src/components/layouts/Navigation.js | andy1992/react-redux-crud | import React from 'react';
import { Link } from 'react-router';
class NavComponent extends React.Component
{
render() {
return(
<div>
{
(!this.props.isLoggedIn) ?
<nav className="navbar navbar-default navbar-fixed-top">
... |
example/examples/Overlays.js | parkling/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_DELTA = 0.092... |
static/js/src/dropdown.js | maneeshpal/Missile |
import React from 'react';
import ReactDom from 'react-dom';
import immstruct from 'immstruct';
import Immutable from 'immutable';
import omniscient from 'omniscient';
const { PropTypes, cloneElement } = React;
const component = omniscient.withDefaults({
jsx: true
});
function objectExcept (obj, ...keysNotToCop... |
src/svg-icons/social/notifications-off.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotificationsOff = (props) => (
<SvgIcon {...props}>
<path d="M20 18.69L7.84 6.14 5.27 3.49 4 4.76l2.8 2.8v.01c-.52.99-.8 2.16-.8 3.42v5l-2 2v1h13.73l2 2L21 19.72l-1-1.03zM12 22c1.11 0 2-.89 2-2h-4c0 1.11... |
src/js/components/NotFound.js | react-beer/the-beer-store-react-es6-firebase-oauth | import React from 'react';
import { Link } from 'react-router';
import { Grid } from 'react-bootstrap';
import Header from './Header';
import Footer from './Footer';
class NotFound extends React.Component {
render() {
return (
<Grid>
<Header />
<div className="msg-error">
<h1 ... |
liferay-gsearch-workspace/modules/gsearch-react-web/src/main/resources/META-INF/resources/lib/App.js | peerkar/liferay-gsearch | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Container, Menu } from 'semantic-ui-react';
import Errors from './containers/Errors/index';
import Facets from './containers/Facets/index';
import Filters from './containers/Filters/index';
import He... |
packages/react-error-overlay/src/components/ErrorOverlay.js | peopleticker/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React, { Component } from 'react';
import { black } from '../styles';
import type { Node as ReactNode } from 'react'... |
examples/with-react-helmet/pages/about.js | nelak/next.js | import React from 'react'
import Helmet from 'react-helmet'
export default class About extends React.Component {
static async getInitialProps ({ req }) {
if (req) {
Helmet.renderStatic()
}
return { title: 'About' }
}
render () {
const { title } = this.props
return (
<div>
... |
src/components/ChannelStrip/interface.js | ramirezd42/schmix | import React, { Component } from 'react';
import { Knob, Switch, Fader } from '../controls';
import styles from './ChannelStrip.scss';
class ChannelStripInterface extends Component {
constructor(props) {
super()
this.state = {
selectedPlugin: null
}
this.addPlugin = evt => {
if(!evt.targe... |
src/components/Header.js | rokka-io/rokka-dashboard | import PropTypes from 'prop-types'
import React from 'react'
import { Link } from 'react-router-dom'
import { toggleSidebar, logout } from '../state'
import avatarIcon from '../img/avatar-placeholder.svg'
import logoutIcon from '../img/logout-icon.svg'
import cx from 'classnames'
const Header = props => (
<header cl... |
2048-clone/index.ios.js | reginbald/learning-react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
} from 'react-native';
class Project extends Component {
render() {
return (
<View style={styles.container}>
<View... |
website/src/components/Footer.js | plouc/mozaik | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
const Root = styled.footer`
color: #fff;
position: relative;
text-align: center;
line-height: 1.4;
//font-family: font-title
@media print {
display: none;
}
${props ... |
examples/with-apollo-and-redux-saga/lib/withApollo.js | BlancheXu/test | import React from 'react'
import PropTypes from 'prop-types'
import { ApolloProvider, getDataFromTree } from 'react-apollo'
import Head from 'next/head'
import initApollo from './initApollo'
// Gets the display name of a JSX component for dev tools
function getComponentDisplayName (Component) {
return Component.disp... |
src/components/amount-buttons.js | mozilla/donate.mozilla.org | import React from 'react';
import reactGA from 'react-ga';
import { FormattedMessage, FormattedNumber } from 'react-intl';
import ErrorMessage from './error.js';
import { connect } from 'react-redux';
import { setAmount } from '../actions';
import AmountInput from './amount-input.js';
var AmountButton = React.createCl... |
fields/types/date/DateField.js | davibe/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import { Button, InputGroup, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'DateField',
focusTargetRef: 'dateInput',
// default input format
inpu... |
src/interface/report/Results/About.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Trans, Plural } from '@lingui/macro';
import { Link } from 'react-router-dom';
import isLatestPatch from 'game/isLatestPatch';
import ReadableList from 'interface/common/ReadableList';
import Warning from 'interface/common/Alert/Warning';
import C... |
node_modules/enzyme/src/ShallowTraversal.js | Oritechnology/pubApp | import React from 'react';
import isEmpty from 'lodash/isEmpty';
import isSubset from 'is-subset';
import functionName from 'function.prototype.name';
import {
propsOfNode,
splitSelector,
isCompoundSelector,
selectorType,
AND,
SELECTOR,
nodeHasType,
nodeHasProperty,
} from './Utils';
export function c... |
stories/color-palette.story.js | fmakdemir/fm-story-book-react-components | import React from 'react';
import ColorPalette from 'components/color-palette';
import { storiesOf, action } from '@kadira/storybook';
// add showcases with .add
storiesOf('ColorPalette', module)
.add('blue color palette', () => (
<ColorPalette color="blue" />
))
.add('red color palette no dropdown', () => (... |
lib/components/NodeControl/index.js | gmtDevs/atom-ethereum-interface | 'use babel'
// Copyright 2018 Etheratom Authors
// This file is part of Etheratom.
// Etheratom 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 la... |
draft-js-video-plugin/src/video/components/DefaultVideoComponent.js | koaninc/draft-js-plugins | import React from 'react';
import PropTypes from 'prop-types';
import utils from '../utils';
const YOUTUBE_PREFIX = 'https://www.youtube.com/embed/';
const VIMEO_PREFIX = 'https://player.vimeo.com/video/';
const getSrc = ({ src }) => {
const {
isYoutube,
getYoutubeSrc,
isVimeo,
getVimeoSrc,
} = ut... |
src/svg-icons/maps/place.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPlace = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"... |
js/components/shared/TabIcon.js | kort/kort-reloaded | /* eslint-disable react/no-multi-comp */
import React from 'react';
import { Image, Platform, StyleSheet, Text, View } from 'react-native';
import I18n from 'react-native-i18n';
const styles = StyleSheet.create({
tabIcon: {
height: 30,
width: 30,
},
caption: {
textAlign: 'center',
fontSize: 8,
... |
src/components/Main.js | kzerga/apollo-design-docs | require('normalize.css');
require('styles/App.css');
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" />
<div className="noti... |
JotunheimenPlaces/node_modules/react-native/local-cli/server/middleware/heapCapture/src/heapCapture.js | designrad/Jotunheimen-tracking | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict... |
index.js | andy9775/React-Native-CircularProgress | /*
* Coded by: Andy (github.com/andy9775)
*/
'use strict';
import React, { Component } from 'react';
import {View} from 'react-native';
import PropTypes from 'prop-types';
class Filled extends Component {
render() {
var size = this.props.size,
componentColor = this.props.componentColor,
progressB... |
src/react/FacebookAuthWebView.js | laundree/app | // @flow
import React from 'react'
import AuthWebView from './AuthWebView'
import config from '../config'
type Props = { onAuthFailed: () => void, onSuccess: () => void }
const FacebookAuthWebView = ({onAuthFailed, onSuccess}: Props) => <AuthWebView
onAuthFailed={onAuthFailed} onSuccess={onSuccess}
source={{uri: `$... |
src/UserDetails.js | ramalhovfc/fisioManager | import React from 'react';
import {browserHistory} from 'react-router';
import axios from 'axios';
import style from './style';
import Incident from '../model/pojo/incidentPojo';
import IncidentList from './IncidentList';
const LOOKUPS_NEEDED = {
'doctor': true,
'insurance': true,
'pathology': true,
'physiotherapi... |
components/NavLinkButton.js | gdad-s-river/harshini-portfolio | import React from 'react'
import { Link } from 'react-router'
import MultiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import RaisedButton from 'material-ui/RaisedButton'
import { browserHistory } from 'react-router'
import "../css/sitefont.css"
// import {}
function onClickHandler(e, whereTo, bulbFr... |
examples/react-bootstrap/src/index.js | gaearon/react-hot-loader | import React from 'react';
import { render } from 'react-dom';
import App from './App';
const root = document.createElement('div');
document.body.appendChild(root);
render(<App />, root);
|
packages/icons/src/md/social/WhatsHot.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdWhatsHot(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M27 3c7.81 6.25 13 15.87 13 26.66 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-6.77 2.43-12.97 6.45-17.78l-.05.72c0 4.13 3.12 7.47 7.25 7.47s6.83-3.35 6.83... |
examples/cra/src/index.js | sapegin/react-styleguidist | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/app/components/media/MediaPageLayout.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Media from './Media';
import MediaActionsBar from './MediaActionsBar';
import NextPreviousLinks from './NextPreviousLinks';
const StyledTopBar = styled.div`
display: flex;
flex-wrap: wrap;
width: 60%;
... |
src/components/movie/MoviePage.js | Tinusw/myMovieCollection | import React from 'react'
import FileBase64 from 'react-file-base64'
import 'slick-carousel/slick/slick.css'
import 'slick-carousel/slick/slick-theme.css'
import './moviePage.scss'
class MoviePage extends React.Component{
constructor(props){
super(props)
this.state = {
files: this.props.movie.images ?... |
app/javascript/mastodon/features/account_gallery/index.js | mimumemo/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { expandAccountMediaTimeline } from '../../actions/timelines';
import LoadingIndicator from '../... |
src/index.js | oklas/component-intl-example | import React from 'react'
import { render } from 'react-dom'
import Root from './containers/Root'
render(
<Root/>,
document.getElementById('root')
)
|
routes.js | hustlzp/react-redux-example | import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from './containers/App'
import AuthPage from './containers/AuthPage'
import PendingAnonymousQuestionsPage from './containers/PendingAnonymousQuestionsPage'
import DashboardPage from './containers/DashboardPage'
import HomeRecommendati... |
packages/mineral-ui-icons/src/IconHd.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 IconHd(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
src/svg-icons/action/list.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionList = (props) => (
<SvgIcon {...props}>
<path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/>
</SvgIcon>
);
ActionList = pure(ActionList);
ActionList.displa... |
lib/login-form/index.js | andyfen/react-native-UIKit | import React, { Component } from 'react';
import {
StyleSheet,
View,
} from 'react-native';
import { Button, InputField, FieldError } from '../';
const styles = StyleSheet.create({
form: {
flexDirection: 'column',
justifyContent: 'space-between',
marginTop: 30,
marginBottom: 50,
},
});
export... |
react-client/src/components/RingTag.js | lowtalkers/escape-reality | import {Entity} from 'aframe-react';
import React from 'react';
import 'aframe-bmfont-text-component';
export default props => {
return (
<Entity id='RingTag' scale='.5 .5 .5'
onClick={() => {props.clickFunction(); //// console.log('clickingggggG!!!!')
}}
position={props.position}
rotatio... |
docs/app/Examples/collections/Grid/Variations/GridExampleTextAlignmentCenter.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Grid, Menu } from 'semantic-ui-react'
const GridExampleTextAlignmentCenter = () => (
<Grid textAlign='center' columns={3}>
<Grid.Row>
<Grid.Column>
<Menu fluid vertical>
<Menu.Item className='header'>Cats</Menu.Item>
</Menu>
</Grid.Column>
... |
app/javascript/mastodon/features/ui/components/boost_modal.js | theoria24/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
import StatusContent from '../../.... |
components/Footer.js | DCKT/e-next | // @flow
import React from 'react'
export default (): React$Element<*> => (
<footer className='footer'>
<div className='container'>
<div className='columns'>
<div className='column'>
<h3>ENEXT</h3>
<ul>
<li>
<a>Figure</a>
</li>
</... |
src/components/property/collapsableField.js | BryceHQ/form-designer | import React from 'react';
import classnames from'classnames';
import _ from 'lodash';
import Colors from 'material-ui/lib/styles/colors';
import Title from './title';
import Editor from './editor';
import Field from './field';
import Actions from '../../actions/actions';
const styles = {
title: {
padding: '2... |
src/components/Weui/tab/tabbar.js | ynu/ecard-wxe | /**
* Created by n7best
*/
import React from 'react';
import classNames from 'classnames';
export default class TabBar extends React.Component {
render() {
const {children, className, ...others} = this.props;
const cls = classNames({
weui_tabbar: true
}, className);
... |
app/javascript/mastodon/components/modal_root.js | tootcafe/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import 'wicg-inert';
import { createBrowserHistory } from 'history';
import { multiply } from 'color-blend';
export default class ModalRoot extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
... |
src/js/components/Footer.js | amalbose/axa-media | import React from 'react';
import store from '../store/MovieStore';
import { EventEmitter} from "events"
export default class Footer extends React.Component {
constructor(){
super();
this.state = {
statusVal : '',
percent : 5
}
this.startLoadin... |
demo/src/Toggles.js | kiloe/ui | import React from 'react';
import Doc from './Doc';
import View from '../../package/View';
export default class Toggles extends React.Component {
render(){
let data = [
{
title: 'Default Toggle',
src: Doc.jsx`
<Toggle label="Toggle me" />
`,
info:`
A To... |
app/components/Console.js | fatiherikli/fil | import _ from 'underscore';
import React from 'react';
import OutputLine from 'components/OutputLine';
import ConsoleToolbar from 'components/ConsoleToolbar';
import ErrorLine from 'components/ErrorLine';
export default class Console extends React.Component {
renderLine(line, i) {
return <OutputLine
... |
app/components/EarningsTableFooter/index.js | seanng/web-server | /**
*
* EarningsTableFooter
*
*/
import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
const Table = styled.table`
background-color: grey;
color: white;
height: 40px;
margin: 5px;
margin-bottom: 20px;
width: 100%;
... |
modules/pages/App.js | edvinerikson/universal-react-kickstarter | import React from 'react';
class App extends React.Component {
static propTypes = {
children: React.PropTypes.any.isRequired,
}
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
export default App;
|
app/containers/Tour/index.js | g00dman5/freemouthmedia | /*
*
* Ttour
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import {Link} from 'react-router';
import Responsive from 'react-responsive';
import NavLeft from 'material-ui/svg-icons/navigation/chevron-left';
import NavRight from 'material-ui/svg-icons/navigation/chevron-right';
import NavUp from... |
src/containers/Sales/CustomDetail/Business/Business.js | UncleYee/crm-ui | import React from 'react';
import Health from './Health';
import Trend from './Trend';
import Usage from './Usage';
export default class Business extends React.Component {
static propTypes = {
tenantId: React.PropTypes.string,
hideStatistical: React.PropTypes.bool
};
constructor(props) {
super(props... |
src/js/components/Helper.js | vbence86/project-bea | import React from 'react';
import classNames from 'classnames';
export const Container = (props) => {
const _className = classNames({
'container': !props.fluid,
'container-fluid': props.fluid,
}, props.className);
return <div {... props} className={_className}> {props.children} </div>;
};
export const Ro... |
frontend/modules/recipe/components/RecipeHeader.js | rustymyers/OpenEats | import React from 'react'
import PropTypes from 'prop-types'
import Ratings from './Ratings'
const RecipeHeader = ({ photo, title, rating }) => {
if (photo) {
return (
<div className="panel-heading hero-image" style={{backgroundImage: "url(" + photo + ")"}}>
<div className="row title">
<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.