path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
packages/wix-style-react/src/MessageBox/docs/AlertExamples/Secondary.js | wix/wix-style-react | /* eslint-disable react/prop-types */
import React from 'react';
import { MessageBoxFunctionalLayout } from 'wix-style-react';
export default () => (
<MessageBoxFunctionalLayout
title="Leaving Already?"
confirmText="Leave this page"
cancelText="Cancel"
theme="blue"
dataHook="alert-secondary"
>
... |
Modal/Modal.js | mmellado/airtame-gooey-react | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
/**
* Modal component. Renders a modal with the desired information.
* @param {Object} [props] - Component props
* @param {boolean} [props.isOpen] - Is the modal open or closed.
* @param {Function} [props.onCl... |
node_modules/react-router/es/MemoryRouter.js | lujinming1/hejicaoye | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
src/svg-icons/action/settings-input-antenna.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputAntenna = (props) => (
<SvgIcon {...props}>
<path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 ... |
project/src/life-cycle/Controller.js | Lucifier129/react-imvc | import Controller from '../../../controller'
import React from 'react'
export default class extends Controller {
SSR = this.location.query.ssr !== '0'
View = View
componentDidMount() {
console.log('didMount')
}
}
function View({ state }) {
console.log('Render View')
return <Child></Child>
}
function... |
react_client/src/todos-list/todos-list.js | danieluy/ds_changelog | import React, { Component } from 'react';
import './todos-list.css'
import ToDoView from '../todo-view/todo-view';
import EntriesTitle from '../entries-title/entries-title';
class TodosList extends Component {
setEntries(entries) {
if (entries.hasOwnProperty('ToDo')) {
const aux = [];
let id = 0;
... |
examples/preact/src/components/RandomButton/RandomButton.js | styleguidist/react-styleguidist | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import sample from 'lodash/sample';
import './RandomButton.css';
/**
* Button that changes label on every click.
*/
export default class RandomButton extends Component {
static propTypes = {
/**
* List of possible labels.
*/
va... |
src/parser/druid/balance/modules/Abilities.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import CoreAbilities from 'parser/core/modules/Abilities';
import ISSUE_IMPORTANCE from 'parser/core/ISSUE_IMPORTANCE';
class Abilities extends CoreAbilities {
spellbook() {
const combatant = this.selectedCom... |
front-end_js/react/hello_world/src/index.js | Badacadabra/hello-js-world | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/Modal/components/SearchPlugins.js | jaruba/PowderPlayer | import React from 'react';
import {
clipboard
} from 'electron';
import ModalActions from '../actions';
import ModalStore from '../store';
import MessageActions from '../../Message/actions';
import PlayerActions from '../../Player/actions';
import linkUtil from '../../../utils/linkUtil';
import plugins from '../... |
src/svg-icons/navigation/arrow-drop-down.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropDown = (props) => (
<SvgIcon {...props}>
<path d="M7 10l5 5 5-5z"/>
</SvgIcon>
);
NavigationArrowDropDown = pure(NavigationArrowDropDown);
NavigationArrowDropDown.displayName = 'NavigationA... |
examples/js/others/expose-api-table.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-alert: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
product... |
src/components/Th.js | ua-oira/react-super-responsive-table | import React from 'react';
import allowed from '../utils/allowed';
const Th = (props) => <th data-testid="th" {...allowed(props)} />;
export default Th;
|
jenkins-design-language/src/js/stories/TextAreaStories.js | kzantow/blueocean-plugin | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { TextArea } from '../components/forms/TextArea';
storiesOf('TextArea', module)
.add('general', () => <General />)
.add('callbacks', () => <Callbacks />)
.add('sizes', () => <Sizes />)
;
const style = {padding: 10};
function... |
examples/chatrooms/web-client/src/index.js | 475Cumulus/TBone | /*
Application Entry Point
*/
import React from 'react';
import {render} from 'react-dom';
import { createStore, compose, applyMiddleware } from 'redux';
import reduxThunk from 'redux-thunk';
import { Provider } from 'react-redux';
import createHistory from 'history/createBrowserHistory';
import { routerMiddleware... |
src/pages/index.js | graana/amazonmall | import React from 'react'
import Link from 'gatsby-link'
import Slider from 'react-slick'
export default class IndexPage extends React.Component {
constructor (props) {
super(props)
//console.log(props)
this.onClickHeaderItem = this.onClickHeaderItem.bind(this)
}
onClickHeaderItem (e) {
console... |
packages/wix-style-react/src/MessageBox/docs/AlertExamples/ImageWithSideAction.js | wix/wix-style-react | /* eslint-disable react/prop-types */
import React from 'react';
import surfMusa from '../../../../test/assets/surf-musa.png';
import { MessageBoxFunctionalLayout, Checkbox, Text } from 'wix-style-react';
export default () => (
<MessageBoxFunctionalLayout
title="Interruption Message"
confirmText="Main"
... |
src/js/components/icons/base/UserAdmin.js | linde12/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... |
src/IconButton/IconButton.js | boldr/boldr-ui | import React from 'react';
import omit from 'lodash.omit';
import PropTypes from 'prop-types';
import BoldrComponent from '../util/BoldrComponent';
import IconButtonLayout from './IconButtonLayout';
class IconButton extends BoldrComponent {
static propTypes = {
...IconButtonLayout.propTypes,
children: PropT... |
react-flux-mui/js/material-ui/src/svg-icons/communication/live-help.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLiveHelp = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 16h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 11.9 13 12.5 13... |
server/sonar-web/src/main/js/apps/background-tasks/main.js | joansmith/sonarqube | /*
* 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... |
clients/packages/admin-client/src/subscriptions/forms/credit-card-form.js | nossas/bonde-client | import PropTypes from 'prop-types';
import React from 'react';
import { reduxForm } from 'redux-form';
import { FormGroup, ControlLabel, FormControl } from '../../components/forms';
import { Pagarme } from '../../components/external-services';
import * as validators from '../../utils/redux-form/validators';
import * as... |
src/App.js | huhulab/demo-cond-select | import React from 'react';
import { Radio, Button } from 'antd';
const RadioItem = React.createFactory(Radio);
const RadioButton = React.createFactory(Radio.Button);
const RadioGroup = React.createFactory(Radio.Group);
const ButtonItem = React.createFactory(Button);
const div = React.createFactory('div');
const span =... |
app/javascript/mastodon/components/admin/ReportReasonSelector.js | gol-cha/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import api from 'mastodon/api';
import { injectIntl, defineMessages } from 'react-intl';
import classNames from 'classnames';
const messages = defineMessages({
other: { id: 'report.categories.other', defaultMessage: 'Other' },
spam: { id: 'report.categ... |
app/src/components/Dialog.js | quiaro/chunches | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import styled from 'styled-components';
import '../styles/dialog.css';
const Styled = styled.div`
position: relative;
padding-top: 10px;
> button {
position: absolute;
top: -10px;
right: -10px;
height: 1.4rem;
width:... |
src/pages/skills.js | mike-plummer/mike-plummer.github.io | import React from 'react';
import get from 'lodash/get';
import Helmet from 'react-helmet';
import HeaderGeneric from '../components/HeaderGeneric';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
class Skills extends React.Component {
render() {
const { data } = this.props;
cons... |
src/svg-icons/editor/vertical-align-top.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorVerticalAlignTop = (props) => (
<SvgIcon {...props}>
<path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/>
</SvgIcon>
);
EditorVerticalAlignTop = pure(EditorVerticalAlignTop);
EditorVerticalAlignTop.dis... |
frontend/Story/StoryTags.js | fdemian/Morpheus | import React from 'react';
import Chip from 'material-ui/Chip';
const chipStlye = {margin: 4};
const StoryTags = ({tags}) => {
if(tags == null)
return(
<div>
<p>No tags</p>
</div>
);
const data = tags.split(",");
return(
<div>
{data.map((tag, i) => <Chip style={chipStlye} key={... |
packages/material-ui-icons/src/VideoLabel.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let VideoLabel = props =>
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H3V5h18v11z" />
</SvgIcon>;
VideoLabel = pure(VideoLabel);
VideoLabe... |
src/components/MakeWrapper/MakeWrapper.js | Zoomdata/nhtsa-dashboard | import flowRight from 'lodash.flowright';
import React, { Component } from 'react';
import MakeHeader from '../MakeHeader/MakeHeader';
import MakeBarChart from '../MakeBarChart/MakeBarChart';
import { getWidth, getHeight } from '../../utilities';
import { observer, inject } from 'mobx-react';
class MakeWrapper extends... |
src/modules/BootModal/BootModalBody.js | shengnian/shengnian-ui-react | import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import { mapToCssModules } from '../../lib/'
const propTypes = {
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
className: PropTypes.string,
cssModule: PropTypes.object,
}
const defaultProps = {
tag: 'div',... |
app/containers/HomePage/index.js | himanshujariyal/s3-bucket-explorer | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
fields/types/geopoint/GeoPointColumn.js | lojack/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var GeoPointColumn = React.createClass({
displayName: 'GeoPointColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropType... |
packages/skip-link/tests/react/index.js | govau/uikit | import React from 'react';
import ReactDOM from 'react-dom';
import AUskipLink from './skip-link.js';
ReactDOM.render(
<div>
<AUskipLink links={[
{
link: '#nav',
text: 'Skip to navigation',
},
{
link: '#content',
text: 'Skip to content',
},
{
link: '#content',
text: 'Skip li... |
sc/src/main/javascript/bundles/gene-search/index.js | gxa/atlas | import React from 'react'
import ReactDOM from 'react-dom'
import GeneSearchRouter from './src/GeneSearchRouter'
const render = (options, mountNodeId) => {
ReactDOM.render(<GeneSearchRouter {...options} />, document.getElementById(mountNodeId))
}
export { render }
|
src/components/UILinkList.js | oglimmer/linky |
import React from 'react';
import PropTypes from 'prop-types';
import { ListGroup, ListGroupItem } from 'react-bootstrap';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { toggleVisibilityMenuBar } from '../redux/actions';
import { editLink, clickLink } from ... |
src/SortableItem/index.js | edulan/react-virtual-kanban | import React from 'react';
import { DragSource, DropTarget } from 'react-dnd';
import { getEmptyImage } from 'react-dnd-html5-backend';
import { ROW_TYPE } from '../types';
import * as dragSpec from './dragSpec';
import * as dropSpec from './dropSpec';
import * as propTypes from './propTypes';
import PureComponent fr... |
src/server/middlewares/frontend/index.js | skyuplam/start-react | /**
*
* A Koa middleware that is capable of serving react appcaition.
*
*/
import React from 'react';
import { renderToString } from 'react-dom/server';
import helmet from 'react-helmet';
import webpack from 'webpack';
import { StaticRouter } from 'react-router';
import { devMiddleware, hotMiddleware } from 'koa-... |
src/common/containers/App.js | strekmann/samklang | import React from 'react';
import Navigation from '../components/Navigation';
import Footer from '../components/Footer';
import Chat from '../containers/Chat';
import { connect } from 'react-redux';
class App extends React.Component {
render() {
return (
<div>
<Navigation
... |
packages/components/src/CircularProgress/CircularProgress.component.js | Talend/ui | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import { withTranslation } from 'react-i18next';
import I18N_DOMAIN_COMPONENTS, { CIRCULAR_PROGRESS_SIZE as SIZE } from '../constants';
import theme from './CircularProgress.scss';
import getDefaultT from '../translate'... |
src/js/components/Footer.js | fjferrer/todoReactFlux | import React from 'react';
export default class Footer extends React.Component {
render() {
return (
<footer>This is the footer of my page</footer>
);
}
} |
src/clincoded/static/libs/render_variant_title.js | ClinGen/clincoded | 'use strict';
import React from 'react';
/**
* Method to display the title of a variant.
* 1st option is the ClinVar Preferred Title if it's present.
* 2nd alternative is a string constructed with the MANE transcript, gene symbol and protein change.
* 3rd alternative is a string constructed with the canonical tran... |
app/components/ConsoleToolbar.js | shaunstanislaus/fil | import React from 'react';
import {connect} from 'react-redux';
import {setPreference} from 'actions/preferences';
import {getExtension} from 'helpers';
import {byExtension} from 'interpreters';
class ConsoleToolbar extends React.Component {
handleRunButton(event) {
event.preventDefault();
this.props.onRun(... |
src/ImageControls.js | rexxars/imbo-demo | /* eslint-disable no-unused-expressions, no-alert, no-bitwise */
import React from 'react'
const isNotNan = num => !isNaN(num)
const sizeTransformations = ['resize', 'maxSize', 'thumbnail', 'smartSize']
const hasSizeTransformation = url => url.transformations.some(
transform => sizeTransformations.indexOf(transform.... |
docs/src/app/pages/components/SelectField/ExampleSelectFieldError.js | GetAmbassador/react-ions | import React from 'react'
import SelectField from 'react-ions/lib/components/SelectField/SelectField'
const options = [
{value: '0', display: 'test 1'},
{value: '1', display: 'test 2'}
]
const ExampleSelectFieldError = () => (
<SelectField
options={options}
optClass='selectfield-error'
valueProp='va... |
packages/react-router-native/examples/RouteConfig.js | goblortikus/react-router | import React from 'react'
import { StyleSheet, Text, AppRegistry, View } from 'react-native'
import { NativeRouter, Route, Link } from 'react-router-native'
// Some folks find value in a centralized route config.
// A route config is just data. React is great at mapping
// data into components, and <Route> is a compon... |
src/cms/preview-templates/post-preview.js | wall3/wall3.github.io | // @flow strict
import React from 'react';
import type { Entry, WidgetFor } from '../../types';
type Props = {
entry: Entry,
widgetFor: WidgetFor
};
const PostPreview = ({ entry, widgetFor }: Props) => {
const body = widgetFor('body');
const title = entry.getIn(['data', 'title']);
return (
<div classNa... |
src/components/productPage.js | ayha/twinzy | import React, { Component } from 'react';
class ProductPage extends Component {
constructor(props){
super(props);
//console.log(props)
this.state = { "pid": props.match.params.productid }
}
render(){
return(
<div className="Product">
Product ID {this.state.pid}
</di... |
src/parser/druid/balance/modules/talents/azeritetraits/PowerOfTheMoon.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatNumber, formatPercentage } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import HIT_TYPES from 'game/HIT_TYPES';
import Analyzer from 'parser/core/Analyzer';
import AzeritePowerStatistic from 'interface/statis... |
mobile/Simplenote/src/screens/login/index.js | abhaydgarg/Simplenote | /* eslint-disable no-invalid-this */
import React, { Component } from 'react';
import { View, Image, KeyboardAvoidingView } from 'react-native';
import { NavigationActions } from 'react-navigation';
import { FormInput, Button } from 'react-native-elements';
import { connect } from 'react-redux';
import PropTypes from '... |
blueocean-material-icons/src/js/components/svg-icons/action/youtube-searched-for.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionYoutubeSearchedFor = (props) => (
<SvgIcon {...props}>
<path d="M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2.01 4.5 4.5c0 2.48-2.02 4.5-4.5 4.... |
src/svg-icons/av/video-label.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideoLabel = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H3V5h18v11z"/>
</SvgIcon>
);
AvVideoLabel = pure(AvVideoLabel);
AvVid... |
src/svg-icons/image/vignette.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageVignette = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z"/>
</SvgIcon>... |
website-prototyping-tools/RelayPlayground.js | chentsulin/relay | /**
* Copyright (c) 2013-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... |
Paths/React/05.Building Scalable React Apps/5-react-boilerplate-building-scalable-apps-m5-exercise-files/After/app/containers/LinkListContainer/index.js | phiratio/Pluralsight-materials | /*
*
* LinkListContainer
*
*/
import React from 'react';
import { connect } from 'react-redux';
import selectLinkListContainer from './selectors';
import LinkList from '../../components/LinkList';
export class LinkListContainer extends React.Component { // eslint-disable-line react/prefer-stateless-function
ren... |
src/svg-icons/communication/swap-calls.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationSwapCalls = (props) => (
<SvgIcon {...props}>
<path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8... |
src/views/np/NPPanel.js | bostontrader/senmaker | // @flow
import React from 'react'
import NPAEForm from './addedit/NPAEForm'
import NPTable from './NPTable'
import NPActions from '../../data/np/NPActions'
/*
The NPPanel is responsible for displaying everything about our list of np. Such
the table of NP, and the add or edit forms.
*/
function NPPanel(props:Obj... |
mxcube3/ui/components/SampleView/MotorControl.js | amilan/mxcube3 | import React from 'react';
import MotorInput from './MotorInput';
import './motor.css';
export default class MotorControl extends React.Component {
render() {
const { phi, phiy, phiz, focus, sampx, sampy, kappa, kappa_phi } = this.props.motors;
const {
phiStep,
phiyStep,
phizStep,
fo... |
docs/app/Examples/elements/Label/Variations/LabelExampleSize.js | Rohanhacker/Semantic-UI-React | import _ from 'lodash'
import React from 'react'
import { Label } from 'semantic-ui-react'
const sizes = ['mini', 'tiny', 'small', 'medium', 'large', 'big', 'huge', 'massive']
const LabelExampleSize = () => (
<div>
{sizes.map(size => (
<Label key={size} size={size}>
{_.capitalize(size)}
</La... |
ajax/libs/recompose/0.20.1/Recompose.js | tholu/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
tests/baselines/reference/tsxStatelessComponentDefaultProps.js | donaldpipowitch/TypeScript | //// [tsxStatelessComponentDefaultProps.tsx]
/// <reference path="/.lib/react16.d.ts" />
import React from 'react';
interface Props {
text: string;
}
function BackButton(_props: Props) {
return <div />
}
BackButton.defaultProps = {
text: 'Go Back',
};
let a = <BackButton />
//// [tsxStatelessComponen... |
src/components/NavBar.js | danesparza/appliance-monitor-cloud | // React and reactstrap
import React, { Component } from 'react';
import {
Collapse,
Navbar,
NavbarToggler,
NavbarBrand,
Nav,
NavItem,
NavLink,
} from 'reactstrap';
// Stylesheets & images
import './../App.css';
import 'bootstrap/dist/css/bootstrap.css';
class NavBar extends Component {
construct... |
src/components/Header/Header.js | charesbast/react | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import MyCartButton from '../MyCartButton/MyCartButton.js';
import Link from '../Link';
@withStyles(styles)
class ... |
components/log_in.js | pepsinic/moody_react | import React from 'react'
import {bindActionCreators} from "redux"
import {connect} from 'react-redux'
import {checkUserAsync, tempUser} from '../store/actions'
import {browserHistory} from "react-router"
import {Button} from 'react-bootstrap'
class LogIn extends React.Component {
constructor(props){
super(props)
... |
app/javascript/mastodon/components/collapsable.js | mhffdq/mastodon | import React from 'react';
import Motion from '../features/ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import PropTypes from 'prop-types';
const Collapsable = ({ fullHeight, isVisible, children }) => (
<Motion defaultStyle={{ opacity: !isVisible ? 0 : 100, height: isVisible ? fullHeight :... |
server/sonar-web/src/main/js/apps/projectActivity/routes.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... |
app/javascript/mastodon/components/video_player.js | verniy6462/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { isIOS } from '../is_mobile';
const messages = defineMessages({
toggle_... |
app/javascript/mastodon/features/ui/components/column_loading.js | kibousoft/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Column from '../../../components/column';
import ColumnHeader from '../../../components/column_header';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class ColumnLoading extends ImmutablePureComponent {
stat... |
client/modules/expense/components/.stories/expense_list.js | BitSherpa/expensius | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import ExpenseList from '../expense_list.jsx';
storiesOf('expense.ExpenseList', module)
.add('default view', () => {
return (
<ExpenseList />
);
})
|
src/components/Header/Header.js | hrnik/roofbar | import React from 'react'
import { IndexLink, Link } from 'react-router'
import './Header.scss'
export const Header = () => (
<div>
<h1>React Redux Starter Kit</h1>
<IndexLink to='/' activeClassName='route--active'>
Home
</IndexLink>
{' · '}
<Link to='/counter' activeClassName='route--activ... |
packages/reactor-tests/src/Layout.js | markbrocato/extjs-reactor | import React from 'react';
import { Container } from '@extjs/ext-react';
export default function Layout({ children }) {
return (
<Container layout="fit">
{ children }
</Container>
)
} |
playground/src/App.js | itsolutions-dev/react-styled-ui | import React from 'react';
import Playground from './Playground';
import * as components from '../../src/';
import ThemeProvider from '../../src/ThemeProvider';
const { Heading } = components;
const filePathToComponentName = file =>
file.replace(/\.\/(examples\/)?/, '').replace(/\.example$/, '');
const getExamples... |
src/js/components/icons/base/VolumeMute.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... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/bug-report.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionBugReport = (props) => (
<SvgIcon {...props}>
<path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-... |
pootle/static/js/admin/components/Language/LanguageController.js | JohnnyKing94/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 Search from '../Search'... |
src/routes/Girlip/components/TripSchedule.js | markkong318/Girlip | import React from 'react';
import { connect } from 'react-redux'
import TripItem from './TripItem'
class TripSchedule extends React.Component {
render() {
const {schedule, month, day, day_of_week} = this.props;
return (
<div style={{display: 'block'}} className="schedView" id="print_w... |
src/modules/Search/SearchResults.js | aabustamante/Semantic-UI-React | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
function SearchResults(props) {
const { children, className } = props
const classes = cx('results transition', className)
const r... |
components/link.js | sgmap/inspire |
import React from 'react'
import PropTypes from 'prop-types'
import NextLink from 'next/link'
import {translate} from 'react-i18next'
const Link = ({
href,
as,
i18n: {language},
tReady, // Destructured so that it’s not included in ...props
t, // Destructured so that it’s not included in ...props
...prop... |
src/svg-icons/action/change-history.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionChangeHistory = (props) => (
<SvgIcon {...props}>
<path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"/>
</SvgIcon>
);
ActionChangeHistory = pure(ActionChangeHistory);
ActionChangeHistory.display... |
examples/src/components/CustomOption.js | jo-asakura/react-select | import React from 'react';
import Gravatar from 'react-gravatar';
var Option = React.createClass({
propTypes: {
addLabelText: React.PropTypes.string,
className: React.PropTypes.string,
mouseDown: React.PropTypes.func,
mouseEnter: React.PropTypes.func,
mouseLeave: React.PropTypes.func,
option: React.PropTy... |
docs/src/app/components/pages/components/DatePicker/ExampleControlled.js | kasra-co/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
/**
* `DatePicker` can be implemented as a controlled input,
* where `value` is handled by state in the parent component.
*/
export default class DatePickerExampleControlled extends React.Component {
constructor(props) {
super(props)... |
examples/todo/js/components/TodoList.js | venepe/relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
tests/components/icons/status/OK-test.js | abzfarah/Pearson.NAPLAN.GnomeH | import {test} from 'tape';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import OK from '../../../src/components/icons/status/OK';
import CSSClassnames from '../../../src/utils/CSSClassnames';
const STATUS_ICON = CSSClassnames.STATUS_ICON;
test('loads a ok icon', (t) => {
t.plan(1);
... |
docs/src/app/components/pages/components/IconMenu/ExampleSimple.js | ArcanisCz/material-ui | import React from 'react';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import IconButton from 'material-ui/IconButton';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';
/**
* Simple Icon Menus demonstrating some of the layouts possible using the `anc... |
client/src/components/pages/provider/RespondToPage.js | 15thnight/15thnight | import React from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import { AlertInfo } from 'alert';
import { FormErrors, FormGroup, Input } from 'form';
import {
getAlert, sendResponse, clearFormStatus
} from 'actions';
import styles fr... |
node_modules/enzyme/src/version.js | Oritechnology/pubApp | import React from 'react';
export const VERSION = React.version;
export const REACT013 = VERSION.slice(0, 4) === '0.13';
export const REACT014 = VERSION.slice(0, 4) === '0.14';
export const REACT15 = VERSION.slice(0, 3) === '15.';
|
src/components/Overlay/Overlay.js | psound/jm-liberty | import React from 'react';
import { IndexLink, Link } from 'react-router';
import { Button, Modal } from 'react-bootstrap';
let styles = {};
class Overlay extends React.Component {
constructor (props) {
super(props);
this.state = {
show: false,
};
}
handleOpen = () => {
... |
node_modules/native-base/src/backward/Widgets/List.js | odapplications/WebView-with-Lower-Tab-Menu | import React from 'react';
import { ListView, View } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames';
import NativeBaseComponent from '../Base/NativeBaseComponent';
class List extends NativeBaseComponent {
renderChildren() {
... |
examples/customised/styleguide/components/Logo.js | bluetidepro/react-styleguidist | import React from 'react';
import PropTypes from 'prop-types';
import Styled from 'rsg-components/Styled';
import logo from './logo.svg';
const styles = ({ fontFamily, color }) => ({
logo: {
display: 'flex',
alignItems: 'center',
margin: 0,
fontFamily: fontFamily.base,
fontSize: 18,
fontWeight: 'normal',
... |
fields/types/textarea/TextareaField.js | qwales1/keystone | import Field from '../Field';
import React from 'react';
module.exports = Field.create({
displayName: 'TextareaField',
renderField () {
var styles = {
height: this.props.height,
};
return <textarea name={this.props.path} styles={styles} ref="focusTarget" value={this.props.value} onChange={this.valueChanged}... |
docs/src/app/components/pages/components/GridList/ExampleComplex.js | matthewoates/material-ui | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
},
gridLi... |
app/javascript/mastodon/features/ui/components/block_modal.js | primenumber/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import { makeGetAccount } from '../../../selectors';
import Button from '../../../components/button';
import { closeModal } from '../../../actions/modal';
impo... |
src/core/UserProfileStructure/EditProfileDisplayName/index.js | dlennox24/ricro-app-template | import Collapse from '@material-ui/core/Collapse';
import IconButton from '@material-ui/core/IconButton';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction';
import ListItemText from '@material-ui/... |
src/plugin/BoobsPost/UserAvatar.js | BoomBoobs/chrome-extension | import React from 'react';
export default class UserAvatar extends React.Component {
render() {
return (
<a className='_5pb8 _29h _303' href='https://github.com/BoomBoobs/chrome-extension' target='_blank'>
<div className='_38vo'>
<img className='_s0 _5xib _5sq7 _44ma _rw img' src='https... |
src/svg-icons/image/add-a-photo.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAddAPhoto = (props) => (
<SvgIcon {...props}>
<path d="M3 4V1h2v3h3v2H5v3H3V6H0V4h3zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10h3zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-... |
src/components/Root.js | caviles/wflows | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import routes from '../routes';
import { Router } from 'react-router';
export default class Root extends Component {
render() {
const { store, history } = this.props;
return (
<Provider... |
frontend/js/components/environments/Admin.js | ttavenner/okcandidate-platform | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Card from './../atoms/Card';
class Admin extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="container">
... |
src/svg-icons/image/style.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageStyle = (props) => (
<SvgIcon {...props}>
<path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.... |
app/javascript/mastodon/features/blocks/index.js | clworld/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import PropType... |
src/index.js | Aragantinis/mjump | 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();
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.