path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/js/components/common/Filter.js | athill/wimf | import PropTypes from 'prop-types';
import React from 'react';
import { Button, Form, FormControl, FormGroup, InputGroup } from 'react-bootstrap';
import { Icon } from './common';
class Filter extends React.Component {
constructor(props) {
super(props);
this.textInput = null;
this._handleChange = this._handl... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsConstructorInferred.js | ylu1317/flow | // @flow
import React from 'react';
class MyComponent1 extends React.Component {
constructor(props) {}
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
class MyComponent2 extends React.Component {
props: Props;
constructor(props) {}
defaultProps: T;
s... |
Console/app/node_modules/rc-table/es/Table.js | RisenEsports/RisenEsports.github.io | import _extends from 'babel-runtime/helpers/extends';
import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/... |
admin/client/App/screens/Item/components/FormHeading.js | vokal/keystone | import React from 'react';
import evalDependsOn from '../../../../../../fields/utils/evalDependsOn';
module.exports = React.createClass({
displayName: 'FormHeading',
propTypes: {
options: React.PropTypes.object,
},
render () {
if (!evalDependsOn(this.props.options.dependsOn, this.props.options.values)) {
re... |
pages/index.js | havefive/react-tmpl | /**
* Created by lizhaocai on 2017/3/27.
*/
import Head from 'next/head'
import Link from 'next/link'
import Button from 'antd/lib/button'
import message from 'antd/lib/message'
import React from 'react'
import axios from 'axios'
import "antd/dist/antd.css";
//Ajaxbutton
class Abutton extends React.Component{
st... |
Hackathon-111/SecurityController/react_test/frontend/src/index.js | kimjinyong/i2nsf-framework | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
export { default as RealTimeChart} from './RealTimeChart';
export { default as RealTimeChart2} from './RealTimeChart2';
export { default as Table1} from './Table1'... |
src/components/common/button/ButtonAdd.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import ButtonAddElement from './ButtonAddElement';
import AddButton from './AddButton';
import styles from './ButtonAdd.module.css';
class ButtonAdd extends React.PureComponent {
constructor(props) {
super(props);
this.handleStage = this.handleS... |
src/parser/shared/modules/spells/bfa/azeritetraits/OverwhelmingPower.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import UptimeIcon from 'interface/icons/Uptime';
import HasteIcon from 'interface/icons/Haste';
import AzeritePowerStatistic from 'interface/statistic... |
src/client/js/news/YoutubeEmbed.js | GoodBoy123/crendorianinvitational | import React from 'react';
class YoutubeEmbed extends React.Component {
constructor(props) {
super(props)
}
render() {
return(
<iframe width="560" height="315" src={`https://www.youtube.com/embed/${this.props.src}`} frameBorder="0" allowFullScreen></iframe>
);
}
}
YoutubeEmbed.propTypes = {... |
content/theme/components/Pipelines/ParserDetailCompose.js | typesettin/NativeCMS | import React, { Component } from 'react';
import { StyleSheet, ScrollView, View, Platform, ListView, Image, Dimensions, TextInput, } from 'react-native';
// import * as Animatable from 'react-native-animatable';
import styles from '../../../../app/components/Styles/shared';
import layoutStyles from '../../../../app/com... |
app/react-icons/fa/sticky-note-o.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaStickyNoteO extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m34.3 28.6h-5.6v5.5q0.7-0.2 0.9-0.5l4.2-4.1q0.2-0.3 0.4-0.9z m-6.3-2.9h6... |
Realization/frontend/czechidm-core/src/content/identity/contract/IdentityContract.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';
import * as Basic from '../../../components/basic';
import { IdentityContractManager } from '../../../redux';
import * as Advanced from '../../../components/advanced';
import OrganizationPositio... |
src/ui/atom/SelectionInputDialog/index.js | jkubos/tickator-ide | import React from 'react'
import {observer} from 'mobx-react'
import styles from './style.less'
import {UiState} from '~/src/business/UiState'
import {Modals} from '~/src/business/Modals'
@observer
export class SelectionInputDialog extends React.Component {
static contextTypes = {
uiState: React.PropTypes.insta... |
src/components/clickToSend/index.js | LiskHQ/lisk-nano | import React from 'react';
import styles from './clickToSend.css';
import RelativeLink from '../relativeLink';
import { fromRawLsk } from '../../utils/lsk';
const ClickToSend = ({ rawAmount, amount, className,
recipient, children, disabled }) => {
const normalizedAmount = rawAmount ? fromRawLsk(rawAmount) : amount... |
src/svg-icons/action/three-d-rotation.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionThreeDRotation = (props) => (
<SvgIcon {...props}>
<path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-.... |
node_modules/semantic-ui-react/src/elements/Step/StepDescription.js | mowbell/clickdelivery-fed-test | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
function StepDescription(props) {
const { children, className, description } = props
const classes = cx('des... |
src/index.js | Nymoth/aws-quiz | import React from 'react';
import ReactDOM from 'react-dom';
import registerServiceWorker from './registerServiceWorker';
import injectTapEventPlugin from 'react-tap-event-plugin';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import App from './App';
import './index.css';
injectTapEventPlugin(... |
src/@ui/forms/ChangePasswordForm.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { compose, withProps, setPropTypes } from 'recompose';
import { withFormik } from 'formik';
import Yup from 'yup';
import withUser from '@data/withUser';
import { Text as TextInput } from '@ui/inputs';
import PaddedView from '@ui/PaddedView';
import... |
src/components/Content/index.js | jefferyvincent/catalyst | import React, { Component } from 'react';
import { Text } from 'react-native';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames';
class Content extends Component {
rende... |
examples/ModalWithBottomSheet.js | jareth/react-materialize | import React from 'react';
import Modal from '../src/Modal';
import Button from '../src/Button';
export default
<Modal
header='Modal Header'
bottomSheet
trigger={
<Button waves='light'>MODAL BUTTOM SHEET STYLE</Button>
}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci... |
lib/views/offline-view.js | atom/github | import React from 'react';
import PropTypes from 'prop-types';
import Octicon from '../atom/octicon';
export default class OfflineView extends React.Component {
static propTypes = {
retry: PropTypes.func.isRequired,
}
componentDidMount() {
window.addEventListener('online', this.props.retry);
}
com... |
lib/cli/test/fixtures/react/index.js | storybooks/react-storybook | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('root')
);
|
t1_client_react/src/components/rooms/chat/chatList.js | tomjal/TicketOne | import React, { Component } from 'react';
import { css } from 'aphrodite';
import { chatListStyles } from './../../../styles/inline/specificStyles';
import { timestampToDateString } from './../../../helpers/timeUtils';
import ChatBubble from './chatBubble';
export class ChatList extends Component {
componentDidMou... |
src/route/profit/InvestorProfitShare.js | simors/yjbAdmin | /**
* Created by yangyang on 2017/10/27.
*/
import React from 'react'
import {connect} from 'react-redux'
import { Card, Row, Col } from 'antd'
import {profitAction, profitSelector} from './redux'
import {PROFIT_SHARE_TYPE, stationSelector} from '../station'
class InvestorProfitShare extends React.PureComponent {
... |
fields/types/password/PasswordFilter.js | kwangkim/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const OPTIONS = [
{ label: 'Is Set', value: true },
{ label: 'Is NOT Set', value: false }
];
var PasswordFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || true
};
},
toggleChecked (checked) {
... |
src/components/product/ProductList.js | belaczek/BeerCheese-client | import React, { Component } from 'react';
import { CardDeck } from 'reactstrap';
import Loading from '../images/Loading';
import Product from './Product';
import { connect } from 'react-redux';
import { productsApi } from '../../actions/products';
import { isNull } from '../../util/util';
class ProductList extends Com... |
src/svg-icons/editor/border-left.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderLeft = (props) => (
<SvgIcon {...props}>
<path d="M11 21h2v-2h-2v2zm0-4h2v-2h-2v2zm0-12h2V3h-2v2zm0 4h2V7h-2v2zm0 4h2v-2h-2v2zm-4 8h2v-2H7v2zM7 5h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2V3H3v18zM19 9h2V7h-2v2z... |
src/components/Module/Module.js | teemuteemu/sp_modular | import React from 'react';
import Let from 'components/Let';
import Parameter from 'components/Parameter';
import './module.scss';
class Module extends React.Component {
constructor (props) {
super(props);
this.onMouseUp = this.onMouseUp.bind(this);
this.onMouseDown = this.onMouseDown.bind(this);
... |
js/components/badge/index.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Button, Icon, Badge, Text, Left, Right, Body } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import styles from './styles';
class NHBadge extends Component { //eslint-... |
assets/javascripts/kitten/components/structure/list/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
import deprecated from 'prop-types-extra/lib/deprecated'
import styled from 'styled-components'
import { pxToRem } from '../../../helpers/utils/typography'
import { ButtonItem } from './components/button-item'
import classNames from 'classnames'
const Styled... |
src/components/About.js | Korkemoms/amodahl.no | // @flow
import React from 'react'
import '../MyContent.scss'
import '../App.scss'
import me from '../images/me.jpg'
import MyHeader from '../components/MyHeader'
import DocumentTitle from 'react-document-title'
import {
Grid,
Row,
Col,
PageHeader,
Image
} from 'react-bootstrap'
/* Purely presentational co... |
src/components/Plant/ProfilePlantCard.js | kuao775/mandragora | import React from 'react';
import { Card, Label, Icon, Grid, Header, Progress } from 'semantic-ui-react';
import PropTypes from 'prop-types';
class ProfilePlantCard extends React.Component {
static propTypes = {
plant: PropTypes.shape({
rarity: PropTypes.string.isRequired,
level: PropTypes.number.isR... |
src/routes/request/index.js | yunqiangwu/kmadmin | import React from 'react'
import Mock from 'mockjs'
import { request, config } from 'utils'
import {
Row,
Col,
Card,
Select,
Input,
Button,
} from 'antd'
import styles from './index.less'
const { api } = config
const { dashboard, users, userLogin, user, v1test, v2test } = api
const requestOptions = [
{
... |
client/src/app/components/ui/UiAjaxAutocomplete.js | zraees/sms-project | import React from 'react'
export default class UiAjaxAutocomplete extends React.Component {
componentDidMount() {
let self = this;
function split(val) {
return val.split(/,\s*/);
}
function extractLast(term) {
return split(term).pop();
}
function extractFirst(term) {
re... |
src/scenes/Layout/components/Representation/components/DayCardVersion/DayCardVersion.js | czonios/schedule-maker-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import timeService from '../../../../../../services/times/timeService';
import { Card } from 'semantic-ui-react';
import './DayCardVersion.css';
// import AddEventIcon from '.././AddEventIcon/AddEventIcon';
import HoverableIcon from '../../..... |
packages/react-scripts/template/src/routes.js | dsopel94/create-react-app | import React from 'react';
import { Route, IndexRoute, Router, BrowserRouter } from 'react-router';
import App from './modules/App/App';
import LoginPage from './modules/Post/pages/LoginPage/LoginPage.js';
// import SignUpPage from './modules/Post/pages/SignupPage/SignupPage.js';
const routes = (
<BrowserRouter}>
... |
src/calendar.js | HsuTing/cat-components | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import radium from 'radium';
import areEqual from 'fbjs/lib/areEqual';
import moment from 'moment';
import * as style from './style/calendar';
export const calendarStyle = style;
@radium
export default class Calendar extends React.Componen... |
src/components/Home/index.js | cfilby/react-mobx-realworld-example-app | import Banner from './Banner';
import MainView from './MainView';
import React from 'react';
import Tags from './Tags';
import { inject, observer } from 'mobx-react';
import { withRouter } from 'react-router-dom';
@inject('commonStore')
@withRouter
@observer
export default class Home extends React.Component {
compon... |
js/App/Components/Location/LocationDetails/ZWaveSettings.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
client/src/javascript/components/auth/AuthForm.js | jfurrow/flood | import {injectIntl} from 'react-intl';
import React from 'react';
import {Button, Form, FormError, FormRow, Panel, PanelContent, PanelHeader, PanelFooter, Textbox} from 'flood-ui-kit';
import AuthActions from '../../actions/AuthActions';
import AuthStore from '../../stores/AuthStore';
import connectStores from '../../... |
views/main.js | alessandrostone/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 ... |
src/pages/conference/people/userProfile/personalInfo/index.js | sunway-official/acm-admin | import React, { Component } from 'react';
import ActionPermIdentity from 'material-ui/svg-icons/action/perm-identity';
import NotificationWC from 'material-ui/svg-icons/notification/wc';
import SocialCake from 'material-ui/svg-icons/social/cake';
import './style.css';
import { RaisedButton } from 'material-ui';
import ... |
node_modules/react-bootstrap/es/CarouselCaption.js | NickingMeSpace/questionnaire | 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/svg-icons/editor/format-list-bulleted.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatListBulleted = (props) => (
<SvgIcon {...props}>
<path d="M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 ... |
packages/desktop/src/containers/About/About.js | ethereumproject/emerald-wallet | import React from 'react';
import {ipcRenderer, shell} from 'electron';
import { ThemeProvider } from '@material-ui/core/styles';
import {About, Theme} from '@emeraldwallet/ui';
class AboutContainer extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
componentDidMount() {
... |
src/svg-icons/maps/local-activity.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalActivity = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2z... |
src/views/presentation-view/svg/symbols/right.js | vynogradskyi/resume | import React from 'react';
export default function ({w, h, t, type}) {
return (
<symbol id="right" data-name="right" viewBox="0 0 85.17 86.62">
<g id="svg_8" data-name="svg 8">
<path id="svg_1" data-name="svg 1"
d="M25.37,28.42c-2.23-5.23.16-15.9-1.57-22.26... |
client/src/components/WeeklyMatrix/WeeklyGraph.js | fraktio/teamdaily | import React from 'react';
import moment from 'moment';
// @TODO Use native functions wheneven possible
import keys from 'lodash/keys';
import mapValues from 'lodash/mapValues';
import zipObject from 'lodash/zipObject';
import reduce from 'lodash/reduce';
import forEach from 'lodash/forEach';
import map from 'lodash/m... |
src/svg-icons/image/filter-b-and-w.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterBAndW = (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-2zm0 16l-7-8v8H5l7-8V5h7v14z"/>
</SvgIcon>
);
ImageFilterBAndW = pure(Im... |
example/pages/msg/index.js | woshisbb43/coinMessageWechat | import React from 'react';
import { Link } from 'react-router-dom';
import { Button } from '../../../build/packages';
import Page from '../../component/page';
const MsgDemo = () => (
<Page className="msg" title="Msg" subTitle="提示页" spacing>
<Button component={Link} to="/msg/success">Success Message</Button... |
test/integration/jsconfig-baseurl/pages/hello.js | azukaru/next.js | import React from 'react'
import { World } from 'components/world'
export default function HelloPage() {
return (
<div>
<World />
</div>
)
}
|
client/containers/BackupContainer.js | axax/lunuc | import React from 'react'
import PropTypes from 'prop-types'
import compose from 'util/compose'
import BaseLayout from 'client/components/layout/BaseLayout'
import {
SimpleButton,
SimpleDialog,
Typography,
DeleteIconButton,
SimpleList,
Row,
Col
} from 'ui/admin'
import FileDrop from 'client/... |
app/components/ListWLoader.js | seentaoInternetOrganization/reactDemo | import React from 'react';
import PubSub from 'pubsub-js';
class ListWLoader extends React.Component {
constructor(props) {
super(props);
this.state = {
data: ["什sdfsfg么","什么sdfgs啊","sdfgsdfg sfg 鬼","什sdfsfg么","什么sdfgs啊","sdfgsdfg sfg 鬼","什sdfsfg么","什么sdfgs啊","sdfgsdfg sfg 鬼"]
};
this.onChange = ... |
src/server.js | jackhutu/jackblog-react-redux | import React from 'react'
import { renderToString } from 'react-dom/server'
import { StaticRouter } from 'react-router-dom'
import { matchRoutes, renderRoutes } from 'react-router-config'
import createMemoryHistory from 'history/createMemoryHistory'
import { Provider } from 'react-redux'
import Cookies from 'universal-... |
src/components/CreateVmWizard/AddVmButton.js | oVirt/ovirt-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Button } from 'patternfly-react'
import * as Actions from '_/actions'
import { CREATE_PAGE_TYPE } from '_/constants'
import { withMsg } from '_/intl'
import CreateVmWizard from './CreateVmWizard'
class AddVmBut... |
frontend/src/components/eois/details/overview/results/responseForm.js | unicef/un-partner-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { reduxForm } from 'redux-form';
import Typography from 'material-ui/Typography';
import { connect } from 'react-redux';
import { withStyles } from 'material-ui/styles';
import Grid from 'material-ui/Grid';
import Button from 'material... |
frontend/scripts/utils/root.js | Ledoux/teleport-react-router | import React from 'react'
import context from './context'
import createPage from './page'
import createRoutes from './routes'
import createRender from './render'
function createRoot (config) {
const { App,
history,
Route,
Router
} = config
const setup = Object.assign({}, context,
typeof window... |
src/svg-icons/av/note.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvNote = (props) => (
<SvgIcon {...props}>
<path d="M22 10l-6-6H4c-1.1 0-2 .9-2 2v12.01c0 1.1.9 1.99 2 1.99l16-.01c1.1 0 2-.89 2-1.99v-8zm-7-4.5l5.5 5.5H15V5.5z"/>
</SvgIcon>
);
AvNote = pure(AvNote);
AvNote.... |
src/routes.js | createspb/obsvtr | import React from 'react';
import {IndexRoute, Route} from 'react-router';
// import { Route } from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Home,
Welcome,
Warning,
Question,
Subresults,
ProductName,
Results,
Admin... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | sharath1988/survey-demo | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
docs/src/components/CodeEditor/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Loader } from 'semantic-ui-react'
import NoSSR from 'docs/src/components/NoSSR'
const CodeEditor = React.lazy(() => import('./CodeEditor'))
const CodeEditorSafe = (props) => (
<NoSSR>
<React.Suspense fallback={<Loader active inline='centered' />}>
<CodeEditor {...props}... |
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupIconSize.js | clemensw/stardust | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleGroupIconSize = () => (
<Button.Group basic size='small'>
<Button icon='file' />
<Button icon='save' />
<Button icon='upload' />
<Button icon='download' />
</Button.Group>
)
export default ButtonExampleGroupIco... |
frontend/src/Components/Form/KeyValueListInput.js | Radarr/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import KeyValueListInputItem from './KeyValueListInputItem';
import styles from './KeyValueListInput.css';
class KeyValueListInput extends Component {
//
// Lifecycle
constructor(props, context) {... |
components/frontend/src/fields/ReadOnlyInput.js | ICTU/quality-time | import React from 'react';
import { Form, Label } from '../semantic_ui_react_wrappers';
export function ReadOnlyInput({ error, label, placeholder, prefix, required, value, type, unit }) {
return (
<Form.Input
error={error || (required && value === "")}
fluid
label={label... |
src/index.js | nordicbikes/nordicbikes.github.io | //import styles
import 'grommet/scss/hpe/index';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import App from 'grommet/components/App';
import Box from 'grommet/components/Box';
//import Header from 'grommet/components/Header';
import Footer from 'grommet/components/Footer';
//import Met... |
test/test_helper.js | MdShuaib/ReactRouterReduxForm | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
client/src/components/layout/Footer.js | hamxabaig/rfid-tags | /**
* Created by uzysjung on 2016. 10. 20..
* Presentational Footer Component
*/
import React from 'react'
import Pkg from '../../../../package.json'
import Radium from 'radium'
const style = {
background: '#fff',
padding: '15px',
color: '#444',
borderTop: '1px solid #d2d6de'
};
const Footer = func... |
src/containers/roadmapcontainer.js | kristian76/geezer | /**
*
*
*/
import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
class RoadmapContainer extends React.Component {
componentDidMount() {
this.props.requestProjects();
}
render() {
let cW = (new Date()).getWeek();
let projects =... |
app/scripts/MainViews/UserList.js | nthitz/mashupfm | import React from 'react'
import UserStore from '../stores/UserStore.js'
import userAuth from '../userAuth'
import Avatar from '../User/Avatar'
class UserListItem extends React.Component {
constructor(props) {
super(props)
this.state = {
loggedInUser: null
}
}
componentDidMount() {
user... |
src/components/Field/ErrorPointer.js | Venumteam/loafer-front | import React from 'react'
import classNames from 'classnames/bind'
import styles from './ErrorPointer.scss'
const cx = classNames.bind(styles)
export default function ErrorPointer ({ message, width }) {
const errorWidth = width ? `col-sm-offset${12 - width} col-sm-${width}` : undefined
return (
<div className... |
packages/shared/forks/Scheduler.umd.js | yiminghe/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
const {
... |
app/components/Footer.js | csreyes/TLCJournal | import React from 'react';
import {Link} from 'react-router';
import FooterStore from '../stores/FooterStore'
import FooterActions from '../actions/FooterActions';
class Footer extends React.Component {
constructor(props) {
super(props);
this.state = FooterStore.getState();
this.onChange = this.onChange.... |
examples/js/expandRow/expandRow.js | AllenFang/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
if (i < 3) {
products.push... |
app/src/containers/damageCalculatorContainer.js | bhayden1/savageReact | import { connect } from 'react-redux';
import {damage} from '../actions/damageCalculatorActions';
import {ap} from '../actions/damageCalculatorActions';
import {DamageCalculator} from '../components/damageCalculator';
import React from 'react';
export function mapStateToProps(state) {
console.log('map to prop... |
packages/map-gl/src/components/Legend.js | wq/wq.app | import React from 'react';
import PropTypes from 'prop-types';
export default function Legend({ children }) {
return <>{children}</>;
}
Legend.propTypes = {
children: PropTypes.node
};
|
src/Parser/VengeanceDemonHunter/Modules/Tier/Tier20/Tier20-4P.js | mwwscott0/WoWAnalyzer | import React from 'react';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import Module from 'Parser/Core/Module';
import { formatPercentage, formatDuration } from 'common/format';
import... |
src/svg-icons/image/crop.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop = (props) => (
<SvgIcon {...props}>
<path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"/>
</SvgIcon>
);
ImageCrop = pure(ImageCrop);
ImageCrop.displayNam... |
src/index.js | GenFirst/todo-react-app | import React from 'react';
import ReactDOM from 'react-dom';
import VisibleApp from './App';
import About from './components/about';
import Header from './components/header';
import { BrowserRouter as Router, Route } from 'react-router-dom'
import { Provider } from 'react-redux';
import { createStore } from 'redux';
im... |
app/app.js | zuesxiao/xm-react-boilerplate | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import ... |
app/javascript/mastodon/features/ui/components/drawer_loading.js | Ryanaka/mastodon | import React from 'react';
const DrawerLoading = () => (
<div className='drawer'>
<div className='drawer__pager'>
<div className='drawer__inner' />
</div>
</div>
);
export default DrawerLoading;
|
fields/types/color/ColorColumn.js | stosorio/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var ColorColumn = React.createClass({
displayName: 'ColorColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obje... |
docs/app/Examples/collections/Table/Variations/TableExampleBasic.js | clemensw/stardust | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleBasic = () => {
return (
<Table basic>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes</Table.... |
src/components/canvas/other_components/AddQuestion.js | nchathu2014/canvas-new | import React from 'react';
export default class AddQuestion extends React.Component{
constructor(props){
super(props);
this.state={
isVisible:false
}
}
render(){
return(
<div>
<div className="text-center">
<h4>Add Questions <span className="glyphicon glyphicon-exclamation-sign"></sp... |
react_lifecycle_sample/index.ios.js | devSC/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import setup from './setup'
AppRegistry.registerComponent('react_lifecycle_sample', () => setup);
|
client/app/scripts/main.dev.js | alban/scope | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import '../styles/main.scss';
import '../images/favicon.ico';
import configureStore from './stores/configureStore.dev';
const store = configureStore();
function renderApp() {
const App = re... |
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js | v2tmobile/actor-platform | import React from 'react';
import _ from 'lodash';
import VisibilityStore from 'stores/VisibilityStore';
import MessageActionCreators from 'actions/MessageActionCreators';
import MessageItem from 'components/common/MessageItem.react';
let _delayed = [];
let flushDelayed = () => {
_.forEach(_delayed, (p) => {
... |
front_end/app/components/common/Card.js | DaniGlass/OneStopShop | import React from 'react';
import { View } from 'react-native';
const Card = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
);
};
const styles = {
containerStyle: {
borderWidth: 1,
borderRadius: 2,
borderColor: 'transparent',
borderBottomWidth: ... |
components/FoodItemNutritionTable.js | filbertteo/frontend-challenge | import React from 'react';
import Table from 'material-ui/lib/table/table';
import TableRow from 'material-ui/lib/table/table-row';
import TableRowColumn from 'material-ui/lib/table/table-row-column';
import TableBody from 'material-ui/lib/table/table-body';
const FoodItemNutritionTable = ({foodItem,}) => {
con... |
src/app.js | ryu047/DBZ-Scouter | import React from 'react';
import ReactDom from 'react-dom';
import MainPage from 'components/mainPage';
ReactDom.render(<MainPage />, document.getElementById('container'));
|
packages/@sanity/studio-hints/src/components/HintCard.js | sanity-io/sanity | import React from 'react'
import PropTypes from 'prop-types'
import {Card, Text, Heading, Stack, Flex} from '@sanity/ui'
import {LaunchIcon} from '@sanity/icons'
import {resolveUrl} from './utils'
function HintCard(props) {
const {card, repoId} = props
return (
<Card
tone="inherit"
border
ra... |
src/js/components/icons/base/SocialStripe.js | odedre/grommet-final | /**
* @description SocialStripe SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
... |
information/blendle-frontend-react-source/app/modules/premiumSignup/containers/ConfirmEmail.js | BramscoChill/BlendleParser | import React, { Component } from 'react';
import SignUpStore from 'stores/SignUpStore';
import AuthStore from 'stores/AuthStore';
import ConfirmAccountStore from 'stores/ConfirmAccountStore';
import ConfirmEmail from 'modules/premiumSignup/components/ConfirmEmail';
import AffiliatesStore from 'stores/AffiliatesStore';
... |
examples/forms-material-ui/src/components/forms-destroy-wizard-generic/Hook.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import { RaisedButton } from 'material-ui';
import config from './config';
export default createReactClass({
displayName: 'Hook',
propTypes: {
model: PropTypes.object.isRequired
},
render: fu... |
src/components/state-badge.component.js | housseindjirdeh/git-point | import React from 'react';
import { Text, View, StyleSheet } from 'react-native';
import { colors, fonts, normalize } from 'config';
type Props = {
issue: Object,
isMerged: boolean,
text: string,
type: string,
style: Object,
};
const styles = StyleSheet.create({
badge: {
padding: 12,
paddingTop: ... |
src/components/Main.js | zerotung/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
// 获取图片相关的数据
let imageDatas = require('../data/imageDatas.json');
// 利用自执行函数,将图片名信息转换为图片URL路径信息
imageDatas = (function genImageURL(imageDatasArr) {
for (let i = 0, j = imageDatasArr.leng... |
examples/shopping-cart/src/components/App.js | optimizely/nuclear-js | 'use strict';
import React from 'react'
import CartContainer from './CartContainer'
import ProductsContainer from './ProductsContainer'
export default React.createClass({
render() {
return (
<div>
<ProductsContainer />
<CartContainer />
</div>
);
}
});
|
src/svg-icons/av/pause-circle-filled.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPauseCircleFilled = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"/>
</SvgIcon>
);
AvPauseCircleFilled = pure(AvP... |
src/components/AllNoneToggle.js | robertkirsz/magic-cards-manager | import React from 'react'
import PropTypes from 'proptypes'
import _every from 'lodash/every'
const AllNoneToggle = ({ colors, toggleAll, toggleNone }) => {
const allChecked = _every(colors, c => c)
const noneChecked = _every(colors, c => !c)
return (
<div className="all-none-checkboxes">
<label>
... |
client/node_modules/uu5g03/dist-node/bricks/number.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, Tools} from '../common/common.js';
import Environment from '../environment/environment.js';
import $ from 'jquery';
import './number.less';
export const Number = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin
],
... |
store-collected-images/webextension-with-webpack/src/popup.js | mdn/webextensions-examples | "use strict";
import React from 'react';
import ReactDOM from 'react-dom';
import uuidV4 from 'uuid/v4';
import preventWindowDragAndDrop from './utils/handle-window-drag-and-drop';
import {saveCollectedBlobs} from './utils/image-store';
class Popup extends React.Component {
constructor(props) {
super(props);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.