path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
fields/types/name/NameColumn.js | naustudio/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
import displayName from 'display-name';
var NameColumn = React.createClass({
displayName: 'NameColumn',
propTypes: {
col: React.PropTypes.object,
data: React.Pr... |
org.jcryptool.core.help/javascript/tocbot-4.11.2/src/components/Template/index.js | jcryptool/core | import React from 'react'
import PropTypes from 'prop-types'
import Head from 'next/head'
import Hero from './Hero'
import Tocbot from './Tocbot'
import Tracking from './Tracking'
function Template (props) {
return (
<div className='page-content'>
<Head>
<title>{props.title}</title>
<meta n... |
index.js | tomwayson/esri-react-router-example | import 'whatwg-fetch'
import React from 'react'
import { render } from 'react-dom'
import { Router, Route, hashHistory, IndexRoute } from 'react-router'
import App from './modules/App'
import Home from './modules/Home'
import Maps from './modules/Maps'
import Map from './modules/Map'
console.time('initial render')
re... |
examples/js/column-filter/date-filter.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
const startDate = new Date(2015, 0, 1);
const endDate = new Date();
... |
app/components/Application.js | hirofumii/fluxible-koa-example | /*globals document*/
import React from 'react';
import Nav from './Nav';
import Timestamp from './Timestamp';
import ApplicationStore from '../stores/ApplicationStore';
export default class Application extends React.Component {
static contextTypes = {
getStore: React.PropTypes.func,
executeAction:... |
src/ui/components/loader/loader.js | bcbrian/whats-my-route | import React from 'react';
export default function Loader() {
return (
<div className="spinner">
<div className="rect1" />
<div className="rect2" />
<div className="rect3" />
<div className="rect4" />
<div className="rect5" />
</div>
);
}
|
es/components/style/button.js | dearkaran/react-planner | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defineProperties(ta... |
services/ui/.storybook/config.js | amazeeio/lagoon | // Import the mocked next.config before importing decorators.
import config from './next.mock-config';
import React from 'react';
import requireContext from 'require-context.macro';
import { addDecorator, addParameters, configure } from '@storybook/react';
import { withA11y } from '@storybook/addon-a11y';
import { with... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/dashboard.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionDashboard = (props) => (
<SvgIcon {...props}>
<path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/>
</SvgIcon>
);
ActionDashboard.displayName = 'ActionDashboard';
ActionDashboard.muiName = 'SvgIcon';
export default... |
Js/Ui/Components/DateRange/index.js | Webiny/Webiny | import React from 'react';
import ReactDOM from 'react-dom';
import _ from 'lodash';
import $ from 'jquery';
import Webiny from 'webiny';
import 'bootstrap-daterangepicker';
import './styles.scss?extract';
/**
* TODO: complete I18N support needed.
*/
class DateRange extends Webiny.Ui.FormComponent {
constructor... |
src/components/GoogleMap/GoogleMap.js | chopublica/chopublica.github.io | import React, { Component } from 'react';
import GoogleMapReact from 'google-map-react';
const AnyReactComponent = ({ text }) => <div>{text}</div>;
class GoogleMap extends Component {
static defaultProps = {
center: {lat: 37.56, lng: 126.97},
zoom: 13
};
render() {
return (
<div style={{hei... |
src/Main Pages/HomePage/CouponPresentationalComponents/CouponFilter.js | millerman86/CouponProject | import React from 'react';
import MySlider from '../../Slider/Slider';
const alphabet = [
'',
'A',
'B',
'C',
'D',
'E',
'F',
'G',
'H',
'I',
'J',
'K',
'L',
'M',
'N',
'O',
'P',
'Q',
'R',
'S',
'T',
'U',
'V',
'W',
'X',
'Y',
'Z'
];
export default class CouponFilte... |
frontend/src/Settings/Profiles/Delay/EditDelayProfileModalConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { clearPendingChanges } from 'Store/Actions/baseActions';
import EditDelayProfileModal from './EditDelayProfileModal';
function mapStateToProps() {
return {};
}
const mapDispatchToProps = {
... |
local-cli/generator/templates/index.android.js | jhen0409/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class <%= name %> extends Component {
render() {
return (
<View style={styles.container}>
<T... |
src/LyricsEditor.js | colinmorris/SongSim | import React, { Component } from 'react';
import './LyricsPane.css';
import {CustomVerse} from './verse.js';
class LyricsEditor extends Component {
textAreaBlur = (e) => {
// When the textarea loses focus, treat this as an intent to save unless
// the thing gaining focus is the "cancel" button.
if (... |
admin/client/App/shared/Popout/PopoutBody.js | trentmillar/keystone | /**
* Render the body of a popout
*/
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... |
src/modules/auth/components/login.js | xangxiong/xim-js | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { withRouter } from 'react-router-dom';
import { Grid, Header, Image, Icon, Input, Button, Message, Form } from 'semantic-ui-react';
import * as authenticationActions ... |
src/svg-icons/device/brightness-medium.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessMedium = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6... |
src/components/Feed/FeedHeader/index.js | PowerlineApp/powerline-rn | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Actions } from 'react-native-router-flux';
import { TouchableHighlight, View, Image } from 'react-native';
import { Text, Button, ActionSheet, Icon, Left, Right, Body, Thumbnail, CardItem } from 'native-base';
import TimeAgo from... |
server/dashboard/js/components/TimelineElement.react.js | moigagoo/mzbench | import React from 'react';
import moment from 'moment';
import RelativeDate from './RelativeDate.react';
import MZBenchActions from '../actions/MZBenchActions';
class TimelineElement extends React.Component {
render() {
let { bench, isSelected, duration } = this.props;
let cssClass = "bs bs-" + (... |
src/routes/hoursandmilesbydate/index.js | bigwaterconsulting/to_dash_live | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
src/components/UserOnline/UserOnline.js | dialogs/dialog-web-components | /*
* Copyright 2019 dialog LLC <info@dlg.im>
* @flow
*/
import React from 'react';
import { Text, L10n } from '@dlghq/react-l10n';
import classNames from 'classnames';
import { getUserLastSeen } from './utils/getUserLastSeen';
import styles from './UserOnline.css';
export type Online = { online: true, updateDate: ... |
test/helpers.js | aparticka/react-overlays | import React from 'react';
import { cloneElement } from 'react';
export function shouldWarn(about) {
console.warn.called.should.be.true;
console.warn.calledWithMatch(about).should.be.true;
console.warn.reset();
}
/**
* Helper for rendering and updating props for plain class Components
* since `setProps` is de... |
src/containers/Asians/TabControls/AdjudicatorTest/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import CreateAdjudicatorTest from './CreateAdjudicatorTest'
import ViewAdjudicatorTest from './ViewAdjudicatorTest'
export default connect(mapStateToProps)(({
adjudicatorTest
}) => {
if (adjudicatorTest.length === 0) {
return <CreateAdjudicatorTe... |
src/components/pages/IE/index.js | PulseTile/PulseTile-React | import React from 'react';
// components
import BrowsersList from './BrowsersList';
function IE() {
return (
<section className="ie">
<div className="ie__inner-wrapper">
<h1 className="ie__title">
Welcome, please use one of our preferred browsers
</h1>
<BrowsersList />
... |
src/beComponents/TextArea.js | BeAce/expressjs-react-blog | /* eslint-disable */
import React, { Component } from 'react';
import Modal from 'components/Modal.js';
export default class TextArea extends Component {
constructor(props) {
super(props);
this.state = {
model: {
author: 'beace',
abstract: '',
title: '',
content: '',
... |
src/components/organisms/extra-courses.js | raulfdm/cv | import React from 'react';
import styled from 'styled-components';
import { MainContext } from 'src/contexts/main';
import ExtraCourse from 'molecules/extra-course';
const ExtraCourses = styled.div`
margin-top: 0.8rem;
`;
const Title = styled.h3`
font-size: 1.8rem;
`;
const ExtraCourseWrapper = () => {
const ... |
src/components/Gauges/Gauges.js | Zoomdata/nhtsa-dashboard | import flowRight from 'lodash.flowright';
import { toJS } from 'mobx';
import React from 'react';
import Gauge from '../Gauge/Gauge';
import { observer, inject } from 'mobx-react';
function Gauges({ store }) {
const metricData = toJS(store.chartData.metricData);
const metricTotalsData = toJS(store.chartData.metric... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultPropsInline.js | MichaelDeBoey/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
static defaultProps: {a: number, b: number, c: number} = {a: 1, b: 2, c: 3};
props: Props;
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extend... |
app/components/nav.js | jcmcneal/react-step-wizard | import React from 'react';
/* eslint react/prop-types: 0 */
import styles from './nav.less';
const Nav = (props) => {
const dots = [];
for (let i = 1; i <= props.totalSteps; i += 1) {
const isActive = props.currentStep === i;
dots.push((
<span
key={`step-${i}`}
... |
src/js/components/artifacts/artifactPayload.js | michaelatmender/gui | import React from 'react';
import { List, ListItem, ListItemText, Table, TableBody, TableCell, TableHead, TableRow } from '@mui/material';
import { FileSize, getFormattedSize } from './../../helpers';
import Time from '../common/time';
import { makeStyles } from 'tss-react/mui';
const METADATA_SPACING = 2;
const use... |
examples/todomvc/containers/TodoApp.js | madole/redux-devtools | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
class TodoApp extends Component {
render(... |
src/Parser/MistweaverMonk/Modules/Items/PetrichorLagniappe.js | Yuyz0112/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import { formatNumber } from 'common/format';
import Module from 'Parser/Core/Module';
const debug = false;
const PETRICHOR_REDUCTION = 2000;
class PetrichorLagniappe extends Module {
REVIVAL_BASE_COOLDOWN = 0;
tota... |
node_modules/react-router/es/Router.js | vallihe/wizarddemo | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/components/Popup.js | shoegazer/shuffle-guru | import React from 'react'
import Dialog from 'material-ui/Dialog'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import FlatButton from 'material-ui/FlatButton'
import Lyrics from './Lyrics'
import { connect } from 'react-redux'
import { withActions } from '../lib/actions'
import { closePopup } from... |
frontend/src/components/common/grid/gridColumn.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import Grid from 'material-ui/Grid';
function GridColumn(props) {
const { children, spacing, ...other } = props;
return (
<Grid container direction="column" spacing={spacing} {...other}>
{React.Children.map(children, child =>
(child
... |
src/components/top-post/index.js | mozaikio/mozaik-blog-app | import React from 'react';
import { Link } from 'react-router-dom';
import getBasePath from '../../lib/getBasePath';
export default function TopPost(props) {
const { slug, title, headerImage } = props;
return (
<div className="top-post">
<Link to={`${getBasePath()}/post/${slug}`} className="top-post__li... |
src/svg-icons/image/exposure-neg-2.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposureNeg2 = (props) => (
<SvgIcon {...props}>
<path d="M15.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17s.19-.79.19-1.18c0-.53-.09-1.02-.27-1.46-.18-.44-.44-.81... |
src/views/Card/CardGroup.js | aabustamante/Semantic-UI-React | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useKeyOnly,
useWidthProp,
} from '../../lib'
import Card from './Card'
/**
* A group of cards.
*/
function CardGroup(p... |
project/LearnReact/node_modules/react-router/modules/Lifecycle.js | xzzw9987/Memos | import React from 'react'
import invariant from 'invariant'
const { object } = React.PropTypes
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On standard transitions, routerWillLeave receives ... |
app/addons/setup/components/MultipleNodeController.js | michellephung/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
src/svg-icons/action/picture-in-picture-alt.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPictureInPictureAlt = (props) => (
<SvgIcon {...props}>
<path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"/>
</Svg... |
ui/src/pages/group-history.js | yahoo/athenz | /*
* Copyright 2020 Verizon Media
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
src/auth/screens/events.screen.js | Antoine38660/git-point | /* eslint react/prop-types: 0 */
/* eslint-disable no-shadow */
import React, { Component } from 'react';
import styled from 'styled-components/native';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Text, FlatList, View } from 'react-native';
import { LoadingUserListItem, ... |
src/components/body/journal/Journal.js | TechyFatih/Nuzlog | import React from 'react';
import { Panel, Button, Row, Col, ListGroup, ListGroupItem, Modal,
FormGroup, InputGroup, FormControl } from 'react-bootstrap';
import { connect } from 'react-redux';
import './Journal.css';
import NewLocation from './newLocation/NewLocation';
import ConfirmModal from 'components/other/Co... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Apis/Listing/ApiTableRow.js | dewmini/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
assets/jqwidgets/demos/react/app/datatable/grouping/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js';
class App extends React.Component {
render() {
let source =
{
dataType: 'xml',
dataFields: [
{ name: 'Supp... |
src/components/Radial.react.js | mirzawaqasahmed/kitematic | import React from 'react';
import classNames from 'classnames';
var Radial = React.createClass({
render: function () {
var percentage;
if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) {
percentage = (
<div className="percentage"><... |
src/components/CustomView.js | jjimenezlopez/ReactNativePOC | import React, { Component } from 'react';
import { View, Text, TouchableWithoutFeedback, ActivityIndicator } from 'react-native';
import { connect } from 'react-redux';
import { Icon } from 'react-native-elements';
import RNFetchBlob from 'react-native-fetch-blob';
import Sound from 'react-native-sound';
import * as a... |
src/components/WeatherIcon/index.js | andrkrn/react-weather | import React from 'react';
const WeatherIcon = ({ weather }) => {
if (weather !== undefined) {
return (
<div className='weather-icon'>
<img src={`${getWeatherIcon(weather[0].icon)}`} alt={weather[0].description} width='96px' />
</div>
);
} else {
return null;
}
}
function getWeat... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/LifecycleMethodsNone.js | gabelevi/flow | // @flow
import React from 'react';
class MyComponent1 extends React.Component {
componentWillReceiveProps() {}
}
class MyComponent2 extends React.Component {
shouldComponentUpdate() {}
}
class MyComponent3 extends React.Component {
componentWillUpdate() {}
}
class MyComponent4 extends React.Component {
co... |
src/index.js | octoblu/zooids | import React from 'react'
import { render } from 'react-dom'
import { Router, browserHistory } from 'react-router'
import routes from './config/routes'
render(
<Router history={browserHistory} routes={routes} />,
document.getElementById('app')
)
|
packages/showcase/plot/complex-chart.js | uber/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
src/components/App.js | Diane27/big-red-hacks-2017 | import React, { Component } from 'react';
import './App.css';
import '../../node_modules/bootstrap/dist/css/bootstrap.css'
import '../../node_modules/bootstrap/dist/js/bootstrap.js'
import Navbar from './navbar'
import Content from './content'
class App extends Component {
render() {
return (
<div>
... |
common/containers/login-container.js | vincent178/scala-china | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Login from '../components/login-container/login';
import { getTopics } from '../actions/topic';
export default class LoginContainer extends Component {
componentDidMount() {
const { dispatch } = this.props;
LoginContai... |
src/app/icons/clear-day.js | ericvandevprod/redux-d3 | import React from 'react';
const clearDay = (props) => (
<svg id="clear-day" viewBox="0 0 72 72" strokeWidth="0.5" {...props}>
<g>
<path d="M32,48c8.8,0,16-7.2,16-16s-7.2-16-16-16s-16,7.2-16,16S23.2,48,32,48z M32,20c6.6,0,12,5.4,12,12
s-5.4,12-12,12s-12-5.4-12-12S25.4,20,32,20z"/>
<path d="M32,12c1... |
src/svg-icons/navigation/last-page.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationLastPage = (props) => (
<SvgIcon {...props}>
<path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/>
</SvgIcon>
);
NavigationLastPage = pure(NavigationLastPage);
NavigationLastPage.di... |
node_modules/semantic-ui-react/dist/es/views/Comment/CommentContent.js | SuperUncleCat/ServerMonitoring | import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
/**
* A comment can contain content.
*/
function CommentContent(props) {
var class... |
internals/templates/containers/App/index.js | Jonathan-Steinmann/react-boilerplate-testing | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | changjiashuai/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import ReactZeroClipboard from 'react-zeroclipboard';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, Snackbar } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import classnames from '... |
websrc/components/ParameterItem.js | Ricky-Nz/gear-website | import React from 'react';
import Relay from 'relay';
import { ListGroupItem } from 'react-bootstrap';
class ParameterItem extends React.Component {
render() {
const { parameter, ...restProps } = this.props;
return (
<ListGroupItem {...restProps}>
<div>
<p>{parameter.key}</p>
<p>{parameter.value}... |
src/components/ProgressBar/ProgressBar.js | ThomasBem/ps-react-thomasbem | import React from 'react';
import PropTypes from 'prop-types';
class ProgressBar extends React.Component {
getColor = (percent) => {
if (this.props.percent === 100) return 'green';
return this.props.percent > 50 ? 'lightgreen' : 'red';
}
getWidthAsPercentOfTotalWidth = () => {
return parseInt(this.p... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js | Bogala/create-react-app-awesome-ts | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class extends Component {
static propTyp... |
server/sonar-web/src/main/js/apps/account/organizations/CreateOrganizationForm.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info 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, o... |
cerberus-dashboard/src/components/Modal/Modal.js | Nike-Inc/cerberus | /*
* Copyright (c) 2020 Nike, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
src/addons/action-button.js | leobauza/microcosm | import React from 'react'
import { Action, merge } from '../microcosm'
class ActionButton extends React.PureComponent {
constructor(props, context) {
super(props, context)
this.send = this.props.send || this.context.send
this.click = this.click.bind(this)
}
static contextTypes = {
send: () => {... |
js/Search.js | jbarbettini/intro-to-react-workshop | import React from 'react'
import { connect } from 'react-redux'
import ShowCard from './ShowCard'
import Header from './Header'
const { arrayOf, shape, string } = React.PropTypes
const Search = React.createClass({
propTypes: {
shows: arrayOf(shape({
title: string,
description: string
})),
sea... |
src/svg-icons/image/exposure-plus-1.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposurePlus1 = (props) => (
<SvgIcon {...props}>
<path d="M10 7H8v4H4v2h4v4h2v-4h4v-2h-4V7zm10 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z"/>
</SvgIcon>
);
ImageExposurePlus1 = pure(ImageExposurePlus1);
ImageEx... |
src/components/validationMixin.js | boldt/react-validation-mixin | import React from 'react';
import invariant from 'invariant';
import factory from '../validationFactory';
import {result, defined} from '../utils';
export default function(strategy) {
const validator = factory(strategy);
return function(WrappedComponent) {
invariant(defined(WrappedComponent), 'Component was no... |
src/esm/components/structure/cards/simple-card/components/title.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { parseHtml } from '../../../../../helpers/utils/parser';
import { Title as TitleComponent } from '../../../../typography/title';
import { Marger } from '../.... |
views/main.js | mzgnr/black-screen | import React from 'react';
import _ from 'lodash';
import Rx from 'rx';
import {TerminalLayout} from './compiled/src/views/TerminalLayout.js';
var keys = {
goUp: event => (event.ctrlKey && event.keyCode === 80) || event.keyCode === 38,
goDown: event => (event.ctrlKey && event.keyCode === 78) || event.keyCode ... |
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js | JeeLiu/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... |
ui/src/containers/DashboardTemplates/index.js | LearningLocker/learninglocker | import React from 'react';
import { CardList, Panel, DashboardTitle } from 'ui/containers/DashboardTemplates/styled';
import BlankDashboard from './BlankDashboard';
import StreamStarter from './StreamStarter';
import GettingStarted from './GettingStarted';
const DashboardTemplates = ({ handleClose }) => (
<Panel cl... |
examples/normalization/src/components/Master.js | lore/lore | /**
* This component serves as the root of your application, and should typically be the only
* component subscribed to the store.
*
* It is also a good place to fetch the current user. Once you have configured 'models/currentUser'
* to fetch the current user (by pointing it to the correct API endpoint) uncomment ... |
app/javascript/mastodon/features/report/rules.js | MitarashiDango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import Button from 'mastodon/components/button';
import Option from './components/option';
const mapStateToPro... |
resources/assets/js/components/HomeComponent.js | jrm2k6/i-heart-reading | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchMyStats, fetchMyUpdates } from '../actions/crudActions';
import ProgressPieChartComponent from './stats/ProgressPieChartComponent';
import InteractiveChartLegend from './stats/InteractiveChartLegend';
import LatestUpdatesCard... |
src/svg-icons/action/settings-bluetooth.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.... |
src/icons/TagFacesIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class TagFacesIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M23.99 4C12.94 4 4 12.95 4 24s8.94 20 19.99 20C35.04 44 44 35.05 44 24S35.04 4 23.99 4zM24 40c-8.84 0-16-... |
app/scripts/content-second-sec.js | winsan-zhang/website-test | import React from 'react';
import ReactDOM from 'react-dom';
import '../styles/common.css';
import '../styles/content-second-sec.css'
class ContentSecondSec extends React.Component{
render(){
return (
<div className='content-second-sec'>
<div className='container '>
... |
docs/components/Props/index.js | WEACOMRU/react-plain-calendar | import React from 'react'
import Code from '../Code'
import InlineCode from '../InlineCode'
import styles from './styles.css'
const renderEntryCode = 'renderEntry(label, date, onSelect, options)'
const renderEntryDefaultCode =
`(label, date, onSelect, { theme, isOutside, isActive }) => (
<button
className={isOut... |
src/app/components/team/Statuses/StatusLabel.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
const useStyles = makeStyles({
statusLabel: props => ({
color: props.color,
}),
});
const StatusLabel = (props) => {
const classes = us... |
app/components/auth/AuthError.js | JoaoCnh/picto-pc | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './Auth.css';
export default class AuthError extends Component {
render() {
return (
<div className={styles.authError}>
<ul>
<li>{this.props.errorMessa... |
app/javascript/mastodon/features/notifications/components/setting_toggle.js | Toootim/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
export default class SettingToggle extends React.PureComponent {
static propTypes = {
prefix: PropTypes.string,
settings: ImmutablePropTypes.map.isReq... |
src/svg-icons/device/signal-wifi-0-bar.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi0Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/>
</SvgIcon>
);
DeviceSignalWifi... |
src/components/Login.js | aryalprakash/aryalprakash.github.io | import React, { Component } from 'react';
import { Link } from 'react-router';
export class Login extends Component{
render(){
return(<div className="login-container">
<div className="login-form">
<div className="form-title">Login</div>
<div className="line"></d... |
src/components/ui/icons/glow-logo.js | adrienhobbs/redux-glow | /*eslint-disable*/
import React from 'react';
var GlowLogo = React.createClass({
componentWillReceiveProps (nextProps) {
},
render () {
var fillColor = this.props.fillColor || '#FFFFFF';
return (
<svg
version="1.1" id="Layer_1"
x="0px"
y="0px"
viewBox="0 ... |
app/components/GoogleMapHeatMap/HeatMap.js | 7ruth/PadStats2 | import React from 'react';
import PropTypes from 'prop-types';
import { camelize } from '../../utils/GoogleMapsUtils/String';
// const evtNames = ['mouseover', 'click', 'recenter'];
const wrappedPromise = () => {
const wrappedPromise = {}, //eslint-disable-line
promise = new Promise((resolve, reject) => {
... |
admin/client/components/Footer.js | Ftonso/keystone | import React from 'react';
import { Container } from 'elemental';
var Footer = React.createClass({
displayName: 'Footer',
propTypes: {
appversion: React.PropTypes.string,
backUrl: React.PropTypes.string,
brand: React.PropTypes.string,
User: React.PropTypes.object,
user: React.PropTypes.object,
version: R... |
src/components/image.js | lowsky/spectacle | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getStyles } from '../utils/base';
import styled from 'react-emotion';
const StyledImg = styled.img(({ styles }) => [
styles.context,
styles.base,
{
maxWidth: '100%',
maxHeight: '100%'
},
styles.props,
styles.user... |
src/category/views/Link.js | rick-liu/react_readable_frontend | import React from 'react'
import { Link } from 'react-router-dom'
const CategoryLink = ({ category }) => (
<Link to={`/${category.path}`}>
{category.name || category.path}
</Link>
)
export default CategoryLink
|
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/All.js | MichaelDeBoey/flow | // @flow
import React from 'react';
class MyComponent extends React.Component<DefaultProps, Props, State> {
static defaultProps: DefaultProps = {};
state: State = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends Re... |
src/svg-icons/action/settings-voice.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsVoice = (props) => (
<SvgIcon {...props}>
<path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3... |
src/components/dock.js | DarklyLabs/LaserWeb4 | /**
* Dock module.
* @module
*/
// React/Redux
import React from 'react'
import { connect } from 'react-redux'
// Font awesome
import Icon from './font-awesome'
// Actions
import * as actions from '../actions/panes'
import { SettingsValidator } from './settings';
import { CAMValidator } from './cam';
/**
* Dock... |
website/src/components/References.js | plouc/mozaik | import React from 'react'
import styled from 'styled-components'
import Container from './Container'
import media from '../styles/media'
const Root = styled(Container)`
background: ${props => props.theme.contentBackgroundHighlightColor};
border-top: 1px solid ${props => props.theme.borderColor};
border-bo... |
dapp/src/routes/iot/containers/page.js | airalab/DAO-IPCI | import React from 'react'
import { connect } from 'react-redux'
import i18next from 'i18next'
import Layout from '../../../shared/components/common/layout';
const Container = (props) => {
const { title, menu, children } = props
return (<Layout
title={title}
menu={menu}
>
{children}
</Layout>)
}
f... |
demo/universal-routed-flux-demo/components/MainSection.react.js | waterbolik/prestudy | import React from 'react';
import TodoActions from '../flux-infra/actions/TodoActions';
import TodoItem from './TodoItem.react';
var ReactPropTypes = React.PropTypes;
export default class MainSection extends React.Component {
constructor(props) {
super(props);
}
render(){
// This section s... |
src/components/collection/search/index.js | chaoticbackup/chaoticbackup.github.io | import React from 'react';
import { observable } from "mobx";
import { observer, inject } from 'mobx-react';
import Collapsible from 'react-collapsible';
import API from '../../SpreadsheetData';
import { Loading } from '../../Snippets';
import search_api from './search';
@inject((stores, props, context) => props) @obs... |
server/priv/js/components/BenchScenario.react.js | avasenin/mzbench | import React from 'react';
import Highlight from './Highlight.react';
class BenchScenario extends React.Component {
render() {
return (
<Highlight className="erlang">
{this.props.bench.script_body || ""}
</Highlight>
);
}
};
BenchScenario.propTypes = {
... |
src/interface/CharacterParsesList.js | anom0ly/WoWAnalyzer | import { formatNumber, formatPercentage } from 'common/format';
import rankingColor from 'common/getRankingColor';
import { getLabel as getDifficultyLabel } from 'game/DIFFICULTIES';
import GEAR_SLOTS from 'game/GEAR_SLOTS';
import { ItemLink } from 'interface';
import Icon from 'interface/Icon';
import { makePlainUrl ... |
src/svg-icons/av/call-to-action.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvCallToAction = (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 16H3v-3h18v3z"/>
</SvgIcon>
);
AvCallToAction = pure(AvCallToAction);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.