path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
imports/old/signup/accountType.js | jiyuu-llc/jiyuu | import React from 'react';
const AccountType = () => ({
aTypeNext(){
var data = $( "select#accountSel option:selected").val();
if(data){
Session.set('aType', data);
FlowRouter.go("/register/2");
}else{
alert("Please select an option");
}
},... |
src/components/interactive/TextAreaInput.js | mrozilla/mrozilla.cz | // โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// import
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
import React from 'react';
import { func } from 'prop-types';
import { Input } from '~components/primitives/Input';
// โโโโโโโโโโโโโโโโโโโโโโโโโโ... |
final/webapp/src/components/Dashboard/Card/Card.js | wasong/cmpt433 | import React from 'react'
import Radium from 'radium'
import Status from '../Status'
const styles = {
root: {
display: 'flex',
height: '100%',
position: 'relative',
alignItems: 'center',
padding: '0 10px',
},
component: {
flex: 10,
display: 'flex',
},
}
const Card = ({ children, s... |
docs/app/Examples/elements/Header/Types/HeaderPageHeadersExample.js | jamiehill/stardust | import React from 'react'
import { Header } from 'stardust'
const HeaderPageHeadersExamples = () => (
<div>
<Header as='h1'>
First Header
</Header>
<Header as='h2'>
Second Header
</Header>
<Header as='h3'>
Third Header
</Header>
<Header as='h4'>
Fourth Header
<... |
src/icons/font/LocalOfferIcon.js | skystebnicki/chamel | import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from '../../FontIcon';
import ThemeService from '../../styles/ChamelThemeService';
/**
* LocalOffer button
*
* @param props
* @param context
* @returns {ReactDOM}
* @constructor
*/
const LocalOfferIcon = (props, context) => {
let t... |
text-dream/webapp/src/components/bodies/TokenSearchBodyComponent.js | PAIR-code/interpretability | /**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* 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 a... |
app/js/pages/Yao_qing_han.js | arcsecw/auto_writing | import React from 'react';
import {
Container,
Input,
ButtonToolbar,
Tabs,
DateTimeInput,
Button,
ModalTrigger,
} from 'amazeui-react';
import {Editor, EditorState} from 'draft-js';
import { withRouter } from 'react-router'
import { myConfig } from '../components/config.js';
import {post} from '../compo... |
src/svg-icons/action/done-all.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDoneAll = (props) => (
<SvgIcon {...props}>
<path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.4... |
app/javascript/mastodon/features/ui/components/modal_loading.js | pixiv/mastodon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body'>
... |
packages/icons/src/md/av/RemoveFromQueue.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdRemoveFromQueue(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M42 6c2.21 0 4 1.79 4 4l-.02 24c0 2.21-1.77 4-3.98 4H32v4H16v-4H6c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h36zm0 28V10H6v24h36zM32 20v4H16v-4h... |
blueprints/view/files/__root__/views/__name__View/__name__View.js | danieljwest/ExamGenerator | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
node_modules/react-bootstrap/es/ModalHeader.js | acalabano/get-committed | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/js/services/lastfm/actions.js | jaedb/Iris | import React from 'react';
import {
collate,
formatImages,
formatTrack,
formatArtist,
formatAlbum,
} from '../../util/format';
import { generateGuid } from '../../util/helpers';
import { makeItemSelector, getItem } from '../../util/selectors';
import URILink from '../../components/URILink';
const... |
app/react-icons/fa/map-signs.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaMapSigns extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m39 6.6q0.2 0.3 0.2 0.5t-0.2 0.6l-3.2 3.1q-0.6 0.6-1.5 0.6h-30q-0.6 0-1-0.4... |
pkg/ui/src/components/dashboard/HexagonChart.js | matt-deboer/kuill | import React from 'react'
import d3 from 'd3'
import ReactFauxDOM from 'react-faux-dom'
import PropTypes from 'prop-types'
export default class HexagonChart extends React.PureComponent {
static propTypes = {
/**
* Called with an object where keys are the selected items' indicies
*/
onSelection: P... |
src/svg-icons/maps/traffic.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTraffic = (props) => (
<SvgIcon {...props}>
<path d="M20 10h-3V8.86c1.72-.45 3-2 3-3.86h-3V4c0-.55-.45-1-1-1H8c-.55 0-1 .45-1 1v1H4c0 1.86 1.28 3.41 3 3.86V10H4c0 1.86 1.28 3.41 3 3.86V15H4c0 1.86 1.28 3.41... |
app/javascript/mastodon/components/hashtag.js | im-in-space/mastodon | // @ts-check
import React from 'react';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from './permalink';
import ShortNumber from 'mastodon/co... |
index.ios.js | adriank/snooker | import React from 'react';
import {
StyleSheet,
Text,
View,
TouchableHighlight
} from 'react-native'
// import { Font } from 'expo';
import FontAwesome, { Icons } from 'react-native-fontawesome';
import Balls from './src/components/Balls'
//import initial_state from './initialState.json'
//import {start} from './... |
src/components/RestaurantSearch.js | rgdelato/instantly-lunch | import React, { Component } from 'react';
export default class RestaurantSearch extends Component {
render () {
const { searchText, onSearch } = this.props;
return (
<div className="restaurant-search">
<input type="text" placeholder="Search..." value={searchText} onChange={(e) => {onSearch(e.target.valu... |
src/js/components/icons/base/AccessWheelchairActive.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... |
es/catalog/properties/property-read-only.js | cvdlab/react-planner | import React from 'react';
import PropTypes from 'prop-types';
import { FormLabel } from '../../components/style/export';
import PropertyStyle from './shared-property-style';
export default function PropertyReadOnly(_ref) {
var value = _ref.value,
onUpdate = _ref.onUpdate,
configs = _ref.configs,
s... |
src/common/Socket/Hosting.js | Syncano/syncano-dashboard | import React from 'react';
import { colors as Colors } from 'material-ui/styles/';
import SocketWrapper from './SocketWrapper';
const HostingSocket = ({ tooltip = 'Create a Hosting Socket', iconStyle, ...other }) => (
<SocketWrapper
{...other}
tooltip={tooltip}
iconClassName="synicon-socket-hosting"
... |
src/decorators/withViewport.js | ryanherlihy/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
app/javascript/mastodon/components/edited_timestamp/index.js | musashino205/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, injectIntl } from 'react-intl';
import Icon from 'mastodon/components/icon';
import DropdownMenu from './containers/dropdown_menu_container';
import { connect } from 'react-redux';
import { openModal } from 'mastodon/actions/modal... |
components/route.js | ramprasath25/react-app | import React from 'react';
import {Router, Route, IndexRoute, browserHistory} from 'react-router';
import {connect} from 'react-redux';
//Components
import Header from '../components/Header';
import Homepage from '../components/Homepage';
import Aboutpage from '../components/Aboutpage';
import Loginpage from '../compon... |
app/components/UGHeader/index.js | perry-ugroop/ugroop-react-dup2 | import React from 'react';
import CompanyLogo from '../../shareAssets/logo-ugroop.png';
import UGMenuBar from '../../containers/UGMenuBar';
import BSNavWrapper from '../../containers/BootStrap/BSNavWrapper';
import BSNavBar from '../../containers/BootStrap/BSNavBar';
import BSNavBrand from '../../containers/BootStrap/B... |
src/containers/Dashboard/components/CodeEditor.js | aastein/crypto-trader | import React, { Component } from 'react';
import run from '../../../utils/scriptEnv';
import test from '../../../utils/scriptTestEnv';
export default class CodeEditor extends Component {
// only render if script data changed
shouldComponentUpdate(nextProps, nextState) {
const scriptChanged = JSON.stringify(t... |
client/components/ui/modal/cancel-and-submit-buttons.js | bnjbvr/kresus | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { translate as $t } from '../../../helpers';
import { actions } from '../../../store';
const CancelAndSubmit = connect(
null,
dispatch => {
return {
handleCancel() {
... |
src/svg-icons/action/payment.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPayment = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/>
</SvgIcon>
);
ActionPay... |
Router/route-transition/src/App.js | imuntil/React | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css'
import AnimRouter from './router'
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<... |
components/svg/Language.js | dawnlabs/carbon | import React from 'react'
export default () => (
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
<path
d="M8 0.6875H7.97539C6.02773 0.694531 4.19961 1.45742 2.82148 2.83555C1.44687 4.21719 0.6875 6.04883 0.6875 8C0.6875 9.95117 1.44688 11.7828 2.825 13.1645C4... |
src/svg-icons/notification/airline-seat-flat.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatFlat = (props) => (
<SvgIcon {...props}>
<path d="M22 11v2H9V7h9c2.21 0 4 1.79 4 4zM2 14v2h6v2h8v-2h6v-2H2zm5.14-1.9c1.16-1.19 1.14-3.08-.04-4.24-1.19-1.16-3.08-1.14-4.24.04-1.16 1.19-1.1... |
src/svg-icons/image/looks-two.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooksTwo = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 8c0 1.11-.9 2-2 2h-2v2h4v2H9v-4c0-1.11.9-2 2-2h2V9H9V7h4c1.1 0 2 .89 2 ... |
client/src/components/dashboard/messaging/message-list.js | joshuaslate/mern-starter | import React, { Component } from 'react';
const moment = require('moment');
import MessageItem from './message-item';
class MessageList extends Component {
render() {
return (
<div className="messages">
{this.props.displayMessages.map(data => <MessageItem
key={data._id}
message... |
app/components/RangePicker.js | 7kfpun/AudienceNetworkReactNative | import React from 'react';
import {
StyleSheet,
Text,
TouchableHighlight,
TouchableOpacity,
View,
} from 'react-native';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Icon from 'react-native-vector-icons/MaterialIcons';
import moment from 'moment-timezone';
import... |
aaf-enrollment/src/components/ShowHidePassword.js | MicroFocus/CX | import PropTypes from 'prop-types';
import React from 'react';
import './ShowHidePassword.scss';
import TextField from './TextField';
import t from '../i18n/locale-keys';
export default class ShowHidePassword extends React.PureComponent {
state = {
passwordVisible: false
};
showHidePassword = () =... |
router_homemade/with_universal_router/src/routes.js | Muzietto/react-playground | import React from 'react';
import HomePage from './pages/HomePage';
import TaskList from './pages/TaskList';
import TaskDetails from './pages/TaskDetails';
import ErrorPage from './pages/ErrorPage';
import Layout from './pages/TransitioningPageLayout';
const routes = {
path: '',
async action({ next }) {
const ... |
packages/material-ui-icons/src/PersonalVideo.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z" /></g>
, 'PersonalVideo');
|
app/javascript/mastodon/features/ui/components/column.js | codl/mastodon | import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import { scrollTop } from '../../../scroll';
import { isMobile } from '../../../is_mobile';
export default class Column extends React.PureComponent {
static propTypes = {
... |
example/src/screens/types/Push.js | okarakose/react-native-navigation | import React from 'react';
import { StyleSheet, View, Text } from 'react-native';
class Push extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Push Screen</Text>
</View>
);
}
}
const styles = StyleSheet.create({
con... |
src/svg-icons/maps/streetview.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsStreetview = (props) => (
<SvgIcon {...props}>
<path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z"/><circle cx="18" cy="6" r="5"/><path d... |
node_modules/react-bootstrap/src/Grid.js | gitoneman/react-soc | import React from 'react';
import classSet from 'classnames';
const Grid = React.createClass({
propTypes: {
fluid: React.PropTypes.bool,
componentClass: React.PropTypes.node.isRequired
},
getDefaultProps() {
return {
componentClass: 'div'
};
},
render() {
let ComponentClass = this... |
src/components/infoWindow.js | martinkwan/HNGRY | /**
|==========================================================================================
| The component that renders the InfoWindow on the map
|------------------------------------------------------------------------------------------
*/
import React from 'react';
import Price from './price';
import OpenCl... |
hello world/1.3 - jsx/src/js/index.js | wumouren/react-demo | import React from 'react';
import ReactDom from 'react-dom';
import Header from '../components/header';
import Main from '../components/main';
import Footer from '../components/footer';
class Index extends React.Component {
render() {
return (
<div>
<Header></Header>
... |
app/static/src/performer/NewTestForm_modules/NewRecommendationForm.js | SnowBeaver/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import Button from 'react-bootstrap/lib/Button';
import Panel from 'react-bootstrap/lib/Panel';
import {findDOMNode} f... |
packages/bootstrap-shell/src/providers/Theme/with.js | TarikHuber/react-most-wanted | import Context from './Context'
import React from 'react'
const withContainer = (Component) => {
const ChildComponent = (props) => {
return (
<Context.Consumer>
{(contextProps) => {
return <Component {...contextProps} {...props} />
}}
</Context.Consumer>
)
}
return ... |
src/spares/card/Card.js | korchemkin/spares-uikit | /**
*
* Spares-uikit
*
* @author Dmitri Korchemkin
* @source https://github.com/korchemkin/spares-uikit
*/
import React, { Component } from 'react';
import './Card.css';
class Card extends Component {
render() {
return (
<div className="spares-card">{this.props.children}</div>
);
}
}
export defau... |
examples/official-storybook/stories/addon-links/href.stories.js | kadirahq/react-storybook | import React from 'react';
import { hrefTo } from '@storybook/addon-links';
import { action } from '@storybook/addon-actions';
export default {
title: 'Addons/Links/Href',
};
export const Log = () => {
hrefTo('Addons/Links/Href', 'log').then((href) => action('URL of this story')(href));
return <span>See action... |
examples/mul-tag-suggest.js | ddcat1115/select | /* eslint no-console: 0 */
import React from 'react';
import Select, { Option } from 'rc-select';
import 'rc-select/assets/index.less';
import { fetch } from './common/tbFetchSuggest';
import ReactDOM from 'react-dom';
const Search = React.createClass({
getInitialState() {
return {
data: [],
value: ... |
packages/react-jsx-highstock/src/components/FlagSeries/FlagSeries.js | AlexMayants/react-jsx-highcharts | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Series from 'react-jsx-highcharts/src/components/Series';
class FlagSeries extends Component {
static propTypes = {
id: PropTypes.string.isRequired
};
render () {
return (
<Series {...this.props} type="flags" />
... |
front/src/components/HeaderButtons.js | carlox18/proyecto2 | import React from 'react';
import PropTypes from "prop-types";
import ListButton from './Buttons/ListButton.jsx';
import SortButton from './Buttons/SortButton.jsx';
import ShuffleButton from './Buttons/ShuffleButton.jsx';
import RefreshButton from './Buttons/RefreshButton.jsx';
const propTypes = {
view: PropTypes.s... |
src/material-ui/index.js | Wildhoney/ReactShadow | import React from 'react';
import { jssPreset, StylesProvider } from '@material-ui/styles';
import { create } from 'jss';
import { createProxy } from '../';
export default createProxy({}, 'material-ui', ({ root, children }) => {
class Main extends React.Component {
constructor() {
super();
... |
app/javascript/app/pages/custom-compare/custom-compare.js | Vizzuality/climate-watch | import React from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import qs from 'query-string';
import { getLocationParamUpdated } from 'utils/navigation';
import PropTypes from 'prop-types';
import Component from './custom-compare-component';
import {
getAnchorLinks,
... |
src/svg-icons/av/subscriptions.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSubscriptions = (props) => (
<SvgIcon {...props}>
<path d="M20 8H4V6h16v2zm-2-6H6v2h12V2zm4 10v8c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2v-8c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2zm-6 4l-6-3.27v6.53L16 16z"/>
</SvgIcon>
)... |
src/components/List.js | SaraChicaD/TacoRadarReact | import React from 'react';
import Button from 'react-bootstrap/lib/Button';
import Grid from 'react-bootstrap/lib/Grid';
import Jumbotron from 'react-bootstrap/lib/Jumbotron';
import Row from 'react-bootstrap/lib/Row';
import Col from 'react-bootstrap/lib/Col';
//this is where the results we generate will go |
src/svg-icons/editor/strikethrough-s.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorStrikethroughS = (props) => (
<SvgIcon {...props}>
<path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 ... |
js/auth/NewPasswordForm.js | BarberHour/barber-hour | import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
StatusBar,
TextInput,
Platform
} from 'react-native';
import { connect } from 'react-redux';
import t from 'tcomb-form-native';
const Form = t.form.Form;
import Button from '../common/Button';
import Toolbar from '../common/Toolbar... |
pootle/static/js/shared/components/Tab.js | unho/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 cx from 'classnames';
import React from 'react';
im... |
src/components/ErrorBoundary.js | golemfactory/golem-electron | import React, { Component } from 'react';
import Lottie from 'react-lottie';
const { clipboard, remote } = window.electron;
import animData from './../assets/anims/error.json'
const defaultOptions = {
loop: false,
autoplay: true,
animationData: animData,
rendererSettings: {
preserveAspectRati... |
admin/src/components/AltText.js | wustxing/keystone | import React from 'react';
import blacklist from 'blacklist';
import vkey from 'vkey';
var AltText = React.createClass({
getDefaultProps () {
return {
component: 'span',
modifier: '<alt>',
normal: '',
modified: ''
};
},
getInitialState () {
return {
modified: false
};
},
componentDidMount (... |
src/components/AlertMessageComponent.js | derickwarshaw/react-native-jenkins | import React from 'react';
import * as Animatable from 'react-native-animatable';
import { View, Text, StyleSheet } from 'react-native';
import { applicationStyles, metrics, fonts, colors } from '../themes';
import Icon from 'react-native-vector-icons/Ionicons';
const styles = StyleSheet.create({
container: {
ju... |
blueocean-material-icons/src/js/components/svg-icons/action/shopping-basket.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionShoppingBasket = (props) => (
<SvgIcon {...props}>
<path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h13c.92 0 1.69-.62 1.93-1.46l2.54-9... |
frontend/Categories/Container.js | fdemian/Morpheus | import React from 'react';
import { connect } from 'react-redux';
import Categories from './Categories';
import loadCategories, {createCategory, deleteCategory} from './Actions';
const mapStateToProps = (state) => {
return {
categories: state.categories.items,
isFetching: state.categories.isFetching,
error:... |
frontend/src/components/projeto.js | dataprev/cidadao360 | import React, { Component } from 'react';
import {
Jumbotron,
Button
} from 'reactstrap';
import { Link } from 'react-router-dom';
import logo from '../images/logo.svg';
class Project extends Component {
componentDidMount() {
document.body.classList.toggle('background-bsb');
document.getElementById("main... |
app/components/eventDetails.js | misakimatsumoto2524/merj | import React from 'react'
import moment from 'moment';
import Paper from 'material-ui/Paper';
let styles = {
root: {
float: 'left',
marginBottom: 24,
marginRight: 24,
width: 300,
border: 'solid 1px #d9d9d9',
height: 150,
overflow: 'hidden',
background: '#f2f2f2',
padding: 15,
}
... |
clients/packages/admin-client/src/pages/admin/communities/settings/domain/page.connected.js | nossas/bonde-client | //
// @route /community/domain
//
import React from 'react';
import urljoin from 'url-join';
export default class extends React.Component {
componentDidMount() {
window.location.href = urljoin(process.env.REACT_APP_DOMAIN_ADMIN_CANARY || "", '/community/domains');
}
render() {
return (
<p>Redireci... |
stories/index.js | panacholn/pagination | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { MemoryRouter } from 'react-router';
import Pagination from '../src/index';
const genUrl = (page) => `/${page}`;
storiesOf('Pagination', module)
.addDecorator(story => (
<MemoryRouter initialEntries={['/']}>{story()}</MemoryRout... |
src/components/common/sectionheader.js | liuyuanquan/kankan | import React from 'react';
class SectionHeader extends React.Component {
render() {
return (
<div className='sectionheader'>
{
this.props.header.map((item, index, arr) => {
return item.show ? <div className={index === 0 ? 'leftarea' : 'rightarea'} key={index}>
<h2>
<a href='javascri... |
web/src/client/pages/movie.react.js | neozhangthe1/framedrop-web | /**
* Created by yutao on 15/10/20.
*/
import './discover.styl';
import DocumentTitle from 'react-document-title';
import Component from 'react-pure-render/component';
import DynamicScripts from '../../server/lib/dynamicscript.js'
import React from 'react';
import {FormattedHTMLMessage} from 'react-intl';
import {Lin... |
src/backward/Widgets/Button.js | sampsasaarela/NativeBase | /* @flow */
import React, { Component } from 'react';
import { TouchableOpacity, Platform } from 'react-native';
import { connectStyle } from 'native-base-shoutem-theme';
import _ from 'lodash';
import variables from '../../theme/variables/platform';
import { Icon } from './Icon';
import mapPropsToStyleNames from '..... |
src/svg-icons/maps/tram.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTram = (props) => (
<SvgIcon {...props}>
<path d="M19 16.94V8.5c0-2.79-2.61-3.4-6.01-3.49l.76-1.51H17V2H7v1.5h4.75l-.76 1.52C7.86 5.11 5 5.73 5 8.5v8.44c0 1.45 1.19 2.66 2.59 2.97L6 21.5v.5h2.23l2-2H14l2 2h... |
frontend/src/Activity/History/Details/HistoryDetailsModal.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Button from 'Components/Link/Button';
import SpinnerButton from 'Components/Link/SpinnerButton';
import Modal from 'Components/Modal/Modal';
import ModalBody from 'Components/Modal/ModalBody';
import ModalContent from 'Components/Modal/ModalContent';... |
js/app.js | batter/react-weather-widget | import React from 'react';
import Weather from './components/weather';
window.React = React;
React.render(<Weather />, document.getElementById('application'));
|
src/parser/druid/feral/CHANGELOG.js | FaideWW/WoWAnalyzer | import React from 'react';
import { Anatta336 } from 'CONTRIBUTORS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2018-10-10'),
changes: <>Added tracking to Feral for the <SpellLink id={SPELLS.WILD_FLESHRENDING.id} /> Azerite trait.</>,
... |
src/application-list.js | slx-dev/react-testing | import React from 'react';
import Application from './application';
import {Row,Col} from 'reactstrap';
export default class ApplicationList extends React.Component {
render() {
return (
<Row>
{
this.props.data.map(function(application) {
return (
<div className="applica... |
src/icons/IosSunny.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosSunny extends React.Component {
render() {
if(this.props.bare) {
return <g>
<style type="text/css">
.st0{fill:#010101;}
</style>
<g>
<rect x="247" y="96" class="st0" width="18" height="56"></rect>
<re... |
src/components/Project/index.js | ryapapap/projects | import React from 'react'
import Link from 'gatsby-link'
import LinkedInIcon from 'react-icons/lib/fa/linkedin-square';
import TwitterIcon from 'react-icons/lib/fa/twitter';
import GithubIcon from 'react-icons/lib/fa/github';
import EmailIcon from 'react-icons/lib/fa/envelope';
import { rhythm } from '../../utils/typ... |
dapp/src/shared/dao/tokenAcl/components/main.js | airalab/DAO-IPCI | import React from 'react'
import { Link } from 'react-router'
import { translate } from 'react-i18next'
import { Layout } from '../../main/components'
import Form from '../containers/formFunc'
const timeConverter = (timestamp) => {
const a = new Date(timestamp * 1000);
const months = ['Jan', 'Feb', 'Mar', 'Apr', '... |
platform/ui/src/components/quickSwitch/StudiesItem.js | OHIF/Viewers | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './StudiesItem.styl';
export class StudiesItem extends Component {
static propTypes = {
onClick: PropTypes.func.isRequired,
studyData: PropTypes.object.isRequired,
active: PropTypes.bool,
};
render() {
const {
... |
src/svg-icons/av/movie.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMovie = (props) => (
<SvgIcon {...props}>
<path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/>
</SvgIcon>
);
AvMovie = pure(AvMovie);
Av... |
src/js/containers/AlternatePageContainer/AlternatePageContainer.js | shane-arthur/react-redux-and-more-boilerplate | import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { PageMappings } from '../../constants/other-constants/PageMappings';
import { apiMappings } from '../../constants/other-constants/ApiMappings';
import { getData } from '../../data/dataFetcher';
import React, { Component } from 'r... |
src/components/CompanyDetails/index.js | honeypotio/techmap | import React from 'react';
import PropTypes from 'prop-types';
import { getThemeColor } from '../../utils';
import Content from './Content';
import PaneSubHeader from '../PaneSubHeader';
import Tag from '../Tag';
const CompanyDetails = props => {
const { companies } = props.globalStore;
const id = props.params.com... |
clients/packages/admin-client/src/pages/admin/mobilizations/widgets/pressure/settings/autofire/page.js | nossas/bonde-client | import PropTypes from 'prop-types';
import React from 'react';
import { Loading } from '../../../../../../../components/await';
import { FormAutofire } from '../../../../../../../mobilizations/widgets/components';
const PressureSettingsAutofirePage = (props) =>
!props.widget ? <Loading /> : <FormAutofire {...props}... |
Realization/frontend/czechidm-acc/src/content/wizard/SystemWizardDetail.js | bcvsolutions/CzechIdMng | import { Basic, ComponentService } from 'czechidm-core';
import React from 'react';
import IdmContext from 'czechidm-core/src/context/idm-context';
import DefaultSystemWizard from './connectorType/DefaultSystemWizard';
const componentService = new ComponentService();
/**
* Detail of a system wizard.
*
* @author Vรญ... |
pyxley/assets/jsx/layout.js | stitchfix/pyxley |
import React from 'react';
import ReactDOM from 'react-dom';
import {Navs} from 'pyxley';
import {ChartManager} from './chartmanager';
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
layouts: [],
navlinks: [],
brand: ""
... |
src/components/AboutPage.js | oshalygin/react-slingshot | import React from 'react';
import {Link} from 'react-router';
import '../styles/about-page.css';
// Since this component is simple and static, there's no parent container for it.
const AboutPage = () => {
return (
<div>
<h2 className="alt-header">About</h2>
<p>
This example app is part of the... |
test/fixtures/variable-comment-annotation/actual.js | oliviertassinari/babel-plugin-transform-react-remove-prop-types | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import FooComponent from './FooComponent'
const Foo = connect(() => {}, () => {})(FooComponent);
Foo.propTypes /* remove-proptypes */ = {
bar: PropTypes.string.isRequired,
}
export default Foo
|
imports/ui/pages/Miscellaneous/Terms/Terms.js | haraneesh/mydev | import React from 'react';
import Page from '../../Page/Page';
const Terms = () => (
<div className="Terms">
<Page
title="Terms of Service"
subtitle="Last updated April 1st, 2021"
page="terms"
/>
</div>
);
export default Terms;
|
src/playerinfo/PlayerInfo.js | FredBoat/fredboat.com | import React, { Component } from 'react';
import "./PlayerInfo.css";
import PlayingBar from "./PlayingBar";
import fallback from "./fallback.svg"
class PlayerInfo extends Component {
websocket = null;
emptyState = {player: null, receivedTime: null};
constructor(props) {
super(props);
this... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/JsonInclusion.js | dsopel94/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
src/animations/flip/app.js | SodhanaLibrary/react-examples | import React from 'react';
import './app.css';
import classNames from 'classNames';
export default class App extends React.Component {
constructor(props) {
super(props);
this.animate = this.animate.bind(this);
this.state = {
animate:false
}
}
animate() {
this.setState({
animate:... |
app/components/elements/common/DialogManager/index.stories.js | GolosChain/tolstoy | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import DialogManager from './index';
import './index.scss';
storiesOf('DialogManager', module).add('open dialog', () => (
<div>
<button onClick={openDialog}>Open Dialog</button>
... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/DropdownToggle.js | Akkuma/npm-cache-benchmark | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
oversee/static/src/js/setup/components/ColumnSettings.js | bpsagar/oversee | import React from 'react'
import Modal from './Modal'
const BLEND_MODES = [
'normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten',
'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference',
'exclusion', 'hue', 'saturation', 'color', 'luminosity'
]
class ColumnSettings extends React.Componen... |
src/components/examples/exampleHideShow.js | Jguardado/ComponentBase | import React, { Component } from 'react';
export default class HideShow extends Component {
constructor(props) {
super(props);
this.state = {
visible: false,
};
this.show = this.show.bind(this);
this.hide = this.hide.bind(this);
}
show() {
this.setState({ visible: true });
}
... |
react/Apps/airways-app/src/components/flight.js | rcapde/reactjs-Apps | import React, { Component } from 'react';
import '../assets/App.css';
class Flight extends Component {
handleClick(){
console.log("selected")
}
render() {
return (
<div className="flight-box">
<span>{this.props.hourDeparture}</span>
<span><hr width="200" /> </span>
<span>... |
client/pages/viewerpage/pdfviewer.js | mickael-kerjean/nuage | import React from 'react';
import { MenuBar } from './menubar';
import "./pdfviewer.scss"
export const PDFViewer = (props) => {
return (
<div className="component_pdfviewer">
<MenuBar title={props.filename} download={props.data} />
<div className="pdfviewer_container" >
<emb... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | clloyd/react-router | /*globals COURSES:true */
import React from 'react'
import { Link } from 'react-router'
class AnnouncementsSidebar extends React.Component {
render() {
let { announcements } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcements.... |
src/svg-icons/maps/add-location.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsAddLocation = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/>
</SvgIcon>
);
MapsAddLocation = pure(Map... |
src/components/app.js | ydsood/policyPrototype | import React, { Component } from 'react';
import SearchBar from './searchbar';
import PolicyMainPanel from './policy/policy_main_panel';
import ResultList from './result_list';
import {Grid, Row, Col} from 'react-bootstrap';
export default class App extends Component {
render() {
return (
<div>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.