path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/subjects/BookSubjectIndex.js | great-design-and-systems/cataloguing-app | import { BookSubjectList } from './BookSubjectList';
import PropTypes from 'prop-types';
import React from 'react';
export const BookSubjectIndex = ({ removeSubject, managedBook, subjects }) => {
return (<div className="subjects">
<BookSubjectList
removeSubject={removeSubject}
subjects={subjects}
... |
app/App.js | munir7/react | import React from 'react';
import Router from 'react-router';
import routes from './config/routes';
Router.run(routes, (Root, state) => {
React.render(<Root {...state} />, document.getElementById('app'));
});
|
src/Input.js | collinwu/react-bootstrap | import React from 'react';
import InputBase from './InputBase';
import * as FormControls from './FormControls';
import deprecationWarning from './utils/deprecationWarning';
class Input extends InputBase {
render() {
if (this.props.type === 'static') {
deprecationWarning('Input type=static', 'StaticText');
... |
benchmarks/src/index.js | rofrischmann/fela | import App from './app/App'
import impl from './impl'
import Tree from './cases/Tree'
import SierpinskiTriangle from './cases/SierpinskiTriangle'
import React from 'react'
import ReactDOM from 'react-dom'
const implementations = impl
const packageNames = Object.keys(implementations)
const createTestBlock = (fn) => {... |
src/ElevationCatalog.js | material-components/material-components-web-catalog | import React, { Component } from 'react';
import ComponentCatalogPanel from './ComponentCatalogPanel.js';
import './styles/ElevationCatalog.scss';
const MAX_ELEVATION_LEVELS = 24;
const ElevationCatalog = () => {
const description = 'Elevation is the relative depth, or distance, between two surfaces along the z-axi... |
assets/js/components/Item.js | scottocorp/react-todos | import React from 'react';
var createReactClass = require('create-react-class');
const Item = createReactClass({
handleOnChange(e) {
const content = e.target.value;
this.props.updateTodo(this.props.todo.id, content);
},
handleKeyUp(e) {
if (e.keyCode == 13) {
this.close(e.target.value);
}
... |
src/svg-icons/notification/confirmation-number.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationConfirmationNumber = (props) => (
<SvgIcon {...props}>
<path d="M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2... |
js/components/Nav.react.js | Karaja-Naji/frontEndMusic | /**
*
* Nav.react.js
*
* This component renders the navigation bar
*
*/
import React, { Component } from 'react';
import { Link } from 'react-router';
import { logout } from '../actions/AppActions';
import LoadingButton from './LoadingButton.react';
class Nav extends Component {
render() {
// Render eithe... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-forms-slider.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import Environment from '../environment/environment.js';
import {BaseMixin, ElementaryMixin, ContentMixin, Tools} from './../common/common.js';
import {Glyphicon, Slider} from './../bricks/bricks.js';
import InputMixin from './input-mixin.js';
import Number from './number.js';
import './slid... |
packages/editor/src/components/Controls/FontFamily/FontFamilyLayout.js | boldr/boldr | /* eslint-disable react/no-array-index-key */
/* @flow */
import React from 'react';
import type { Node } from 'react';
import cn from 'classnames';
import { Dropdown, DropdownOption } from '../../Dropdown';
import type { FontFamilyConfig } from '../../../core/config';
export type Props = {
expanded: boolean,
onE... |
docs/app/Examples/modules/Accordion/Usage/AccordionExamplePanelsPropWithCustomTitleAndContent.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Accordion, Label, Message } from 'semantic-ui-react'
import faker from 'faker'
import _ from 'lodash'
const panels = _.times(3, i => ({
key: `panel-${i}`,
title: <Label color='blue' content={faker.lorem.sentence()} />,
content: (
<Message
info
header={faker.lore... |
node_modules/npm/docs/src/components/DocLinks.js | giovannic/giovannic.github.com | import React from 'react'
import styled from 'styled-components'
import {StaticQuery, graphql} from 'gatsby'
import {Flex} from 'rebass'
import {SidebarLink} from './links'
import Accordion from './Accordion'
const LinkDesc = styled.span`
font-size: 11px;
line-height: 1.5;
text-transform: lowercase;
display:... |
app/components/shared/filtersControl.js | nypl-registry/browse | import React from 'react'
import { Link } from 'react-router'
import { stringify } from 'qs'
const FiltersControl = React.createClass({
propTypes () {
return {
}
},
queryStringWithoutFilter (field, value) {
// copy query & filters:
var newQuery = Object.assign({}, this.props.query)
newQuery... |
admin/client/components/PopoutBody.js | nickhsine/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutBody = React.createClass({
displayName: 'PopoutBody',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
scrollable: React.PropTypes.bool,
},
render () {
let ... |
examples/todomvc/containers/App.js | bloodyowl/redux-devtools | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore, combineReducers, compose } from 'redux';
import { devTools, persistState } from 'redux-devtools';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
import { Provider } from 'react-redux';
import *... |
hello_world/src/components/Geocities.react.js | rpearce/react-form-steps-example | import React, { Component } from 'react';
class Geocities extends Component {
render() {
return (
<div>
<div style={ { textAlign: 'center', marginTop: '50px' } }>
<img src="http://www.wonder-tonic.com/geocitiesizer/images/genie.gif" />
<img src="http://www.wonder-tonic.com/geoci... |
node_modules/react-bootstrap/es/utils/ValidComponentChildren.js | acalabano/get-committed | // TODO: This module should be ElementChildren, and should use named exports.
import React from 'react';
/**
* Iterates through children that are typically specified as `props.children`,
* but only maps over children that are "valid components".
*
* The mapFunction provided index will be normalised to the compone... |
src/routes/admin/index.js | zsu13579/whatsgoinontonight | /**
* 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... |
app/static/src/diagnostic/TestTypeResultForm_modules/PolymerisationDegreeTestForm.js | vsilent/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import Button from 'react-bootstrap/lib/Button';
import Panel from 'react-bootstrap/lib/Panel';
import {findDOMNode} from 'react-dom';
import {hashHistory} from 'react-router';
im... |
examples/real-world/containers/DevTools.js | javascriptjedi/redux-select | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w">
<LogMonitor />
... |
client/src/components/dataset/index.js | OpenChemistry/materialsdatabank | import React, { Component } from 'react';
import Button from '@material-ui/core/Button';
import Card from '@material-ui/core/Card';
import CardContent from '@material-ui/core/CardContent';
import IconButton from '@material-ui/core/IconButton';
import Menu from '@material-ui/core/Menu';
import MenuItem from '@material-... |
docs/app/Examples/collections/Table/States/TableExampleWarningShorthand.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const tableData = [
{ name: undefined, status: undefined, notes: undefined },
{ name: 'Jimmy', status: 'Requires Action', notes: undefined },
{ name: 'Jamie', status: undefined, notes: 'Hostile' },
{ name: 'Jill', status: undefined, notes: und... |
classic/src/scenes/mailboxes/src/Scenes/BookmarkScene/BookmarkEditScene/BookmarkEditScene.js | wavebox/waveboxapp | import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import { RouterDialog, RouterDialogStateProvider } from 'wbui/RouterDialog'
import BookmarkEditSceneContent from './BookmarkEditSceneContent'
class BookmarkEditScene extends React.Component {
/* **************************************... |
src/js/main.js | goadapp/goad-site | import React from 'react';
import ReactDOM from 'react-dom';
import Downloads from './components/downloads.jsx';
var smoothScroll = require('smoothscroll');
function ready(fn) {
if (document.readyState != 'loading'){
fn();
} else {
document.addEventListener('DOMContentLoaded', fn);
}
}
window.React = Re... |
openex-front/src/private/components/exercises/injects/InjectPopover.js | Luatix/OpenEx | import React, { Component } from 'react';
import * as PropTypes from 'prop-types';
import { connect } from 'react-redux';
import * as R from 'ramda';
import Dialog from '@mui/material/Dialog';
import DialogTitle from '@mui/material/DialogTitle';
import DialogContent from '@mui/material/DialogContent';
import DialogCont... |
tests/react/useLayoutEffect_hook.js | mroch/flow | // @flow
import React from 'react';
{
React.useLayoutEffect(); // Error: function requires another argument.
}
{
// Ok variants without cleanup functions
React.useLayoutEffect(() => {});
React.useLayoutEffect(() => {}, []);
React.useLayoutEffect(() => {}, [1, 2, 3]);
// Ok variants with cleanup function... |
components/Home/FeaturedOn/index.js | parkerproject/conceptionarts | import React from 'react';
export default() => (
<div className="featured_on">
<div className="container">
<div className="row-eq-height featured_on_resp">
<div className="featured_on_title col-xl-2 col-lg-3 col-md-4 col-sm-12">
<span>
As featured on:
</span>
... |
step7-flux/node_modules/react-router/modules/IndexRedirect.js | jintoppy/react-training | import React from 'react'
import warning from './routerWarning'
import invariant from 'invariant'
import Redirect from './Redirect'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* An <IndexRedirect> is used to redirect from an indexRoute.
*/
const IndexRedirect = React.createCla... |
app/components/Theme/Theme.js | zchen9/DonutTab | import React from 'react';
require('./Theme.scss');
const LIGHT_ICON = (
<span className="theme-icon theme-light">
<i className="fa fa-sun-o"></i>
</span>
);
const DARK_ICON = (
<span className="theme-icon theme-dark">
<i className="fa fa-moon-o"></i>
</spa... |
src/components/ImagePicker/ImagePicker.js | ahthamrin/kbri-admin2 | import React from 'react'
import { IndexLink, Link } from 'react-router'
console.log('ImagePicker')
var thisUpCanvas = document.createElement('canvas')
var thisUpImage = new Image()
class ImagePicker extends React.Component {
constructor(props) {
super(props);
console.log('ImagePicker:constructor');
}
... |
ui/src/components/PostImage.js | nateinaction/nateanddanielle.love | import React from 'react';
import PropTypes from 'prop-types';
import LinearProgress from '@material-ui/core/LinearProgress';
import CardMedia from '@material-ui/core/CardMedia';
import './PostImage.css';
const srcSize = (imageType, maxWidth, imageDetails) => {
// Apparently GIFs are no longer animated after WP scal... |
node_modules/rc-dialog/es/Modal.js | yhx0634/foodshopfront | 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 { View, Mo... |
client/my-sites/invites/utils.js | mmmavis/mofo-calypso | /**
* Internal dependencies
*/
import React from 'react';
import get from 'lodash/object/get'
/**
* Internal dependencies
*/
import i18n from 'lib/mixins/i18n';
export default {
acceptedNotice( invite, displayOnNextPage = true ) {
let takeATour = (
<p className="invite-message__intro">
{
i18n.trans... |
app/javascript/mastodon/features/compose/components/poll_button.js | dunn/mastodon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
add_poll: { id: 'poll_button.add_poll', defaultMessage: 'Add a poll' },
remove_poll: { id: 'poll_button... |
src/components/users/UserAvatar.js | secretin/secretin-app | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import User from 'models/User';
const COLORS = [
'emerland',
'nephritis',
'belize-hole',
'wisteria',
'midnight-blue',
'sun-flower',
'pumpkin',
'pomegranate',
'silver',
'asbestos',
];
function getIni... |
src/browser/extension/popup/index.js | UrgBenri/UrgBenriWeb | import React from 'react';
import { render } from 'react-dom';
import Root from 'app/containers/Root';
chrome.runtime.getBackgroundPage(background => {
const { store, unsubscribe } = background.getStore();
render(
<Root store={store} />,
document.getElementById('root')
);
addEventListener('unload', uns... |
src/js/components/icons/base/Camera.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
docs/src/app/components/pages/components/Menu/ExampleSimple.js | manchesergit/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
const style = {
display: 'inline-block',
margin: '16px 32px 16px 0',
};
const MenuExampleSimple = () => (
<div>
<Paper style={style}>
<Menu>
<Menu... |
src/widgets/Anchor.js | xiaofan2406/react-starter-kit | import React from 'react';
import PropTypes from 'prop-types';
const Anchor = ({ href, children, ...rest }) => (
<a rel="noopener noreferrer" target="_blank" href={href} {...rest}>
{children}
</a>
);
Anchor.propTypes = {
href: PropTypes.string.isRequired,
children: PropTypes.node.isRequired,
};
export de... |
ui/components/loading.js | danjac/podbaby | import React from 'react';
import Icon from './icon';
export default function () {
return (
<div className="text-center" style={{ marginTop: 50 }}>
<h1 style={{ fontFamily: 'GoodDog' }}><Icon icon="spinner" spin /> loading...</h1>
</div>
);
}
|
src/js/pages/ResetPasswordPage.js | MichaelFKogan/project3 | import React from 'react';
import DocumentTitle from 'react-document-title';
import { ResetPasswordForm } from 'react-stormpath';
export default class ResetPasswordPage extends React.Component {
render() {
return (
<DocumentTitle title={`Login`}>
<div className="container">
<div classNam... |
app/javascript/mastodon/features/notifications/index.js | Toootim/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 ... |
client/src/signup/Form.js | petertrotman/adventurelookup | import React from 'react';
import { connect } from 'react-redux';
import { signupEmail } from './actions';
@connect(
state => ({ signup: state.signup }),
dispatch => ({ submitEmail: (email, validity) => (
dispatch(signupEmail(email, validity))
) }),
)
class SignupForm extends React.Component {
constructor... |
client/src/containers/FileListPage.js | RiddleMan/giant-privacy-spy | import React, { Component } from 'react';
import Paper from 'material-ui/Paper';
import { GridList } from 'material-ui/GridList';
import { GridFilePreview } from '../components/layout';
import { connect } from 'react-redux';
import { routeActions } from 'react-router-redux';
import { clear, getNextUnboxed, setGeoHash }... |
frontend/src/DiscoverMovie/DiscoverMovieFooterLabel.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import SpinnerIcon from 'Components/SpinnerIcon';
import { icons } from 'Helpers/Props';
import styles from './DiscoverMovieFooterLabel.css';
function DiscoverMovieFooterLabel(props) {
const {
className,
label,
isSaving
} = props;
return... |
app/components/resources/resourcePage.js | nypl-registry/browse |
import React from 'react'
import ReactDOM from 'react-dom'
import { Link } from 'react-router'
import { connect } from 'react-redux'
import { resourceOverview, resourceByOwi } from '../../utils.js'
require('core-js/fn/object/entries')
import HeaderNav from '../shared/header_nav.js'
import Hero from '../shared/hero.js... |
browser/modules/layerTree/controls/SelectControl.js | mapcentia/vidi | /*
* @author Alexander Shumilov
* @copyright 2013-2019 MapCentia ApS
* @license http://www.gnu.org/licenses/#AGPL GNU AFFERO GENERAL PUBLIC LICENSE 3
*/
import React from 'react';
import PropTypes from 'prop-types';
/**
* Select control component
*/
class SelectControl extends React.Compone... |
src/js/Components/BackgroundPane/ImageBackgroundView.js | mattgordils/DropSplash | import React, { Component } from 'react';
import Button from 'Components/Common/Button';
import PlusIcon from 'assets/icons/plus-icon';
import InlineSVG from 'svg-inline-react/lib';
import ColorPicker from 'Components/Common/ColorPicker/ColorPicker';
import 'sass/components/common/inputs';
export default class App e... |
docs/app/Examples/elements/Image/Variations/ImageAvatarExample.js | jcarbo/stardust | import React from 'react'
import { Image } from 'stardust'
const src = 'http://semantic-ui.com/images/wireframe/square-image.png'
const ImageAvatarExample = () => (
<div>
<Image src={src} avatar />
<span>Username</span>
</div>
)
export default ImageAvatarExample
|
src/parser/paladin/protection/CONFIG.js | sMteX/WoWAnalyzer | import React from 'react';
import { emallson } from 'CONTRIBUTORS';
import SPECS from 'game/SPECS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { TooltipElement } from 'common/Tooltip';
import retryingPromise from 'common/retryingPromise';
import Warning from 'interface/common/... |
tests/Rules-isExisty-spec.js | aesopwolf/formsy | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
const TestForm = React.createClass({
render() {
re... |
client/views/setupWizard/SideBar.stories.js | Sing-Li/Rocket.Chat | import { select } from '@storybook/addon-knobs';
import React from 'react';
import SideBar from './SideBar';
export default {
title: 'views/setupWizard/SideBar',
component: SideBar,
};
export const _default = () =>
<SideBar
logoSrc='https://open.rocket.chat/images/logo/logo.svg'
steps={[
{
step: 1,
... |
app/javascript/mastodon/features/ui/util/reduced_motion.js | pso2club/mastodon | // Like react-motion's Motion, but reduces all animations to cross-fades
// for the benefit of users with motion sickness.
import React from 'react';
import Motion from 'react-motion/lib/Motion';
import PropTypes from 'prop-types';
const stylesToKeep = ['opacity', 'backgroundOpacity'];
const extractValue = (value) =>... |
frontend/src/components/eois/details/applications/applicationSummary/applicationSummaryHeader.js | unicef/un-partner-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import R from 'ramda';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import Grid from 'material-ui/Grid';
import Button from 'material-ui/Button';
import Typography from 'material-ui/Typography';
import He... |
src/client/components/hoc/AdressBar/withHistory.hoc.js | DBCDK/content-first | import React from 'react';
import {connect} from 'react-redux';
import {
HISTORY_PUSH,
HISTORY_PUSH_FORCE_REFRESH,
HISTORY_REPLACE
} from '../../../redux/middleware';
/**
* A HOC that enhance the wrapped component with a number of reducers
* with which the History can be accessed
*
* @param {React.Component}... |
src/decorators/requireVerifiedEmail.js | orionsoft/parts | import React from 'react'
import autobind from 'autobind-decorator'
import PropTypes from 'prop-types'
import Button from '../components/Button'
import isPlainObject from 'lodash/isPlainObject'
const styles = {
container: {
textAlign: 'center',
padding: 20
},
notAllowed: {
fontSize: 20,
fontWeigh... |
react-youtube-adaptive-loading/src/containers/Comments/Comments.js | GoogleChromeLabs/adaptive-loading | import React from 'react';
import {CommentsHeader} from "./CommentsHeader/CommentsHeader";
import {Comment} from './Comment/Comment';
import {AddComment} from './AddComment/AddComment';
export class Comments extends React.Component {
render() {
if (!this.props.comments) {
return <div/>;
}
const co... |
src/parser/hunter/shared/modules/talents/AMurderOfCrows.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import SpellUsable from 'parser/shared/modules/SpellUsable';
import ItemDamageDone from 'interface/others/ItemDamageDone';
import Abilities from 'parser/core/modules/Abilities';
import TalentStatisticBox from '... |
src/routes/topicPage/index.js | xugy0926/shuoriyu | import React from 'react';
import TopicPage from './TopicPage';
import fetch from '../../core/fetch';
import { host } from '../../config';
import * as topicService from '../../services/topicService';
export default {
path: '/topic/:tid',
async action(context, {tid}) {
return <TopicPage topicId={tid}/>;
},
... |
src/Router.js | thethirddan/pocket_axe | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
src/IncredibleOffers/IncredibleOfferContainer.js | mamal72/dgkala-web | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { GridLoader } from 'halogen';
import IncredibleOffers from './IncredibleOffers';
const mapStateToProps = (state, props) => {
return {
offers: state.incredibleOffers.data,
errors: state.incredibleOffers.errors,
isLoa... |
src/icons/Close.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Close extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M443.6,387.1L312.4,255.4l131.5-130c5.4-5.4,5.4-14.2,0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4
L256,197.8... |
src/containers/weather_list.js | nobodyislame/weatherApp | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Chart from '../components/chart';
import GoogleMap from '../components/google_map';
class WeatherList extends Component{
renderWeather(cityData){
const name = cityData.city.name;
const temperatures = cityData.list.map(wea... |
app/javascript/mastodon/features/picture_in_picture/components/footer.js | ashfurrow/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from 'mastodon/components/icon_button';
import classNames from 'classna... |
packages/dante2/src/editor/components/blocks/embed.js | michelson/Dante |
import React from 'react'
import axios from "axios"
import { updateDataOfBlock, addNewBlockAt , resetBlockWithType} from '../../model/index.js'
import { EditorBlock } from 'draft-js'
import {embed} from '../icons'
export default class EmbedBlock extends React.Component {
constructor(props) {
super(props)
t... |
node_modules/semantic-ui-react/dist/es/views/Item/ItemMeta.js | SuperUncleCat/ServerMonitoring | import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
/**
* An item can contain content metadata.
*... |
src/components/Tabs/components/ScrollableTabBar.js | zhangjianguo1500/f01 | import React from 'react';
import ScrollableTabBarMixin from './ScrollableTabBarMixin';
import TabBarMixin from './TabBarMixin';
const ScrollableTabBar = React.createClass({
mixins: [TabBarMixin, ScrollableTabBarMixin],
render() {
const inkBarNode = this.getInkBarNode();
const tabs = this.getTabs();
co... |
src/javascripts/container.js | bensmithett/webpack-css-example | import React from 'react'
import Header from 'javascripts/header'
import Footer from 'javascripts/footer'
import 'stylesheets/modules/container'
const Container = React.createClass({
render () {
return (
<div className='container'>
<Header />
<Footer />
</div>
)
}
})
export de... |
src/routes/nba/index.js | kyleaclark/ballcruncher | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../compo... |
src/server.js | vk92kokil/My-react-boilerplate | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
/* eslint-disable */
import 'babel/polyfill';
import _ from 'lodash';
import fs from 'fs';
import path from 'path';
import express from 'express';
import React from 'react';
import './core/Dispatcher';
import './stores/AppStore';
import db from '.... |
client/src/components/ElementActions/ArchiveAction.js | dnadesign/silverstripe-elemental | /* global window */
import React from 'react';
import { compose } from 'redux';
import AbstractAction from 'components/ElementActions/AbstractAction';
import archiveBlockMutation from 'state/editor/archiveBlockMutation';
import i18n from 'i18n';
/**
* Adds the elemental menu action to archive a block of any state
*/... |
src/browser/home/HomePage.react.js | vacuumlabs/este | import Component from 'react-pure-render/component';
import Helmet from 'react-helmet';
import React from 'react';
import linksMessages from '../../common/app/linksMessages';
import { FormattedHTMLMessage, defineMessages, injectIntl, intlShape } from 'react-intl';
const messages = defineMessages({
intro: {
defau... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js | Antontsyk/react_vk | import React from 'react'
function load(name) {
return [
{ id: 1, name: `${name}1` },
{ id: 2, name: `${name}2` },
{ id: 3, name: `${name}3` },
{ id: 4, name: `${name}4` }
];
}
export default class extends React.Component {
constructor(props) {
super(props);
this.done = () => {};
th... |
src/shared/components/linkButton/linkButton.js | tskuse/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { Link as ScrollLink, Events as ScrollEvent } from 'react-scroll';
import ReactGA from 'react-ga';
import styles from './linkButton.css';
const LinkButton = ({
link,
text,
theme,
scrollLink,
isExter... |
js/App/Components/Schedule/Summary.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... |
node_modules/react-native/local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js | odapplications/WebView-with-Lower-Tab-Menu | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Image,
ListView,
Platform,
StyleSheet,
View,
} from 'react-native';
import ListItem from '../../components/ListItem';
import Backend from '../../lib/Backend';
export default class ChatListScreen extends Component {
stat... |
src/svg-icons/image/panorama-horizontal.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaHorizontal = (props) => (
<SvgIcon {...props}>
<path d="M20 6.54v10.91c-2.6-.77-5.28-1.16-8-1.16-2.72 0-5.4.39-8 1.16V6.54c2.6.77 5.28 1.16 8 1.16 2.72.01 5.4-.38 8-1.16M21.43 4c-.1 0-.2.02-.31.06C... |
examples/src/homeRoute.js | HBM/md-components |
import React from 'react'
import {Icon} from 'md-components'
export default class HomeRoute extends React.Component {
render () {
return (
<div className='Home'>
<div className='Hero'>
<div className='Hero-logo'>
<h1>
<span>md</span>
<span>componen... |
pootle/static/js/admin/general/staticpages.js | Finntack/pootle | /*
* 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 ReactDOM from 'react-dom... |
frontend/src/components/TransactionEmptyState.js | OpenCollective/opencollective-website | import React from 'react';
export default ({i18n}) => {
return (
<div className='center'>
<div className='Collective-emptyState-image flex items-center justify-center'>
<img width='134' height='120'
src='/public/images/collectives/activities-empty-state-image.jpg'
srcSet='/publi... |
src/main.js | nchathu2014/todo-redux | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(
<App/>,
document.getElementById('container')
);
|
src/components/term.js | RexSkz/drone-ui | import React from 'react';
import Status from './status';
import TermRow from './term_row';
import './term.less';
export default
class Term extends React.Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick(e) {
const {proc, open} = this.pro... |
src/containers/protected/agencies_edit.js | hisarkaya/polinsur | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { reduxForm } from 'redux-form';
import { fetchAgency, updateAgency, setNavigation } from '../actions';
import localization from '../helpers/localization';
import Content from '../components/templates/content';
import ContentHeader ... |
docs/src/examples/elements/Image/States/ImageExampleHidden.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Image } from 'semantic-ui-react'
const ImageExampleHidden = () => (
<Image src='/images/wireframe/image.png' size='small' hidden />
)
export default ImageExampleHidden
|
packages/app/app/components/Dashboard/BestNewMusicTab/BestNewMusicMenu/index.js | nukeop/nuclear | import React from 'react';
import PropTypes from 'prop-types';
import { Menu } from 'semantic-ui-react';
import { useTranslation } from 'react-i18next';
import BestNewMusicCardContainer from '../../../../containers/BestNewMusicCardContainer';
import BestNewMusicCard, { bestNewItemShape } from './BestNewMusicCard';
im... |
src/svg-icons/hardware/dock.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDock = (props) => (
<SvgIcon {...props}>
<path d="M8 23h8v-2H8v2zm8-21.99L8 1c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM16 15H8V5h8v10z"/>
</SvgIcon>
);
HardwareDock = ... |
src/client/index.js | avantgrogg/avantcasts | import React from 'react';
import { generateStore } from './store';
import { Provider } from 'react-redux';
import { render } from 'react-dom';
import $ from 'jquery';
import "babel-polyfill";
import '../scss/main.scss';
import 'bulma';
import { Route, BrowserRouter as Router, browserHistory } from 'react-router-dom';... |
examples/05 Customize/Drop Effects/Container.js | numso/react-dnd | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
import SourceBox from './SourceBox';
import TargetBox from './TargetBox';
@DragDropContext(HTML5Backend)
export default class Container extends Component {
render() {
... |
src/GovernmentMemberModal.js | escabc/members-search-app | import React from 'react'
import Modal from 'react-modal'
import ModalSection from './ModalSection'
import CorporateAvatar from './CorporateAvatar'
import Button from './Button'
import MemberName from './MemberName'
import MemberDetailsItem from './MemberDetailsItem'
import theme from './theme'
const styles = {
ro... |
src/svg-icons/editor/multiline-chart.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMultilineChart = (props) => (
<SvgIcon {...props}>
<path d="M22 6.92l-1.41-1.41-2.85 3.21C15.68 6.4 12.83 5 9.61 5 6.72 5 4.07 6.16 2 8l1.42 1.42C5.12 7.93 7.27 7 9.61 7c2.74 0 5.09 1.26 6.77 3.24l-2.88 3... |
components/NormalLayout.js | isogon/styled-mdl-website | import React from 'react'
import styled from 'styled-components'
import Layout from './Layout'
const Content = styled.div`
display: flex;
flex-grow: 1;
flex-direction: column;
margin: 74px auto 60px;
padding-left: 24px;
padding-right: 24px;
@media (min-width: 1032px) {
padding-left: 90px;
paddin... |
src/Checkbox.js | networknt/react-schema-form | /**
* Created by steve on 20/09/15.
*/
import React from 'react'
import Checkbox from '@mui/material/Checkbox'
import FormGroup from '@mui/material/FormGroup'
import FormControlLabel from '@mui/material/FormControlLabel'
import ComposedComponent from './ComposedComponent'
function FormCheckbox(props) {
const {
... |
packages/react-dom/src/shared/checkReact.js | rricard/react | /**
* 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
*/
import React from 'react';
import invariant from 'shared/invariant';
invariant(
React,
'ReactDOM was loaded befor... |
src/svg-icons/maps/local-phone.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPhone = (props) => (
<SvgIcon {...props}>
<path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-... |
packages/react-scripts/template/src/index.js | sigmacomputing/create-react-app | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
js/rendererjs/pluginapi.js | NebulousLabs/Sia-UI | // pluginapi.js: Sia-UI plugin API interface exposed to all plugins.
// This is injected into every plugin's global namespace.
import * as Siad from 'sia.js'
import { remote } from 'electron'
import React from 'react'
import DisabledPlugin from './disabledplugin.js'
import Path from 'path'
const dialog = remote.dialog... |
app/components/Footer.js | madeleinehuish/awesomeVideoApp | import React from 'react';
const Footer = () => {
return (
<div style={styles.footer}>
<div className="container">
<p style={styles.footerText}> © MH & CK</p>
</div>
</div>
)
};
export default Footer;
const styles = {
footer: {
backgroundColor: '#4C4E60'
},
footerText: ... |
docs/src/pages/ParallaxPage.js | chris-gooley/react-materialize | import React from 'react';
import Row from 'Row';
import Col from 'Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import Samples from './Samples';
import parallax from '../../../examples/Parallax';
import parallaxCode from '!raw-loader!Parallax';
const ParallaxPage = () => ... |
src/parser/warlock/demonology/modules/talents/InnerDemons.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatThousands } from 'common/format';
import StatisticListBoxItem from 'interface/others/StatisticListBoxItem';
import DemoPets from '../pets/DemoPets';
im... |
content/gocms/src/admin/containers/adminPages/dashboardPage/dashboardPage.container.js | gocms-io/gocms | 'use strict';
import React from 'react';
import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'
import {connect} from 'react-redux'
class DashboardPage extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
componentWillMount() {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.