path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/node_modules/react-router/es/Router.js | bourdakos1/Visual-Recognition-Tool | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
src/js/components/App.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { getCurrentLocale } from '../utils/Locale';
import SkipLinks from './SkipLinks';
import CSSClassnames from '../utils/CSSClassn... |
src/presentation/Post.js | shek8034/react-webpack-setup | import React from 'react';
export default function Post(props) {
return (
<div>{props.post.data.title} :- asked by {props.post.data.author}</div>
)
} |
docs/src/app/components/pages/components/Stepper/VerticalNonLinearStepper.js | ngbrown/material-ui | import React from 'react';
import {
Step,
Stepper,
StepButton,
StepContent,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* A basic vertical non-linear implementation
*/
class VerticalNonLinear extends React.Component {... |
assets/jqwidgets/demos/react/app/layout/righttoleftlayout/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxLayout from '../../../jqwidgets-react/react_jqxlayout.js';
import JqxTree from '../../../jqwidgets-react/react_jqxtree.js';
class App extends React.Component {
render() {
let layout = [{
type: 'layoutGroup',
ori... |
examples/real-world/src/root/Root.prod.js | ioof-holdings/redux-dynamic-reducer | import React from 'react'
import PropTypes from 'prop-types'
import { Provider } from 'react-redux'
import { Router } from 'react-router'
import routes from './routes'
const Root = ({ store, history }) => (
<Provider store={store}>
<Router history={history} routes={routes} />
</Provider>
)
Root.propTypes = {
... |
modules/IndexRoute.js | jdelight/react-router | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './PropTypes';
var { bool, func } = React.PropTypes;
/**
* An <IndexRoute> is used to specify its parent's <Route indexRoute> in
* a JSX route config... |
components/src/Section/Section.story.js | svef/www | import React from 'react'
import { storiesOf } from '@storybook/react'
import Section from '.'
import H1 from '../H1'
storiesOf('Section', module)
.add('default', () => (
<Section>
<H1 color="svef">Some title</H1>
</Section>
))
.add('hero', () => (
<Section hero>
<H1 color="svef">Some t... |
src/components/App.js | jahin07/Course-Description | import React from 'react';
import Header from './Header';
import ContestList from './ContestList';
import Contest from './Contest';
import * as api from '../api';
const pushState = (obj, url) =>
window.history.pushState(obj, '', url);
const onPopState = handler => {
window.onpopstate = handler;
};
class App exte... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | arseneonly/swapi | 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'));
|
js/src/ui/Portal/portal.example.js | BSDStudios/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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 lat... |
app/containers/Connection.js | josser/pickler | import React, { Component } from 'react';
import { connect } from "react-redux";
import { push } from "react-router-redux";
import { addToFavorites, save, touchFavorites } from "reducers/config";
import autobind from "autobind-decorator";
class Connection extends Component {
state = {
favorite: {
payload:... |
app/containers/AutoComplete/index.js | joeysherman/noodle-time | /*
*
* AutoComplete
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import reducer from './reducer';
import saga from './saga';
// Selectors
import selectAutoComplete, {
selectPredictions,
makeSelectSu... |
node_modules/react-bootstrap/es/Row.js | caughtclean/but-thats-wrong-blog | 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 ... |
consoles/my-joy-images/src/components/toolbar.js | yldio/joyent-portal | import React from 'react';
import { Field } from 'redux-form';
import Flex from 'styled-flex-component';
import { Margin } from 'styled-components-spacing';
import { Button, FormGroup, Input, FormLabel } from 'joyent-ui-toolkit';
export const Toolbar = ({
searchable = true,
searchLabel = 'Filter',
searchPlaceho... |
app/javascript/mastodon/features/ui/components/boost_modal.js | 3846masa/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Button from '../../../components/button';
import StatusCo... |
index.js | corbmanj/project-dashboards | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, browserHistory, IndexRoute } from 'react-router'
import App from './modules/App'
render((
<Router history={browserHistory}>
<Route path="/" component={App} />
</Router>
), document.getElementById('app'))
|
docs/app/Examples/elements/List/ContentVariations/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ListContentVariations = () => (
<ExampleSection title='Content Variations'>
<ComponentExample
title='Vertically Alig... |
archimate-frontend/src/main/javascript/components/view/nodes/model_b/businessInteraction.js | zhuj/mentha-web-archimate | import React from 'react'
import _ from 'lodash'
import { ModelNodeWidget } from '../BaseNodeWidget'
export const TYPE='businessInteraction';
export class BusinessInteractionWidget extends ModelNodeWidget {
getClassName(node) { return 'a-node model_b businessInteraction'; }
}
|
assets/javascript/view/operation/request.js | benhu/RestApiTester | 'use strict';
import React from 'react';
import ObjectHelper from '../../helper/object';
import Parameter from './parameter';
export default class Request extends React.Component {
render() {
const paramsWidth = {width: 350};
const objHelper = new ObjectHelper();
let partial = null;
... |
react-ui/src/components/shared/AttributionFooter.js | EdwinJow/truthindata | import React, { Component } from 'react';
import axios from 'axios';
class AttributionFooter extends Component {
constructor(props) {
super(props);
this.state = {
dataSources: []
};
}
render() {
return (
<div style={{width: '100%'}}>
... |
app/javascript/mastodon/components/column.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { supportsPassiveEvents } from 'detect-passive-events';
import { scrollTop } from '../scroll';
export default class Column extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
label: PropTypes.string,
bindToDoc... |
src/svg-icons/hardware/keyboard-arrow-right.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardArrowRight = (props) => (
<SvgIcon {...props}>
<path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/>
</SvgIcon>
);
HardwareKeyboardArrowRight = pure(HardwareKeyboardArrowRight);
Hardwar... |
app/javascript/flavours/glitch/components/load_more.js | Kirishima21/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class LoadMore extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func,
disabled: PropTypes.bool,
visible: PropTypes.bool,
}
static defaultProps = {
vi... |
src/pages/news/NBA/NewsNBA.js | HeliumLau/Hoop-react | import React from 'react';
import { Link } from 'react-router';
import './NewsNBA.less';
export default class NewsNBA extends React.Component {
render() {
return (
<div>
<div className="newsNBA-navigation-container">
<ul className="newsNBA-navigation">
... |
frontend/jqwidgets/jqwidgets-react/react_jqxtoolbar.js | liamray/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxToolBar extends React.Component {
componentDidMount() {
let options = this.manage... |
src/components/CancelSubscriptionBtn.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import withIntl from '../lib/withIntl';
import { graphql } from 'react-apollo';
import { FormattedMessage } from 'react-intl';
import gql from 'graphql-tag';
import SmallButton from './SmallButton';
class CancelSubscriptionBtn extends React.Component {
s... |
src/components/label-button.component.js | Antoine38660/git-point | import React from 'react';
import { StyleSheet } from 'react-native';
import { Button } from 'react-native-elements';
import { fonts } from 'config';
import { getFontColorByBackground } from 'utils';
type Props = {
label: Object,
largeWithTag: boolean,
};
const styles = StyleSheet.create({
smallLabelButton: {
... |
src/index.js | osxi/react-pouch-redux-starter-kit | 'use strict';
import { Provider } from 'react-redux';
import Router from './components/router';
import React from 'react';
import { render } from 'react-dom';
import store from './redux/store';
render(
<Provider store={store}>
<Router />
</Provider>
, document.getElementById('app')
);
|
src/ContentBlocks/Shared/ImageGalleryComponent.js | grommet/grommet-cms-content-blocks | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Box from 'grommet/components/Box';
import Image from 'grommet/components/Image';
import Tiles from 'grommet/components/Tiles';
import Tile from 'grommet/components/Tile';
import styled from 'styled-components';
const Div = styled.div`... |
demos/demo/src/components/Timer/index.js | FWeinb/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {signal} from 'cerebral/tags'
import ProjectSelectorTag from '../ProjectSelectorTag'
import {displayTaskDuration, isRunning} from '../../modules/tasks/helpers'
import runningTask from '../../computed/runningTask'
import translations from '../../com... |
src/List/Toolbar/SelectSortBy/SelectSortBy.component.js | Talend/react-talend-components | import React from 'react';
import { NavItem, Nav, NavDropdown, MenuItem } from 'react-bootstrap';
import uuid from 'uuid';
import theme from './SelectSortBy.scss';
function SelectSortBy({ field, id, isDescending, onChange, options }) {
const order = isDescending || false;
const selected = field && options.find(item... |
examples/src/index.js | LayGit/layui | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, hashHistory } from 'react-router';
import { routes } from './route'
ReactDOM.render((
<Router history={ hashHistory } routes={routes}></Router>
), document.getElementById('app'))
|
src/components/GroupsSection.js | giladgreen/pokerStats |
import React, { Component } from 'react';
export default class GroupsSection extends Component {
render() {
const {groups,groupsCount,connected,jumpToLoginSection} = this.props;
if (connected || !groups || groups.length == 0){
return <div/>
}
const groupsItems = group... |
src/components/views/Account/SignIn.js | jennywin/donate-for-good | import React, { Component } from 'react';
export default class SignIn extends Component {
render() {
return (
<div>
This is the signin page.
</div>
);
}
}
|
src/root.js | TimurAsayonok/ContentApplication | import React from 'react'
import { Navigation } from 'react-native-navigation'
import { Provider } from 'react-redux'
import { ApolloProvider, ApolloClient, createNetworkInterface } from 'react-apollo'
import configureStore from './store/configureStore'
import client from './client'
import { registerScreens } from './c... |
src/encoded/static/components/gene_search/input.js | ENCODE-DCC/encoded | import React from 'react';
import PropTypes from 'prop-types';
/**
* Controlled input box that accepts user's query
* and triggers onChange callback.
*/
const Input = React.forwardRef((props, ref) => (
<input
id="gene"
autoComplete="off"
aria-label="search for gene name"
placeholde... |
src/icons/PregnantWomanIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class PregnantWomanIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M18 8c0-2.22 1.78-4 4-4s4 1.78 4 4-1.78 4-4 4-4-1.78-4-4zm14 18c-.02-2.69-1.66-5.02-4-6 0-3.31-2.69-... |
src/components/App/index.js | charleslxh/react-temp | import React from 'react';
import { Route, Link } from 'react-router-dom';
import Header from 'COMPONENTS/Header'
import Home from 'COMPONENTS/Home'
import About from 'COMPONENTS/About'
import Counter from 'COMPONENTS/Counter'
import Counter2 from 'COMPONENTS/Counter2'
import './style.css';
class App extends React.C... |
packages/mineral-ui-icons/src/IconNewReleases.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconNewReleases(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPr... |
app/components/Home.js | daiyingheng/dayinhen | import React from 'react';
import {Link} from 'react-router';
import HomeActions from '../actions/HomeActions';
import HomeStore from '../stores/HomeStore'
import {first, without, findWhere} from 'underscore';
class Home extends React.Component {
constructor(props) {
super(props);
this.state = HomeStore.get... |
src/components/landing/landing.js | tervay/AutoScout | import React from 'react';
import SearchBar from '@/components/search/search';
import './landing.scss';
export default function Landing() {
return (
<div className={'flexContainer'}>
<SearchBar />
</div>
);
}
|
app/components/Toggle/index.js | coocooooo/webapp | /**
*
* LocaleToggle
*
*/
import React from 'react';
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.map((value) => (
<ToggleOption key... |
src/pages/generic.js | DarylRodrigo/DarylRodrigo.github.io | import React from 'react';
import pic4 from '../images/pic04.jpg';
import Layout from '../components/common/layout';
import Footer from '../components/common/Footer';
import Header from '../components/common/Header';
const SecondPage = () => (
<Layout>
<Header />
<div id="wrapper">
<section id="mai... |
src/components/Toggle.js | nikgraf/belle | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { injectStyles, removeStyle } from '../utils/inject-style';
import { omit, has, last, first, uniqueId } from '../utils/helpers';
import style from '../style/toggle';
import config from '../config/toggl... |
js/src/components/Controls/ColorPicker/index.js | understory-dev/react-draft-wysiwyg | /* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
toggleCustomInlineStyle,
getSelectionCustomInlineStyle,
} from 'draftjs-utils';
import LayoutComponent from './Component';
class ColorPicker extends Component {
static propTypes = {
onChange: PropTypes.func.... |
src/index.js | LightningVII/CSS3-Transform-Effect-Demo | import React from 'react'
import ReactDOM from 'react-dom'
import Main from './components/Main'
import { JackContext } from './Context'
import 'ant-design-pro/dist/ant-design-pro.css'
import 'antd/dist/antd.css'
class Provider extends React.Component {
constructor () {
super()
this.state = {
title: '监控统... |
pootle/static/js/auth/components/RequestPasswordResetProgress.js | iafan/zing | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { PureRenderMixin } from... |
src/Pagination.js | bbc/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import PaginationButton from './PaginationButton';
import elementType from 'react-prop-types/lib/elementType';
import SafeAnchor from './SafeAnchor';
const Pagination = React.createClass({
mixins: [Bootstra... |
client/src/pages/WechatRedirect.js | wujichao/wencheng | import React from 'react'
import Ajax from '../util/ajax';
import Page from '../component/page';
import auth from '../util/auth.js';
import { withRouter } from 'react-router'
import getQueryParameter from '../util/getQueryParameter';
class WechatRedirect extends React.Component {
componentDidMount() {
var ... |
startReact/src/components/start/StartPage.js | filinils/FrontEndSeries | import React from 'react';
class StartPage extends React.Component {
render(){
return(
<div className="layout-content">
Hello from start page!
</div>
);
}
}
export default StartPage; |
docs/src/examples/collections/Grid/ResponsiveVariations/GridExampleReversedComputer.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Grid } from 'semantic-ui-react'
const GridExampleReversedComputer = () => (
<Grid reversed='computer' columns='equal'>
<Grid.Row>
<Grid.Column>Computer A Fourth</Grid.Column>
<Grid.Column>Computer A Third</Grid.Column>
<Grid.Column>Computer A Second</Grid.Colu... |
src/components/status-tag.js | openregister/specification | import React from 'react';
import PropTypes from 'prop-types';
import { css } from 'emotion';
const wipStyle = css`
background-color: tomato;
color: ivory;
font-variant: small-caps;
line-height: 1.1;
padding: 0 2px;
font-size: 12px;
border-bottom: none;
`;
const expStyle = css`
background-color: deep... |
src/CheckboxGroup/index.js | narqo/react-islands | import React from 'react';
import Component from '../Component';
class CheckboxGroup extends Component {
constructor(props) {
super(props);
this.onChildCheck = this.onChildCheck.bind(this);
}
render() {
const { theme, size, type, name, disabled, value } = this.props;
con... |
packages/react-dom/src/test-utils/ReactTestUtils.js | silvestrijonathan/react | /**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import {findCurrentFiberUsingSlowPath} from 'shared/ReactFiberTreeReflectio... |
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js | fanhc019/react-router | import React from 'react';
class Announcements extends React.Component {
render () {
return (
<div>
<h3>Announcements</h3>
{this.props.children || <p>Choose an announcement from the sidebar.</p>}
</div>
);
}
}
export default Announcements;
|
frontend/js/components/molecules/IconButton.js | ttavenner/okcandidate-platform | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Icon from './../atoms/Icon';
class IconButton extends Component {
render() {
return (
<button
onClick={this.props.onClick}
className={`icon-button ${this.props.square ? 'square'... |
react/gameday2/components/embeds/EmbedTwitch.js | verycumbersome/the-blue-alliance | import React from 'react'
import { webcastPropType } from '../../utils/webcastUtils'
const EmbedTwitch = (props) => {
const channel = props.webcast.channel
const iframeSrc = `https://player.twitch.tv/?channel=${channel}`
return (
<iframe
src={iframeSrc}
frameBorder="0"
scrolling="no"
... |
apps/shared/form/LinkInput.js | AusDTO/dto-digitalmarketplace-frontend | /* eslint-disable react/jsx-no-bind */
import React from 'react'
import PropTypes from 'prop-types'
import times from 'lodash/times'
import Textfield from './Textfield'
import './scss/LinkInput.scss'
import { validLink } from '../../validators'
class LinkInput extends React.Component {
constructor(props) {
supe... |
src/Router.js | thesyllable/wom2 | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
src/components/nodes/NodeList.js | ahonn/v2exRN | import React, { Component } from 'react';
import {
Text,
View,
ListView,
StyleSheet
} from 'react-native';
class NodeList extends Component {
constructor(props) {
super(props);
let ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
this.state = {
ds: ds,
};
}
co... |
js/JsPractice.js | zcs0843021123/Ranger | /**
* Created by zhangchunsheng on 17/4/24.
*/
import React, { Component } from 'react';
import { View, Text, Platform, InteractionManager, NativeModules } from 'react-native';
function alertObj(obj) {
alert(JSON.stringify(obj));
}
export default class JsPractice extends Component {
constructor(props) {
... |
src/components/chatrooms/chatroomsList/ChatroomForm.js | AleksandrRogachev94/chat-vote-go-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { addChatroom } from '../../../actions/chatroomActions'
import PrimaryButton from '../../common/PrimaryButton'
class ChatroomForm extends React.Component {
constructor(props) {
super(props)
this.state =... |
docs/src/pages/components/tabs/VerticalTabs.js | lgollut/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/core/styles';
import Tabs from '@material-ui/core/Tabs';
import Tab from '@material-ui/core/Tab';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
function TabPanel(pro... |
src/ProgressBar.story.js | prometheusresearch/react-ui | /**
* @flow
*/
import React from 'react';
import {storiesOf} from '@kadira/storybook';
import ProgressBar from './ProgressBar';
storiesOf('<ProgressBar />', module)
.add('0%', () => <ProgressBar />)
.add('33%', () => <ProgressBar progress={0.33} />)
.add('66%', () => <ProgressBar progress={0.66} />)
.add('1... |
docs/src/components/Surface.js | tannerlinsley/react-move | // @flow weak
import React from 'react'
import PropTypes from 'prop-types'
export default function Surface(props) {
const { className, view, trbl, style, children, ...other } = props
const paddingBottom = `${Math.round((view[1] / view[0]) * 100)}%`
// uses bottom-padding hack. See https://css-tricks.com/scale-... |
frontend/src/components/settings/index.js | Kilte/cindy | import React from 'react';
import {DragDropContext} from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import Category from './category';
import CategoryCreate from './category-create';
const Settings = ({data}) => <div>
<CategoryCreate />
{data.map(item => <Category key={item.get('id')} da... |
src/pay/Pay.js | tsengkasing/LottoStar | /**
* Created by Think on 2017/5/20.
*/
import React from 'react';
import { Redirect } from 'react-router-dom';
import {
Step,
Stepper,
StepLabel,
} from 'material-ui/Stepper';
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn,
TableFooter
} fr... |
app/containers/BuildingPage/index.js | medevelopment/UMA | import React from 'react';
import ReactDOM from 'react-dom';
import * as toastify from '../../functions/Toastify';
import axios from 'axios';
import { propertySections } from '../../functions/propertiesFuncs';
import Helmet from 'react-helmet';
import TextField from 'material-ui/TextField';
import Units from '../../c... |
FPL.DraftLeague.APP/src/client.js | olehhe/fpl-draft-league | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
stories/TumblrPostButton.js | uraway/react-social-sharebuttons | import React from 'react';
import { select } from '@storybook/addon-knobs';
import { TumblrPostButton } from '../dist/index.es.js'
export default {
title: 'TumblrPostButton',
};
const colorOptions = {
blue: 'blue',
black: 'black',
white: 'white',
};
const notesOptions = {
none: 'none',
top: 'top',
righ... |
node_modules/antd/es/date-picker/Calendar.js | prodigalyijun/demo-by-antd | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import CalendarLo... |
src/modules/store/createTransformPropsContainer.js | scrollback/pure | /* @flow */
import React, { Component } from 'react';
type TransformFunction = (props: any) => any;
export default function(transformFunction: TransformFunction) {
return function(ChildComponent: ReactClass<any>): ReactClass<any> {
class TransformPropsContainer extends Component<void, any, void> {
render() {
... |
src/components/Main.js | bjacobel/rak | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { data as dataStyle, logo } from '../stylesheets/main.css';
import { link } from '../stylesheets/link.css';
import { getDataAsync } from '../actions/data';
const mapStateToProps = state => ... |
example/src/test_buttonlist.js | flywingdevelopers/rn-naive | /**
* Buttonlist Test
* Kevin Lee 20 Aug 2017
**/
import React from 'react'
import { Device, Screen, Block, Bar, Text, CheckBox, ButtonList } from 'rn-naive'
export default class App extends React.Component {
constructor(props) {
super(props)
this.state = {Message:''}
}
iconclickcash() {
this.setS... |
es6/Form/FormItem.js | yurizhang/ishow | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
app/src/pages/GeoSpatialPage/index.js | JaySmartwave/palace-bot-sw | import React from 'react';
import cssModules from 'react-css-modules';
import styles from './index.module.scss';
import { GeospatialViewContainer } from 'containers';
const GeoSpatialPage = () => (
<div className={styles.container}>
<GeospatialViewContainer />
</div>
);
export default cssModules(GeoSpatialPag... |
src/svg-icons/places/pool.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesPool = (props) => (
<SvgIcon {...props}>
<path d="M22 21c-1.11 0-1.73-.37-2.18-.64-.37-.22-.6-.36-1.15-.36-.56 0-.78.13-1.15.36-.46.27-1.07.64-2.18.64s-1.73-.37-2.18-.64c-.37-.22-.6-.36-1.15-.36-.56 0-.78... |
app/javascript/mastodon/features/notifications/components/clear_column_button.js | unarist/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
export default class ClearColumnButton extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return (
<button className='text-btn column-he... |
react/features/overlay/components/native/PageReloadOverlay.js | bgrozev/jitsi-meet | // @flow
import React from 'react';
import { Text } from 'react-native';
import { appNavigate, reloadNow } from '../../../app';
import { ColorSchemeRegistry } from '../../../base/color-scheme';
import { ConfirmDialog } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import { connect } fro... |
client/index.js | Jchinonso/PostIt | import React from 'react';
import { render } from 'react-dom';
import jwtDecode from 'jwt-decode';
import { browserHistory, Router } from 'react-router';
import { Provider } from 'react-redux';
import 'jquery/dist/jquery';
import 'materialize-css/dist/css/materialize.css';
import 'materialize-css/dist/js/materialize';
... |
src/app_components/spinner_replacer.js | Dewire/dehub-react-native |
import PropTypes from 'prop-types';
import React from 'react';
import { View, ActivityIndicator } from 'react-native';
const SpinnerReplacer = ({ isSpinning, children }) => (
(isSpinning ? (
<ActivityIndicator />
) : (
<View>
{children}
</View>
))
);
SpinnerReplacer.propTypes = {
isSpinning... |
src/svg-icons/hardware/security.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSecurity = (props) => (
<SvgIcon {...props}>
<path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/>
</SvgIcon>
);
Hardwa... |
lesson-4/src/components/Note.js | msd-code-academy/lessons | import React from 'react'
import EditNoteModal from './EditNoteModal'
import '../styles/Note.css'
class Note extends React.Component {
state = {
showMore: false,
}
handleShowMore = () => {
this.setState({
showMore: !this.state.showMore,
})
}
render() {
const { noteId, title, text, re... |
app/containers/ProcessViewPage/components/Cfc/index.js | BrewPi/brewpi-ui | import React from 'react';
import styles from './styles.css';
import { Liquids } from '../Liquids';
import { FlowArrows, FlowArrowsCfc, pickLiquid } from '../Flows';
const SvgCfc = require('./svg/tubes_cfc.svg?tag=g');
const SvgLiquidCfcTop = require('./svg/liquid_cfc_top.svg?tag=g');
const SvgLiquidCfcBottom = requir... |
src/index.js | kinseyost/immutable-redux | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, Route, browserHistory, IndexRoute } from 'react-router';
import store from './store';
import App from './App';
import Home from './components/SignUpForm.js';
import Users from 'components/ViewUsers.js';... |
src/components/KeystoreUploader/Actions.js | ens-bid/ens-bid-dapp | import React from 'react';
import Button from 'material-ui/Button';
const ReUploadButton = (props) => {
return props.dragDisabled ? (
<Button
raised
className="KeystoreUploader-button-reupload"
onClick={props.enableDrag}>
Reupload
</Button>
): null;
};
const UnlockButton = (prop... |
project/react-ant/src/containers/AssetMgmt/List/form.js | FFF-team/generator-earth | import moment from 'moment'
import React from 'react'
import { Input, DatePicker, Button, Form, Select } from 'antd'
import BaseContainer from 'ROOT_SOURCE/base/BaseContainer'
import { mapMoment } from 'ROOT_SOURCE/utils/fieldFormatter'
import DateRangePicker from 'ROOT_SOURCE/components/DateRangePicker'
const { Mo... |
src/js/routes.js | akornatskyy/sample-blog-react | import React from 'react';
import Reflux from 'reflux';
import {Switch, Route} from 'react-router-dom';
import {Container} from 'react-bootstrap';
import SignIn from './membership/components/signin';
import SignUp from './membership/components/signup';
import AuthInfo from './membership/components/auth-info';
import ... |
src/components/Code/index.js | tannerlinsley/react-story | import React from 'react'
import Markdown from 'react-smackdown'
import syntax from '../../utils/syntax'
export default ({ source }) => {
return <Markdown source={source} syntax={syntax} />
}
|
src/components/elements/HiddenTextfield.js | dynamicform/dynamicform-react-client | import React from 'react';
import {connect} from 'react-redux';
import {Form, Input} from 'antd';
import {initFormData,initDynamicFormData,updateFormData,updateDynamicFormData} from '../../actions/formAction';
import _ from 'lodash';
import Base from './Base';
import {MapStateToProps} from '../../utility/common';
cons... |
client/src/components/dashboard/Community/CertLinks.js | no-stack-dub-sack/alumni-network | import { Icon } from './SocialLinks';
import propTypes from 'prop-types';
import React from 'react';
const FCC_URL = "https://freecodecamp.org/";
const CertLinks = ({ handleClick, fccCerts, username }) => {
return(
<div className="right floated">
<span>
{ fccCerts.Front_End &&
<a
... |
components/Message/index.js | praida/admin | import React from 'react'
import PropTypes from 'prop-types'
import './styles.scss'
const Message = (props) => {
const classes = props.className.split(' ')
classes.push('message')
if (props.level) {
classes.push(`message-level-${props.level}`)
}
return (
<div className={classes.join(' ')}>
<bu... |
client/src/nav/index.js | AlTavares/babos.ios-server | import React from 'react'
import { Link } from 'react-router'
import routes from '../routes'
import User from '../services/user'
class Nav extends React.Component {
constructor(props) {
super(props)
this.handleLogout = this.handleLogout.bind(this);
this.state = { userLogged: User.isLogged... |
ui/src/main/js/components/JobHistory.js | crashlytics/aurora | import React from 'react';
import PanelGroup from 'components/Layout';
import { Tab } from 'components/Tabs';
import TaskList from 'components/TaskList';
import { sort } from 'utils/Common';
import { getLastEventTime, isActive } from 'utils/Task';
export default function ({ tasks }) {
const terminalTasks = sort(ta... |
src/components/CheckboxToggle/CheckboxToggle.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import { FormElement } from '../Form';
const hiddenWhen = hidden => ({ 'slds-assistive-text': hidden });
const CheckboxToggle = (props) => {
const {
checked,
disabled,
hideStatusLabels,
hideLabel,
id,
... |
src/Components/FooterFormButtons.js | TaylorRayHoward/ReactReduxMessageBoard | import React from 'react';
import { browserHistory } from 'react-router-dom';
const FooterButtons = (props) => {
const { submitLabel, otherLabel, goToLink } = props;
return (
<div className="d-flex justify-content-between">
<button type="submit" className="btn btn-primary">{submitLabel || 'Submit'}</butto... |
client/src/pages/NotFound/NotFound.js | patferguson/solitaire-react | import React, { Component } from 'react';
class NotFound extends Component {
render() {
return (
<div>
<p>404 - Page not found.</p>
</div>
);
}
}
export default NotFound;
|
src/svg-icons/hardware/laptop.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareLaptop = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/>
</SvgIcon>
);
HardwareLaptop = pure(Hardwa... |
server/sonar-web/src/main/js/components/ui/Rating.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.