path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
node_modules/react-bootstrap/src/CarouselItem.js | gitoneman/react-home | import React from 'react';
import classSet from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const CarouselItem = React.createClass({
propTypes: {
direction: React.PropTypes.oneOf(['prev', 'next']),
onAnimateOutEnd: React.PropTypes.func,
active: React.PropTypes.bool,
caption... |
dpxdt/server/static/release-config/src/HomePage.js | bslatkin/dpxdt | import React, { Component } from 'react';
import { Link } from 'react-router'
import {
Grid,
PageHeader,
} from 'react-bootstrap';
export default class Home extends Component {
render() {
let buildID = this.props.location.query.build_id;
return (
<div className="HomePage">
<PageHeader style... |
packages/ringcentral-widgets-docs/src/app/pages/Components/DialButton/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
assets/jqwidgets/demos/react/app/combobox/bindingtojson/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxComboBox from '../../../jqwidgets-react/react_jqxcombobox.js';
class App extends React.Component {
componentDidMount() {
this.refs.myComboBox.on('select', (event) => {
if (event.args) {
let item = event.args... |
docs/src/app/components/pages/components/Toolbar/Page.js | pancho111203/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import toolbarReadmeText from './README';
import toolbarExampleSimpleCode from '... |
src/components/Modal/ModalConsumer.js | cantonjs/re-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ModalControllerContext from './ModalControllerContext';
import ModalPropsContext from './ModalPropsContext';
import withIssuer from 'hocs/withIssuer';
import { MODAL } from 'utils/Issuers';
import ModalProvider from './ModalProvider';
... |
klets-client/src/containers/RoomSelector.js | rhmeeuwisse/KletsApp | import React from 'react'
import {connect} from 'react-redux'
import {selectRoom, fetchRooms} from '../actions'
import RoomsList from '../components/RoomsList'
import RoomCreator from '../containers/RoomCreator'
class RoomSelector extends React.Component {
static propTypes = {
/* Connected via react-redux ... |
frontend/src/components/recipes/view/components/TagPres.js | jf248/scrape-the-plate | import React from 'react';
import * as Mui from '@material-ui/core';
const styles = theme => ({
chip: {
marginBottom: theme.spacing.unit,
marginRight: theme.spacing.unit / 2,
},
});
TagPres.defaultProps = {};
function TagPres({ classes, name }) {
return <Mui.Chip {...{ label: name, className: classes.c... |
src/svg-icons/action/assignment-ind.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentInd = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-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-7 0c.55 0 1 .45 1 ... |
react-redux-tutorial/02-rendering-a-route/modules/App.js | react-scott/react-learn | /**
* Created by scott on 7/10/16.
*/
import React from 'react'
export default React.createClass({
render() {
return <div>Hello, React Router!</div>
}
})
|
node_modules/react-taco-table/site/src/examples/index.js | premcool/getmydeal | import React from 'react';
import { render } from 'react-dom';
import CodeExample from '../components/CodeExample';
import ExampleFormatters from '../components/ExampleFormatters';
import exampleFormattersCode from '!raw!../components/ExampleFormatters';
import ExampleSortConfig from '../components/ExampleSortConfig'... |
src/containers/Home/Home.js | rmwdeveloper/portfolio | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import { FlatSurfaceShader } from 'components';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from client and server
// const logoImage = require('... |
src/svg-icons/action/settings-bluetooth.js | matthewoates/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/components/Common/PublicationInfo/Views/Common/tpl.js | LifeSourceUA/lifesource.ua | /**
* [IL]
* Library Import
*/
import React from 'react';
import PropTypes from 'prop-types';
/**
* [IS]
* Style Import
*/
import Styles from './Styles/main.scss';
import Grid from 'theme/Grid.scss';
/**
* [IBP]
* Breakpoints
*/
import BP from 'lib/breakpoints';
function Common(props) {
const { mediaTyp... |
src/containers/Kitas.js | cismet/wupp-geoportal3-powerboats | import React from 'react';
import PropTypes from 'prop-types';
import Cismap from '../containers/Cismap';
import { connect } from 'react-redux';
import { Tooltip } from 'react-bootstrap';
import { actions as MappingActions } from '../redux/modules/mapping';
import { actions as UIStateActions } from '../redux/modules/... |
docs/src/NavMain.js | tigerandgirl/ssc-refer | import React from 'react';
import { Link } from 'react-router';
import { Navbar, Nav } from 'react-bootstrap';
const NAV_LINKS = {
components: {
link: '/components.html',
title: '组件列表'
}, validation: {
link: '/validation.html',
title: '数据验证'
}
};
// We don't want to include react-router-bootstr... |
src/app/modules/Preferences/components/forms/ChatForm.js | toxzilla/app | import React from 'react';
import {connect} from 'cerebral-view-react';
import isValidForm from 'cerebral-module-forms/helpers/isValidForm';
import {Button, ButtonGroup, Checkbox, Form, Spinner, Text} from './../../../../common/UserInterface';
export default connect({
isClearingChatHistory: 'store.app.isClearingChat... |
demo/src/components/TrendCode/TrendCode.js | unsplash/react-trend | import React, { PropTypes } from 'react';
import SyntaxHighlighter, {
registerLanguage,
} from 'react-syntax-highlighter/dist/light';
import js from 'highlight.js/lib/languages/javascript';
import syntaxTheme from 'react-syntax-highlighter/dist/styles/vs';
import './TrendCode.css';
registerLanguage('javascript', js... |
example/index.js | OpenGov/react-leaflet-marker-layer | import React from 'react';
import { render } from 'react-dom';
import { Map, Marker, Popup, TileLayer } from 'react-leaflet';
import MarkerLayer from '../src/MarkerLayer';
const position = { lng: -122.673447, lat: 45.522558 };
const markers = [
{
position: { lng: -122.67344700000, lat: 45.522558100000 },
tex... |
src/modules/app/components/app.js | xangxiong/xim-js | import React from 'react';
import PropTypes from 'prop-types';
import { Route, Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { Sidebar, Segment } from 'semantic-ui-react';
import PrivateRoute from '../../auth/components/private-route';
import TopMenu from './top-menu';
import LeftMenu fr... |
test/helpers/shallowRenderHelper.js | DecisionShen/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
app/components/Toggle/index.js | mxstbr/react-boilerplate | /**
*
* LocaleToggle
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import Select from './Select';
import ToggleOption from '../ToggleOption';
function Toggle(props) {
let content = <option>--</option>;
// If we have items, render them
if (props.values) {
content = props.values.ma... |
src/app.js | DavidSGK/plan-me | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { orange500, grey800 } from 'material-ui/styles/colors';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import createStore from './store';
import Routes from './routes';
import getMuiTheme fr... |
src/ButtonGroup.js | nickuraltsev/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const ButtonGroup = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
vertical: React.PropTypes.bool,
justified: React.PropTypes.bo... |
web/client/configdev/src/config/ScreenExample.js | project-owner/Peppy | /* Copyright 2019 Peppy Player peppy.player@gmail.com
This file is part of Peppy Player.
Peppy Player is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any la... |
client/modules/core/containers/check_role.js | JSSolutions/Databazel | import { useDeps, composeWithTracker, composeAll } from 'mantra-core';
import React from 'react';
import CheckRole from '../components/partial/check_role.jsx';
import Loading from '../../core/components/partial/loading.jsx';
export const composer = ({ context, onlyAdmin }, onData) => {
const { Meteor } = context();... |
app/screens/articles/articles3.js | it-surya/hack-jeninvest | import React from 'react';
import {
FlatList,
Image,
View,
TouchableOpacity
} from 'react-native';
import {
RkText,
RkCard, RkStyleSheet
} from 'react-native-ui-kitten';
import {SocialBar} from '../../components';
import {data} from '../../data';
let moment = require('moment');
export class Articles3 exte... |
src/parser/rogue/subtlety/modules/talents/FindWeakness.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'... |
src/components/DropOver/index.js | orionsoft/parts | import React from 'react'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
import PropTypes from 'prop-types'
export default class DropOver extends React.Component {
static propTypes = {
open: PropTypes.bool,
children: PropTypes.node
}
renderMenu() {
if (!this.props.open) retu... |
src/Button.js | chris-gooley/react-materialize | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import constants from './constants';
import cx from 'classnames';
import Icon from './Icon';
import idgen from './idgen';
class Button extends Component {
constructor (props) {
super(props);
this.renderIcon = this.renderIcon.bind(t... |
dispatch/static/manager/src/js/vendor/dispatch-editor/embeds/ImageEmbed.js | ubyssey/dispatch | import React from 'react'
import { ImageInput, TextInput, SelectInput } from '../../../components/inputs'
import * as Form from '../../../components/Form'
const STYLE_OPTIONS = [
['default', 'default'],
['left', 'left'],
['right', 'right'],
]
const WIDTH_OPTIONS = [
['', 'full'],
['small', 'small'],
['m... |
client/lib/components/pages/ControlPanel/Users.js | blckt/diploma | import React from 'react';
class UsersView extends React.Component {
constructor (props) {
super(props);
}
render () {
return (<div>
Hello,Users!
</div>);
}
}
export default UsersView;
|
app/components/LoadingIndicator/index.js | thuantrinh/math_is_hard | import React from 'react';
import Circle from './Circle';
import Wrapper from './Wrapper';
const LoadingIndicator = () => (
<Wrapper>
<Circle />
<Circle rotate={30} delay={-1.1} />
<Circle rotate={60} delay={-1} />
<Circle rotate={90} delay={-0.9} />
<Circle rotate={120} delay={-0.8} />
<Cir... |
src/svg-icons/communication/phonelink-erase.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkErase = (props) => (
<SvgIcon {...props}>
<path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0... |
src/components/SwitchToggle/SwitchToggle.js | anhtuanssp/react-switch-toggle-component | 'use strict';
import React from 'react';
let injectTapEventPlugin = require('react-tap-event-plugin');
injectTapEventPlugin();
require('./style.scss');
class SwitchToggle extends React.Component {
static propTypes = {
onChange: React.PropTypes.func,
size: React.PropTypes.string,
id: R... |
src/components/user/ChangePasswordForm.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { Field, reduxForm } from 'redux-form';
import { Row, Col } from 'react-flexbox-grid/lib';
import { FormattedMessage } from 'react-intl';
import AppButton from '../common/AppButton';
import messages from '../../resources/messages';
import { emptyStri... |
src/__stories__/01-basic-table/02-Sort.stories.js | Imballinst/react-bs-datatable | import React from 'react';
import { storiesOf } from '@storybook/react';
import { categoryName } from './_base';
import moment from 'moment';
// In your setup, replace "../../" with "react-bs-datatable".
import Datatable from '../../';
const header = [
{ title: 'Username', prop: 'username', sortable: true },
{ ti... |
JS/Classes/Module/Invoke/refresh-control-pos-example.js | joggerplus/ReactNativeRollingExamples | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
ScrollView,
TouchableOpacity,
RefreshControl
} from 'react-native';
var Invoke = require('../../../Vendor/react-native-invoke/');
export default class RefreshControlPosExample extends Component {
render() {
return (
... |
App/Containers/Inventory/TableScreen.js | friskipr/Ignite_MyApp | import React from 'react'
import { ScrollView, Image, View } from 'react-native'
import SimpleGrid from '../../Components/Grid'
import api from '../../Services/DataApi'
import _ from 'lodash'
import styles from './Styles/DataScreenStyles'
import { Icon, Text } from 'react-native-elements'
import { connect } from 'react... |
node_modules/@material-ui/core/esm/utils/createSvgIcon.js | jerednel/jerednel.github.io | import _extends from "@babel/runtime/helpers/esm/extends";
import React from 'react';
import SvgIcon from '../SvgIcon';
/**
* Private module reserved for @material-ui/x packages.
*/
export default function createSvgIcon(path, displayName) {
var Component = function Component(props, ref) {
return /*#__PURE__*/R... |
examples/redux-firestore/src/components/LoadingSpinner/**/LoadingSpinner.js | prescottprue/generator-react-firebase | import React from 'react'
import PropTypes from 'prop-types'
import CircularProgress from '@material-ui/core/CircularProgress'
import { makeStyles } from '@material-ui/core/styles'
import styles from './LoadingSpinner.styles'
const useStyles = makeStyles(styles)
function LoadingSpinner({ size }) {
const classes = u... |
view/rooms/type/app.js | salesforce/refocus | /**
* Copyright (c) 2017, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* view/rooms/type/app.js
*
* When page is loaded we take all the bots queried... |
examples/basic/simple_usage/modal.js | diasbruno/react-modal | import React from 'react';
import Modal from 'react-modal';
export default props => {
const {
title, isOpen, askToClose,
onAfterOpen, onRequestClose, onChangeInput
} = props;
return (
<Modal
id="test"
contentLabel="modalA"
closeTimeoutMS={150}
isOpen={isOpen}
onAfterOpe... |
src/packages/@ncigdc/theme/icons/Print.js | NCI-GDC/portal-ui | import React from 'react';
export default ({ className = '', ...props }) => (
<i className={`${className} fa fa-print`} {...props} />
);
|
src/shared/components/Portfolio/RelativeItems.js | Grace951/grace951.github.io | import PropTypes from 'prop-types';
import React from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
let RelativeItems = ({portfolio, relative, parentIndex}) => {
if(relative.img && Array.isArray(relative.img)){
let imgItem = relative.img;
if(imgItem && imgItem... |
js/jqwidgets/demos/react/app/rangeselector/timescale/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxRangeSelector from '../../../jqwidgets-react/react_jqxrangeselector.js';
class App extends React.Component {
render() {
return (
<JqxRangeSelector ref='myRangeSelector'
width={750}
height={10... |
features/apimgt/org.wso2.carbon.apimgt.admin.feature/src/main/resources/admin/source/src/app/components/Security/Shared/JSONPolicyFields.js | Minoli/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... |
src/routes/register/Register.js | kumarrus/MuffinMan | /**
* 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 PropTypes from 'prop-... |
docs/app/Examples/collections/Menu/States/MenuExampleHover.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Menu } from 'semantic-ui-react'
const MenuExampleHover = () => {
return (
<Menu compact>
<Menu.Item as='a'>A link</Menu.Item>
<Menu.Item link>div Link</Menu.Item>
</Menu>
)
}
export default MenuExampleHover
|
examples/App/Demo/Panel/index.js | tangjinzhou/biz-mobile-ui | import React from 'react'
import {Panel,Button, colors} from '@bizfe/biz-mobile-ui'
import {px2rem} from '@bizfe/biz-mobile-ui/build/util/util';
export default class PanelDemo extends React.Component {
constructor(props){
super(props)
this.panel = null
}
componentDidMount(){
this.pan... |
src/containers/HeroContainer.js | mrozilla/mrozilla.cz | // ─────────────────────────────────────────────────────────────────────────────
// import
// ─────────────────────────────────────────────────────────────────────────────
import React from 'react';
import { string } from 'prop-types';
import { H1, P, Link } from '~components';
import { parseLinks } from '~utils';
/... |
frontend/src/components/controls/BugReportUI/forms.js | webrecorder/webrecorder | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button, Form } from 'react-bootstrap';
import { product } from 'config';
import { CheckboxField } from './fields';
export class ReportUIBugForm extends Component {
static propTypes = {
cb: PropTypes.func
};
constructor... |
src/routes/Dashboard/Dashboard.js | Mikosko/EimPanel | /**
* @Author: Miloš Kolčák
* @Date: 2017-01-06T16:30:10+01:00
* @Email: milos.kolcak@gmail.com
* @Last modified by: Miloš Kolčák
* @Last modified time: 2017-01-10T14:43:42+01:00
*/
import {connect} from 'react-redux'
import React from 'react'
import style from './Dashboardstyle.scss'
import Post from './compone... |
src/shared/element-react/dist/npm/es6/src/auto-complete/Suggestions.js | thundernet8/Elune-WWW | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import ReactDOM from 'react-dom';
import Popper from '../../libs/utils/popper';... |
src/index.js | CookPete/reddit-player | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, IndexRoute, Redirect, browserHistory } from 'react-router'
import { trackPageView } from './analytics'
import App from './pages/App'
import Home from './pages/Home'
import Playlist from './components/Playlist'
// Hook up analytics
br... |
app/containers/EventsAdmin/index.js | lucascgomes/church-website | import React from 'react'
import urls from 'urls'
import { connect } from 'react-redux'
import { Button, Row, Col, Modal } from 'antd'
import { fetch } from 'reducers/Fetch/actions'
import { post } from 'reducers/Post/actions'
import { put } from 'reducers/Put/actions'
import { deleteRequest } from 'reducers/Delete/act... |
app/components/EmptyMessage/index.js | zmora-agh/zmora-ui | import React from 'react';
import Typography from 'material-ui/Typography';
export default function EmptyMessage(props) {
return (
<div style={{ padding: 32, textAlign: 'center' }}>
<Typography type="headline" style={{ opacity: 0.6 }}>{props.children}</Typography>
</div>
);
}
EmptyMessage.propTypes... |
packages/material-ui-icons/src/DirectionsRailway.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let DirectionsRailway = props =>
<SvgIcon {...props}>
<path d="M4 15.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V5c0-3.5-3.58-4-8-4s-8 .5-8 4v10.5zm8 1.5c-1.1 0-2-.9-2-2s.9-2 2-2... |
src/svg-icons/hardware/cast-connected.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareCastConnected = (props) => (
<SvgIcon {...props}>
<path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 ... |
imports/ui/home/components/user_info.js | dououFullstack/atomic | import React from 'react';
import {browserHistory} from 'react-router';
import ColorThief from '/lib/color-thief.js';
import Loading from '/imports/ui/loading';
import Modal from 'react-modal';
class UserInfo extends React.Component {
constructor(props){
super(props);
this.state = {
dominantColor: 'rg... |
index.ios.js | kimochg/react-native-githubnote-app | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import RNgithubNote from './src';
AppRegistry.registerComponent('RNgithubNote', () => RNgithubNote);
|
packages/native/src/components/range/MultiDropdownRange.js | appbaseio/reactivesearch | /* eslint-disable */
import React, { Component } from 'react';
import { View, Modal, ListView, TouchableWithoutFeedback } from 'react-native';
import { CheckBox, Text, Body, Item, Header, Left, Button, Icon, Title, Right } from 'native-base';
import {
addComponent,
removeComponent,
watchComponent,
updateQuery,
se... |
examples/todos/src/components/Link.js | DreamAndDead/redux-copier | import React from 'react'
import PropTypes from 'prop-types'
const Link = ({ active, children, onClick }) => {
if (active) {
return <span>{children}</span>
}
return (
// eslint-disable-next-line
<a href="#"
onClick={e => {
e.preventDefault()
onClick()
}}
>
{... |
node_modules/react-icons/md/fast-rewind.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdFastRewind = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m19.1 20l14.3-10v20z m-0.7 10l-14.3-10 14.3-10v20z"/></g>
</Icon>
)
export default MdFastRewind
|
docs/pages/performance/table-component.js | lgollut/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import NoSsr from '@material-ui/core/NoSsr';
const createComponent = (defaultComponent) => {
const MyComponent = React.forwardRef(function MyComponent(props, ref) {
const { component: Component = defaultComponent, ...other } = props;
return <Com... |
src/interface/report/EventsLoader.js | yajinni/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { fetchEvents } from 'common/fetchWclApi';
class EventsLoader extends React.PureComponent {
static propTypes = {
report: PropTypes.shape({
code: PropTypes.string.isRequired,
}).isRequired,
fight: PropTypes.shape({
// use f... |
jenkins-design-language/src/js/components/material-ui/svg-icons/social/group-add.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialGroupAdd = (props) => (
<SvgIcon {...props}>
<path d="M8 10H5V7H3v3H0v2h3v3h2v-3h3v-2zm10 1c1.66 0 2.99-1.34 2.99-3S19.66 5 18 5c-.32 0-.63.05-.91.14.57.81.9 1.79.9 2.86s-.34 2.04-.9 2.86c.28.09.59.14.91.14zm-5 0c1.66 0 2.99-1.34 2.99-3S... |
app/scripts/components/nodes-resources/node-resources-layer-topology.js | hustbill/network-verification-ui | import React from 'react';
import pick from 'lodash/pick';
import { applyTransform } from '../../utils/transform-utils';
import {
RESOURCES_LAYER_TITLE_WIDTH,
RESOURCES_LAYER_HEIGHT,
} from '../../constants/styles';
export default class NodeResourcesLayerTopology extends React.Component {
render() {
// Thi... |
ajax/libs/react-instantsearch/4.3.0-beta.0/Dom.js | holtkamp/cdnjs | /*! ReactInstantSearch 4.3.0-beta.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], facto... |
src/components/cell.js | Greynight/Grid | import React from 'react';
import Templates from './templates';
class Cell extends React.Component {
constructor(props) {
super(props);
this.READ_TEMPLATE = 'template';
this.state = {
template: this.getCellTemplate
};
this.styles = {
width: this.getSchema().width,
minWidth: ... |
app/javascript/mastodon/features/ui/components/actions_modal.js | anon5r/mastonon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from '../../../components/status_content';
import Avatar from '../../../components/avatar';
import Relative... |
src/index.js | InnerPeace080/react-native-swiper | /**
* react-native-swiper
* @author leecade<leecade@163.com>
*/
import React from 'react'
import ReactNative, {
StyleSheet,
Text,
View,
ScrollView,
Dimensions,
TouchableOpacity,
ViewPagerAndroid,
Platform
} from 'react-native'
// Using bare setTimeout, setInterval, setImmediate
// and requestAnimati... |
src/components/wallet/Address.js | openvcash/vcash-electron | import React from 'react'
import { translate } from 'react-i18next'
import { inject, observer } from 'mobx-react'
/** Component */
import AddressOutputList from '../lists/AddressOutputList.js'
@translate(['common'])
@inject('wallet')
@observer
class Address extends React.Component {
constructor(props) {
super(p... |
frontend/src/screens/landing/widgets/main-menu/main-menu.js | linea-it/qlf | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
const styles = {
link: {
textDecoration: 'none',
color: 'white',
fontSize: '16px',
fontWeight: '100',
lineHeight: '32px',
paddingRight: '10px',
paddingLeft: '10px',
},
currentLink: ... |
src/components/comment-list-item.component.js | gitpoint/git-point | // @flow
/* eslint-disable no-nested-ternary */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { GithubHtmlView } from 'components';
import { Icon } from 'react-native-elements';
import ActionSheet from 'react-native-actionsheet';
import... |
frontend/src/components/eois/eoiHeader.js | unicef/un-partner-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { browserHistory as history } from 'react-router';
import NewCfeiModalButton from './modals/newCfei/newCfeiModalButton';
import HeaderNavigation from '../common/headerNavigation';
import { checkP... |
client/src/components/shared/loader.js | Siyanda-Mzam/hire-grad | import React from 'react';
const loads = () => {
return (
<div className="demo">
<svg className="loads">
<filter id="blur">
<fegaussianblur in="SourceGraphic" stdDeviation="2">
</fegaussianblur>
</filter>
<circle cx="75" cy="75" r="60" fill="transparent... |
examples/transitions/app.js | aastey/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link, History, Lifecycle } from 'react-router'
const history = useBasename(createHistory)({
basename: '/transitions'
})
const App = React.createClass({
render() {
return (
<div>
<ul>
... |
app/packs/src/admin/GenericElementAdmin.js | ComPlat/chemotion_ELN | import React from 'react';
import { Panel, Table, FormGroup, Popover, FormControl, Button, Row, Col, Badge, Tooltip, OverlayTrigger, InputGroup, Tabs, Tab } from 'react-bootstrap';
import uuid from 'uuid';
import Clipboard from 'clipboard';
import { findIndex, filter, sortBy, orderBy } from 'lodash';
import LoadingModa... |
examples/Explorer/Page.js | react-native-simple-router-community/react-native-simple-router | import React from 'react';
import {
ListView,
StyleSheet,
Text,
TouchableHighlight,
View,
} from 'react-native';
import LeftCorner from './components/LeftCorner';
import RightCorner from './components/RightCorner';
const styles = StyleSheet.create({
container: {
flex: 1,
},
row: {
flex: 1,
... |
src/views/components/chatroom/index.js | EragonJ/Kaku | import React from 'react';
import ClassNames from 'classnames';
import ReactFireMixin from 'reactfire';
import L10nSpan from '../shared/l10n-span';
import CommentForm from './comment/comment-form';
import CommentList from './comment/comment-list';
import Constants from '../../../modules/Constants';
import Firebase from... |
src-example/components/organisms/Organism/index.js | SIB-Colombia/biodiversity_catalogue_v2_frontend | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { font, palette } from 'styled-theme'
const Wrapper = styled.div`
font-family: ${font('primary')};
color: ${palette('grayscale', 0)};
`
const Organism = (props) => {
return (
<Wrapper {...props}>conten... |
app/javascript/mastodon/features/hashtag_timeline/index.js | mimumemo/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import ColumnSettingsContainer from './... |
app/containers/RepoListItem/index.js | stephme/react-specly | /**
* RepoListItem
*
* Lists the name and the issue count of a repository
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { FormattedNumber } from 'react-intl';
import { makeSelectCurrentUser } from 'containers/App/selectors';
import... |
react-router-tutorial/lessons/09-index-links/modules/About.js | zerotung/practices-and-notes | import React from 'react'
export default React.createClass({
render() {
return <div>About</div>
}
})
|
src/index.js | neilff/react-playground | import './styles/styles.css';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore({});
ReactDOM.render(
<div>
<Provider store={ store }>
... |
node_modules/react-bootstrap/es/InputGroup.js | NathanBWaters/jb_club | 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 ... |
examples/todos/src/containers/AddTodo.js | jayflaherty75/relax | import React from 'react';
import { Container, connect } from 'react-redux-relax';
class AddTodo extends Container {
/**
* Initializes Relax Container, adding reducers to class Reducer instance.
* @param props
* @param content
*/
constructor (props, content) {
super (props, content);
// Note t... |
src/components/common/TextArea.js | great-design-and-systems/cataloguing-app | import PropTypes from 'prop-types';
import React from 'react';
export const TextArea = ({ type = 'text', disabled, required, label, onChange, message, validator, name, value, rows, columns }) => {
let valid = true;
let inputClass = 'clearfix form-group';
return (<div className={valid ? inputClass : inputCl... |
docs/src/PageHeader.js | bvasko/react-bootstrap | import React from 'react';
const PageHeader = React.createClass({
render() {
return (
<div className="bs-docs-header" id="content">
<div className="container">
<h1>{this.props.title}</h1>
<p>{this.props.subTitle}</p>
</div>
</div>
);
}
});
export default Pag... |
docs/src/app/components/pages/components/IconMenu/Page.js | pradel/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import iconMenuReadmeText from './README';
import IconMenuExampleSimple from './... |
app/components/default-settings/RaceDurationSetting.js | opensprints/opensprints-electron | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import PlainContext from './PlainContext';
const appendZero = val => (val < 10 ? `0${val}` : val);
export default class RaceDurationSetting extends Component {
static propTypes = {
trialDuration: PropTypes... |
src/React/CollapsibleControls/TimeFloatImageControl/index.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import style from 'PVWStyle/ReactCollapsibleControls/FloatImageControl.mcss';
import CollapsibleWidget from '../../Widgets/CollapsibleWidget';
import InlineToggleButtonWidget from '../../Widgets/InlineToggleButtonWidget';
import ToggleIconButtonWidget fro... |
src/components/home/HomePage.js | Keaws/react-redux-pl | import React from 'react';
import {Link} from 'react-router';
class HomePage extends React.Component {
render() {
return (
<div className="jumbotron">
<h1>Admin</h1>
<p>React, Redux, React Router</p>
<Link to="about" className="btn btn-primary btn-lg">Learn more</Link>
</div>
... |
src/svg-icons/av/closed-caption.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvClosedCaption = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-4c0-.5... |
client/src/components/FormGroup/index.js | steThera/react-mobx-koa | import React from 'react';
import styles from './style.css';
const FormGroup = ({title, children}) => {
return (
<div className={`form-group ${styles.centerBlock}`}>
<label htmlFor="none" className="col-sm-5 col-xs-3 control-label">
{ title }
</label>
<div className="col-sm-7 col-xs-9"... |
src/svg-icons/av/library-books.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvLibraryBooks = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h1... |
src/components/components/CommonComponents.js | fernandojsg/aframe-inspector | import React from 'react';
import PropTypes from 'prop-types';
import {InputWidget} from '../widgets';
import DEFAULT_COMPONENTS from './DefaultComponents';
import PropertyRow from './PropertyRow';
import Collapsible from '../Collapsible';
import Mixins from './Mixins';
import {updateEntity, getClipboardRepresentation}... |
trim-interview-26092019/src/components/createUser.js | balaSpyrus/wave11 | import React from 'react';
const FIELDS = [
{
key: 'name',
label: 'Name',
type: 'text',
},
{
key: 'password',
label: 'Password',
type: 'password',
},
{
key: 'cPass',
label: 'Confirm Password',
type: 'password',
},
{
... |
visualization/client/component/lda/Analyze.js | quheng/chalk | import React from 'react'
import echarts from 'echarts'
import _ from 'lodash'
import fetch from 'isomorphic-fetch'
import styles from './Main.css'
import DynamicFieldSet from './DynamicFieldSet'
import { autobind } from 'react-decoration'
import { checkStatus, apiAddress } from '../../util'
const refName = 'Analyze'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.