path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/Interpolate.js | aparticka/react-bootstrap | // https://www.npmjs.org/package/react-interpolate-component
// TODO: Drop this in favor of es6 string interpolation
import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
const REGEXP = /\%\((.+?)\)s/;
const Interpolate = React.createClass({
displayName: 'Interpolate',
... |
popup-study/components/Input.js | Morhaus/popupstudy | import React from 'react';
import { View, StyleSheet, TextInput, Text } from 'react-native';
export default class Input extends React.Component {
constructor(props) {
super(props);
this.state = {
focus: false,
};
}
render() {
const { label, style, ...otherProps } = this.props;
return ... |
packages/core/admin/admin/src/content-manager/icons/Ol/index.js | wistityhq/strapi | import React from 'react';
const Ol = () => {
return (
<svg width="12" height="8" xmlns="http://www.w3.org/2000/svg">
<g fill="#333740" fillRule="evenodd">
<path d="M2.4 3H.594v-.214h.137c.123 0 .212-.01.266-.032.053-.022.086-.052.1-.092a.67.67 0 0 0 .018-.188V.74a.46.46 0 0 0-.03-.194C1.064.504 1.... |
src/Tabs/InkBar.js | skarnecki/material-ui | import React from 'react';
import transitions from '../styles/transitions';
function getStyles(props, context) {
const {inkBar} = context.muiTheme;
return {
root: {
left: props.left,
width: props.width,
bottom: 0,
display: 'block',
backgroundColor: props.color || inkBar.backgroun... |
app/react-icons/fa/check-square.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaCheckSquare extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m18.3 29l13.7-13.7q0.4-0.4 0.4-1t-0.4-1l-2.3-2.3q-0.4-0.4-1-0.4t-1 0.4l-... |
src/app/components/recipeJournalItem.js | nazar/soapee-ui | import _ from 'lodash';
import moment from 'moment';
import React from 'react';
import { Link } from 'react-router';
import authStore from 'stores/auth';
import ImageableThumbnails from 'components/imageableThumbnails';
import ImageableCarousel from 'components/imageableCarousel';
import MarkedDisplay from 'component... |
sandbox-react-redux/src/components/molecules/Count.js | ohtomi/sandbox | import React from 'react'
const Count = ({ value, incrementAsync, decrement }) => {
return (
<React.Fragment>
current value: {value} <br />
<button onClick={() => { incrementAsync() }}>increment value</button> <br />
<button onClick={() => { decrement() }}>decrement valu... |
src/components/CaptureReportTemplate/CaptureReportTemplate.js | RegOpz/RegOpzWebApp | import React, { Component } from 'react';
import { Modal } from 'react-bootstrap';
import { Field, reduxForm } from 'redux-form';
import { connect } from 'react-redux';
import { bindActionCreators, dispatch } from 'redux';
import SubscriberReportTemplate from './SubscriberReportTemplate';
import RepositoryReportTemplat... |
app/javascript/mastodon/components/status.js | dwango/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import AvatarComposite from './avatar_composite';
import RelativeTimestamp from './relative_timestamp';
import DisplayNa... |
pootle/static/js/admin/components/Project/ProjectController.js | iafan/zing | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import Search from '../Search'... |
packages/material-ui-icons/src/Router.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20.2 5.9l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7zm-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1 .9 0 1.8.3 2.5 1l.8-.8zM19 13h-2V9h-2v... |
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js | sfshine/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ActivityHeader extends React.Component {
static propTypes = {
close: React.PropTypes.func,
title: React.PropTypes.stri... |
src/components/UserPanel.js | janimattiellonen/renoirc | import React from 'react';
export default class UserPanel extends React.Component {
render() {
const {users} = this.props;
return (
<div className="user-panel">
<div className="">
<ul>
{users.map((user, i) => {
... |
components/pagination/demo/control.js | TDFE/td-ui | import React from 'react';
import Pagination from '../index';
export default class Control extends React.Component {
state = {
current: 3
}
onChange = (page) => {
console.log(page);
this.setState({
current: page
});
}
render() {
return <Pagination current={this.state.current} onChang... |
docs/src/app/components/pages/components/Dialog/ExampleScrollable.js | spiermar/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton';
const styles = {
radioButton: {
marginTop: 16,
},
};
/**
* Dialog co... |
server/sonar-web/src/main/js/apps/projectActivity/components/Event.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/about/index.js | kyoyadmoon/fuzzy-hw1 | /**
* 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/components/VmDetails/cards/SnapshotsCard/RestoreConfirmationModal.js | oVirt/ovirt-web-ui | import React from 'react'
import PropsTypes from 'prop-types'
import { connect } from 'react-redux'
import Immutable from 'immutable'
import { Icon, MessageDialog } from 'patternfly-react'
import { withMsg } from '_/intl'
import { getMinimizedString, escapeHtml } from '_/components/utils'
import { restoreVmSnapshot } ... |
lib/cli/test/fixtures/react_babel_custom_preset/stories/index.stories.js | storybooks/react-storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
const data = {
user: {
name: 'Joe',
},
};
storiesOf('My Component', module)
.add('state', () => <span>Hello {data.user?.name}</span>)
|
packages/mineral-ui-icons/src/IconTimeToLeave.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 IconTimeToLeave(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPr... |
kitchensink/src/index.js | Paratron/modoJS | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/App.js | VanishingDante/react-start-template | import 'normalize.css'
import React from 'react'
import RootRouter from './routes/RootRouter'
export default () => <RootRouter />
|
src/parser/warlock/demonology/modules/talents/SoulConduit.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import StatisticListBoxItem from 'interface/others/StatisticListBoxItem';
import SoulShardTracker from '../soulshards/SoulShardTracker';
const SHARDS_PER_HOG = 3;
c... |
src/native/offline/OfflinePage.js | robinpokorny/este | // @flow
import type { State } from '../../common/types';
import React from 'react';
import { CenteredContainer, Text } from '../app/components';
import { connect } from 'react-redux';
const OfflinePage = ({ online }) => (
<CenteredContainer>
<Text>state.app.online: {online.toString()}</Text>
</CenteredContain... |
src/svg-icons/alert/error.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertError = (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 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>
</SvgIcon>
);
AlertError = pure(AlertError);
AlertEr... |
src/scripts/components/dialog/Dialog.component.js | kodokojo/kodokojo-ui-commons | /**
* Kodo Kojo - Software factory done right
* Copyright © 2017 Kodo Kojo (infos@kodokojo.io)
*
* This program 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 ... |
test/components/App-test.js | maizy/kanbanrum-cards | /**
* Copyright (c) Nikita Kovaliov, maizy.ru, 2016-2017
* See LICENSE.txt for details.
*/
import test from 'ava';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import App from '../../src/App';
const shallowRenderer = TestUtils.createRenderer();
shallowRenderer.render(<App />);
const ... |
server/frontend/src/containers/App/index.js | cs472-spots/spots | // src/containers/App
import React, { Component } from 'react';
import SocketIOClient from 'socket.io-client';
import { connect } from 'nectarine';
import HeaderBar from '../../components/HeaderBar';
import SideBar from '../../components/SideBar';
class App extends Component {
constructor(props) {
super(props)... |
maodou/events/client/components/event.js | maodouio/meteor-react-redux-base | import React from 'react';
import Loading from 'client/components/common/loading';
import moment from 'moment';
export default (props) => {
return (
<div className="container" style={{ paddingTop: '60px'}}>
<div className="row">
<div className="col-lg-12">
{
props.event ?
... |
docs/src/components/browser-dev-panel.js | chrisclarke1977/nuclear-js | import React from 'react'
export default React.createClass({
render() {
return <div className="browser-component--dev-panel">
{this.props.children}
</div>
}
})
|
geonode/monitoring/frontend/monitoring/src/pages/software-performance/index.js | francbartoli/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# This program 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
# ... |
test/integration/prerender/pages/fallback-only/[slug].js | azukaru/next.js | import React from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
export async function getStaticPaths() {
return {
paths: [],
fallback: true,
}
}
export async function getStaticProps({ params }) {
await new Promise((resolve) => setTimeout(resolve, 1000))
return {
pro... |
packages/docs/components/Examples/sticker/gettingStarted.js | draft-js-plugins/draft-js-plugins | // It is important to import the Editor which accepts plugins.
import Editor from '@draft-js-plugins/editor';
import createStickerPlugin from '@draft-js-plugins/sticker';
import React from 'react';
import { fromJS } from 'immutable';
// Creates an Instance. Passing in an Immutable.js List of stickers as an
// argument... |
src/index.js | civic-tech-lab/commonplace-frontend | // @flow
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { BrowserRouter as Router } from 'react-router-dom';
import routes from './routes';
import store from './store';
import registerServiceWorker from './registerServiceWorker';
import './styles/index.css';... |
ui-antd/src/app/result/route/result.js | pkaq/Tara | import React from 'react'
import { connect } from 'dva'
function Result({location, dispatch, result}) {
const { major, list } = result;
return (
<div className='content-inner'>
Hello result : { major }
</div>
)
}
export default connect(({ result }) => ({ result }))(Result)
|
app/javascript/mastodon/containers/mastodon.js | mhffdq/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { showOnboardingOnce } from '../actions/onboarding';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'react-router-sc... |
src/svg-icons/action/flight-takeoff.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightTakeoff = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-.... |
es/components/sidebar/panel-layer-elements.js | dearkaran/react-planner | var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err;... |
app/react-icons/fa/xing-square.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaXingSquare extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m18.3 17.1q0 0-2.8-5-0.5-0.7-1.2-0.7h-4.1q-0.4 0-0.6 0.2-0.1 0.3 0 0.7l2.... |
example/examples/PolylineCreator.js | Gogowego/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} 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 LA... |
frontend/src/InteractiveSearch/InteractiveSearchRowConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import InteractiveSearchRow from './InteractiveSearchRow';
function createMapStateToProps() {
return createSelector(
(state, { guid }) => guid,
(stat... |
site/src/components/ImageLink.js | sapegin/react-styleguidist | import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import styles from './ImageLink.module.css';
export const ImageLink = ({ children, className, ...rest }) => (
<a className={clsx(styles.link, className)} target="_blank" rel="noopener noreferrer" {...rest}>
{children}
</a>
);
... |
src/js/components/icons/base/Test.js | odedre/grommet-final | /**
* @description Test SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @prope... |
src/svg-icons/image/hdr-strong.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrStrong = (props) => (
<SvgIcon {...props}>
<path d="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 ... |
app/components/Form/index.js | kamil-mrzyglod/AosArmyBuilder | /**
*
* Form
*
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
import PpcRulesheet from '../../components/PpcRulesheet';
class Form extends React.Component { // eslint-disable-line react/prefer-stateless-function
constructor(props) {
super(props)... |
packages/dante2/src/editor/components/popovers/select.js | michelson/Dante |
import React from 'react'
export default class DanteTooltipList extends React.Component {
logChange =(val)=> {
//console.log("Selected: " + JSON.stringify(val));
}
promptForLink =(ev)=> {
let selection = this.props.editorState.getSelection()
if (!selection.isCollapsed()) {
//ev.preventDefaul... |
src/components/video_list_item.js | mrjkc/react-redux | import React from 'react';
const VideoListItem = ({video}) => {
const imageUrl = video.snippet.thumbnails.default.url;
return (
<li className="list-group-item">
<div className="video-list media">
<div className="mdeia-left">
<img className="media-object" src={imageUrl} />
</div... |
src/components/Header/index.js | MelindaHasselbring/XtremeValue | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Menu, Container, Button, Input } from 'semantic-ui-react';
import { withRouter } from 'react-router';
import { observer } from 'mobx-react';
import './header.css';
import image from './images/x_480.png';
class Header extends Compone... |
app/javascript/mastodon/features/compose/components/upload_form.js | Ryanaka/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import UploadProgressContainer from '../containers/upload_progress_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import UploadContainer from '../containers/upload_container';
import SensitiveButtonC... |
packages/ringcentral-widgets/components/AlertRenderer/RolesAndPermissionsAlert/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import permissionsMessages from 'ringcentral-integration/modules/RolesAndPermissions/permissionsMessages';
import FormattedMessage from '../../FormattedMessage';
import i18n from './i18n';
export default function RolesAndPermissionsAlert({
message: { mes... |
src/svg-icons/device/signal-wifi-4-bar-lock.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi4BarLock = (props) => (
<SvgIcon {...props}>
<path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5... |
src/renderer/Preferences.js | okonet/codestage | import React from 'react'
import { Window } from 'react-desktop/macOs'
import General from './General'
export default function Preferences(props) {
return (
<Window>
<General {...props} />
</Window>
)
}
|
stories/core/Carousel.js | rentpath/react-ui | import React from 'react'
import clsx from 'clsx'
import { Carousel, PhotoCarousel } from 'react-ui-core/src'
import StoryBookTheme from '../theme/Storybook.css'
const Item = ({ children }) => ( // eslint-disable-line react/prop-types
<div
className={clsx(
StoryBookTheme.Story_CarouselItem,
StoryBook... |
admin/client/components/List/ListFilters.js | wmertens/keystone | import React from 'react';
import filterComponents from '../../filters';
import CurrentListStore from '../../stores/CurrentListStore';
import Popout from '../Popout';
import { Pill } from 'elemental';
const Filter = React.createClass({
propTypes: {
filter: React.PropTypes.object.isRequired,
},
getInitialState () ... |
docs/pages/api-docs/input-adornment.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/input-adornment';
const requireRaw = require.context('!raw-loader!./', false, /\/input-adornment\.md$/);
export default func... |
react-chat/src/App.js | renesansz/presentations | import React, { Component } from 'react';
import AppHeader from './components/AppHeader/AppHeader';
import ChatBox from './components/ChatBox/ChatBox';
import People from './components/People/People';
import WebsocketService from './services/WebsocketService';
import './App.css';
class App extends Component {
c... |
app/components/CurrencyAmount.js | schwuk/fx_u_like | import React from 'react';
export default class CurrencyAmount extends React.Component {
constructor(props) {
super(props);
this.state = {value: props.direction === 'to' ? props.toAmount : props.fromAmount};
this.handleChange = this.handleChange.bind(this);
}
componentWillReceiveProps(nextProps) {
... |
test/test_helper.js | JoshHarris85/React-Video-Player | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
frontend/src/components/eois/modals/editCfei/editCfeiForm.js | unicef/un-partner-portal | import React from 'react';
import { connect } from 'react-redux';
import { reduxForm, formValueSelector } from 'redux-form';
import PropTypes from 'prop-types';
import Typography from 'material-ui/Typography';
import * as fields from '../../../forms/fields/projectFields/commonFields';
import SelectionField from '../../... |
src/App.js | shonmacray/Showcase | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
app/javascript/mastodon/features/notifications/index.js | vahnj/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { expandNotifications, scrollTopNotifications ... |
src/svg-icons/av/queue.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueue = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/>
</SvgIco... |
docs/src/app/components/pages/components/Chip/ExampleSimple.js | xmityaz/material-ui | import React from 'react';
import Avatar from 'material-ui/Avatar';
import Chip from 'material-ui/Chip';
import FontIcon from 'material-ui/FontIcon';
import SvgIconFace from 'material-ui/svg-icons/action/face';
import {blue300, indigo900} from 'material-ui/styles/colors';
const styles = {
chip: {
margin: 4,
},... |
app/components/WorkItem/index.js | matteoterrinoni/portfolio | /**
*
* WorkItem
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import {Link} from 'react-router-dom';
// import styled from 'styled-components';
import './style.scss';
import { sections } from 'containers/App/sections';
import { shallowProperties } from 'containers/Works/model';
import InfoList ... |
src/Parser/HavocDemonHunter/CombatLogParser.js | mwwscott0/WoWAnalyzer | import React from 'react';
import CoreCombatLogParser from 'Parser/Core/CombatLogParser';
import DamageDone from 'Parser/Core/Modules/DamageDone';
import SuggestionsTab from 'Main/SuggestionsTab';
import Tab from 'Main/Tab';
import Talents from 'Main/Talents';
import AlwaysBeCasting from './Modules/Features/AlwaysBe... |
app/components/Sidebar.js | nantaphop/redd | import React from 'react'
import styled from 'styled-components'
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List'
import Divider from 'material-ui/Divider';
import Paper from 'material-ui/Paper';
import InboxIcon from 'material-ui-icons/Inbox';
import DraftsIcon from 'material-ui-icons/Draf... |
src/svg-icons/social/sentiment-very-satisfied.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentVerySatisfied = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm1... |
docs/app/Examples/collections/Table/States/TableExampleError.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Icon, Table } from 'semantic-ui-react'
const TableExampleError = () => {
return (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes<... |
public/js/src/component/icons/File.js | Lucifier129/isomorphism-react-file-system | import React from 'react'
import Icon from './Icon'
export default class File extends React.Component {
render() {
return <Icon {...this.props} type="icon-insert-drive-file" name="File" />
}
} |
src/public/js/components/Link.js | nuberos/taliesin | import React from 'react';
import ReactDOM from 'react-dom';
export default class Link extends React.Component {
render() {
return <a id={this.props.id} className={this.props.clazz} href={this.props.path} >{this.props.text}</a>;
}
}
|
node_modules/antd/es/auto-complete/index.js | prodigalyijun/demo-by-antd | import _typeof from 'babel-runtime/helpers/typeof';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possible... |
frontend/src/Components/Tooltip/Popover.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Tooltip from './Tooltip';
import styles from './Popover.css';
function Popover(props) {
const {
title,
body,
...otherProps
} = props;
return (
<Tooltip
{...otherProps}
bodyClassName={styles.tooltipBody}
toolt... |
app/components/ProgressBar/index.js | rajeshbhatt/shopping-cart-redux | import React from 'react';
import ProgressBar from './ProgressBar';
function withProgressBar(WrappedComponent) {
class AppWithProgressBar extends React.Component {
constructor(props) {
super(props);
this.state = {
progress: -1,
loadedRoutes: props.location && [props.location.pathname]... |
client/app/home/stuffs/index.js | nebulae-io/coteries | import React, { Component } from 'react';
import styles from './style.scss';
function mapStateToProps(state) {
return {};
}
function mapDispatchToProps(dispatch) {
return {
todoActions: bindActionCreators(todoActionCreators, dispatch),
counterActions: bindActionCreators(counterActionCreators, dispatch)
}... |
ui/js/pages/message/Message.js | ericsoderberg/pbc-web |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { loadItem, unloadItem } from '../../actions';
import ItemHeader from '../../components/ItemHeader';
import Loading from '../../components/Loading';
impor... |
Libraries/NewAppScreen/components/ReloadInstructions.js | pandiaraj44/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 strict-local
* @format
*/
import type {Node} from 'react';
import {Platform, StyleSheet, Text} from 'react-native';
impo... |
node_modules/antd/es/calendar/Header.js | prodigalyijun/demo-by-antd | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import { PREFIX_C... |
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_05/finished/src/index.js | yevheniyc/Autodidact | import C from './constants'
import React from 'react'
import { render } from 'react-dom'
import routes from './routes'
import sampleData from './initialState'
import storeFactory from './store'
import { Provider } from 'react-redux'
import { addError } from './actions'
const initialState = (localStorage["redux-store"]... |
src/svg-icons/device/brightness-high.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessHigh = (props) => (
<SvgIcon {...props}>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ... |
dev/src/App.js | dqgorelick/dqgorelick.github.io | import React from 'react';
import './App.css';
import MainWrapper from './components/MainWrapper';
import ProjectWrapper from './components/ProjectWrapper';
const App = props => {
const currentPage = props.page;
switch (currentPage) {
case (''):
return (<MainWrapper page="home"/>);
case ('a... |
src/components/SwitchListBtn.js | pixel-glyph/better-reads | import React from 'react';
import PropTypes from 'prop-types';
import ListPicker from './ListPicker';
import ListIcon from './svg/List';
import Overlay from './Overlay';
class SwitchListBtn extends React.Component {
render() {
return (
<div className="switch-list-btn">
<div className="btn-wrapp... |
node_modules/react-drawer/example/app.js | manojadd/bob-demo | /**
* This is a thrid party component created by Tony Li
*
* all right reserved by @author Tony Li
*
*/
import React from 'react';
import ReactDOM from 'react-dom';
import ReactDrawer from '../src/ReactDrawer';
class Main extends React.Component {
constructor() {
super();
this.state = {
open: fals... |
src/components/Contact/Thanks.js | notaurologist/jasonlemoine.com | import React from 'react';
const Thanks = () => (
<main>
<p>Thank you for contacting me! I will get back to you as soon as I can.</p>
<p><a href="/">Back to Home</a></p>
</main>
);
export default Thanks;
|
src/app/components/common/Layout.js | backpackcoder/world-in-flames | import React from 'react'
import Header from './Header'
import Navigation from '../navigation/components/Navigation'
import Ribbon from '../ribbon/Ribbon'
import Footer from './Footer'
import Shortcut from '../navigation/components/Shortcut'
import LayoutSwitcher from '../layout/components/LayoutSwitcher'
// requir... |
src/components/navbar.js | mattstuhring/youtube_redux | import React from 'react';
const Navbar = () => {
return (
<nav className="navbar navbar-default">
<div className="container-fluid">
<div className="navbar-header">
<a className="navbar-brand" href="#" >
<img alt="Brand" src="../style/icon.png" />
</a>
</div... |
app/lib/sidebar.js | bwiggs/boom-beach-hq | import React from 'react'
export default class Sidebar extends React.Component {
render() {
return <div className="sidebar">The Sidebar</div>;
}
}
|
src/docs/components/columns/ColumnsDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Columns from 'grommet/components/Columns';
import Box from 'grommet/components/Box';
import Anchor from 'grommet/components/Anchor';
import Button from 'grommet/components/Button';
import DocsArticle f... |
components/Deck/TreePanel/TreeNode.js | slidewiki/slidewiki-platform | import React from 'react';
import ReactDOM from 'react-dom';
import Immutable from 'immutable';
import classNames from 'classnames/bind';
import {NavLink} from 'fluxible-router';
import Util from '../../common/Util';
import {DragSource} from 'react-dnd';
import TreeNodeList from './TreeNodeList';
import TreeNodeTarget ... |
app/Router.js | cruze-io/cruze-web | import React from 'react'
import ReactDOM from 'react-dom'
import { renderToStaticMarkup } from 'react-dom/server'
import { Router, match, RouterContext, browserHistory } from 'react-router'
import Helmet from 'react-helmet'
import routes from './Routes'
import { Provider } from 'react-redux'
import Root from './contai... |
src/icons/TrendingDownIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class TrendingDownIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M32 36l4.59-4.59-9.76-9.75-8 8L4 14.83 6.83 12l12 12 8-8 12.58 12.59L44 24v12z"/></svg>;}
}; |
v7/development/src/components/tag-list/tag-list.js | BigBoss424/portfolio | /* Vendor imports */
import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'gatsby'
/* App imports */
import style from './tag-list.module.less'
import Config from '../../../config'
import Utils from '../../utils'
const TagList = ({ tags }) => (
<div className={style.tags}>
{tags
... |
src/desktop/apps/auction/components/artwork_browser/main/artwork/BidStatus.js | kanaabe/force | import PropTypes from 'prop-types'
import React from 'react'
import block from 'bem-cn-lite'
import { connect } from 'react-redux'
function BidStatus (props) {
const {
isSold,
currentBidDisplay,
bidLabel
} = props
const b = block('auction-BidStatus')
return (
<div className={b()}>
{ isS... |
common/components/ReduxFormDropzone.js | chrisfitkin/redeem-3 | import React from 'react'
import Dropzone from 'react-dropzone'
const ReduxFormDropzone = (field) => {
let {
input,
meta,
dropzoneOnDrop,
...props
} = field
return (
<Dropzone
onDrop={(acceptedFiles, rejectedFiles, e) => {
field.input.onChange(acceptedFiles)
... |
src/index.js | aurbano/react-ds | // @flow
import React from 'react';
import PropTypes from 'prop-types';
export type Point = {
x: number,
y: number,
}
export type Box = {
left: number,
top: number,
width: number,
height: number,
}
type Props = {
disabled?: boolean,
target: HTMLElement,
onSelectionChange?: (elements: Array<any>) =... |
src/basic/TabContainer.js | sampsasaarela/NativeBase | /* @flow */
import React, { Component } from 'react';
import { View } from 'react-native';
import { connectStyle } from 'native-base-shoutem-theme';
import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames';
class TabContainer extends Component {
render() {
return (
<View ref={c => this._root = c... |
public/js/cat_source/es6/components/modals/CopySourceModal.js | riccio82/MateCat | import React from 'react'
class CopySourceModal extends React.Component {
constructor(props) {
super(props)
}
copyAllSources() {
this.props.confirmCopyAllSources()
this.checkCheckbox()
APP.ModalWindow.onCloseModal()
}
copySegmentOnly() {
this.props.abortCopyAllSources()
this.checkCh... |
docs/src/app/components/pages/components/Toggle/ExampleSimple.js | pomerantsev/material-ui | import React from 'react';
import Toggle from 'material-ui/Toggle';
const styles = {
block: {
maxWidth: 250,
},
toggle: {
marginBottom: 16,
},
};
const ToggleExampleSimple = () => (
<div style={styles.block}>
<Toggle
label="Simple"
style={styles.toggle}
/>
<Toggle
label... |
milestones/07-css-modules/After/src/frame.js | jaketrent/react-drift | import React from 'react'
import styleable from 'react-styleable'
import css from './frame.module.css'
function Frame(props) {
return <div className={props.css.root}>{props.children}</div>
}
export default styleable(css)(Frame)
|
src/components/ProfileFollowers.js | thinq4yourself/simply-social-in | import PostList from './PostList';
import { Profile, mapStateToProps } from './Profile';
import React from 'react';
import { Link } from 'react-router-dom';
import api from '../services/api';
import faker from 'faker';
import { connect } from 'react-redux';
import {
PROFILE_PAGE_LOADED,
PROFILE_PAGE_UNLOADED
} from... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | kazh98/social.arnip.org | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.