path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
Realization/frontend/czechidm-example/src/content/example-product/ExampleProductRoute.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
//
import { Basic, Advanced } from 'czechidm-core';
import { ExampleProductManager } from '../../redux';
const manager = new ExampleProductManager();
/**
* ExampleProduct detail with tabs
*
* @author Radek Tomiška... |
app/containers/ColioApp.js | oeb25/colio | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'redux/react';
import { Snackbar } from 'material-ui';
import RoomContainer from '../containers/RoomContainer';
import LandingContainer from '../containers/LandingContainer';
import * as RoomActions from '../actions/RoomActio... |
app/javascript/mastodon/main.js | TheInventrix/mastodon | import * as registerPushNotifications from './actions/push_notifications';
import { default as Mastodon, store } from './containers/mastodon';
import React from 'react';
import ReactDOM from 'react-dom';
import ready from './ready';
const perf = require('./performance');
function main() {
perf.start('main()');
i... |
src/charts/line/Line.js | jchen-eb/britecharts-react | import React from 'react';
import PropTypes from 'prop-types';
import line from './lineChart';
import {loadingContainerWrapper} from '../loading/LoadingContainer';
class Line extends React.Component {
static propTypes = {
/**
* Internally used, do not overwrite.
*/
data: PropType... |
src/components/auth/ProfilePreview.js | zebras-filming-videos/streamr-web | import React from 'react'
import { Link } from 'react-router-dom'
import preventDefault from '../../utils/preventDefault'
export default ({
user,
onLogOut
}) => (
<li className='profile-preview'>
<Link to={`/profile/${user.id}`} className='profile-link'>{user.name}</Link>
<Link to='/me'>account</Link>
... |
packages/react-ui-components/src/Tree/index.story.js | dimaip/neos-ui | import React from 'react';
import {storiesOf, action} from '@kadira/storybook';
import {StoryWrapper} from './../_lib/storyUtils.js';
import Tree from './index.js';
storiesOf('Tree', module)
.addWithInfo(
'default',
() => (
<StoryWrapper>
<Tree>
<Tree... |
MobileApp/node_modules/react-native-elements/example/src/views/buttons_home.js | VowelWeb/CoinTradePros.com | import Expo from 'expo';
import React, { Component } from 'react';
import { View, ScrollView, StyleSheet, Platform } from 'react-native';
import { Text, Button, Icon, SocialIcon, Card } from 'react-native-elements';
import colors from 'HSColors';
import socialColors from 'HSSocialColors';
import fonts from 'HSFonts';... |
src/Add.js | SaintEmbers/awesomejar | import React from 'react'
import ReactDom from 'react-dom'
require('./styles/main.css')
import { Router, Route, Link, browserHistory, IndexRoute } from 'react-router'
require('./styles/main.css')
var Add = React.createClass({
getInitialState(){
console.log('yooo in app')
return{
addToJar: false
}... |
src/app/layouts/mainLayout.js | kristjanpikk/things-to-do | import React from 'react';
import Header from '~shared/header';
import Footer from '~shared/footer';
// Create MainLayout component
export default class MainLayout extends React.Component{
constructor(props) {
super(props);
}
render() {
return(
<div className="container">
<Header />
<main className=... |
src/components/pageBreak/PageBreak.js | djErock/Telemed-Website | import React, { Component } from 'react';
import './pageBreak.css';
const PageBreak = (props) => (
<article className="pageBreak">
<div className="container">
<h2>{props.heading}</h2>
</div>
</article>
)
export default PageBreak; |
src/CarouselItem.js | natlownes/react-bootstrap | import React from 'react';
import classNames 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,
anima... |
docs/src/app/components/pages/components/RefreshIndicator/ExampleReady.js | mtsandeep/material-ui | import React from 'react';
import RefreshIndicator from 'material-ui/RefreshIndicator';
const style = {
container: {
position: 'relative',
},
refresh: {
display: 'inline-block',
position: 'relative',
},
};
const RefreshIndicatorExampleSimple = () => (
<div style={style.container}>
<RefreshIn... |
code-samples/js/ARSample/HelloWorldSceneAR.js | viromedia/viro | 'use strict';
import React, { Component } from 'react';
import {StyleSheet} from 'react-native';
import {
ViroARScene,
ViroText,
ViroMaterials,
ViroBox,
Viro3DObject,
ViroAmbientLight,
ViroSpotLight,
ViroARPlane,
ViroARPlaneSelector,
ViroQuad,
ViroNode,
ViroAnimations,
ViroConstants
} from ... |
app/containers/home.js | mersocarlin/react-webpack-template | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
class Home extends Component {
componentDidMount () {
this.test();
}
request () {
return new Promise((resolve) => {
setTimeout(() => {
resolve('123');
}, 5 * 1000);
... |
submissions/arqex/src/boot.js | enkidevs/flux-challenge | import React from 'react';
import AppContainer from './components/AppContainer';
import State from './State';
// Subscribe reactions
import './Reactions';
// Start listening to planet updates
var ws = new WebSocket('ws://localhost:4000');
ws.onmessage = function (event) {
State.trigger('planet:update', JSON.parse(ev... |
packages/react-error-overlay/src/components/NavigationBar.js | tharakawj/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React from 'react';
import { red, redTransparent } from '../styles';
const navigationBarStyle = {
marginBottom: '0... |
docs/src/examples/elements/Flag/Types/FlagExampleFlag.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Flag, Segment } from 'semantic-ui-react'
const FlagExampleFlag = () => (
<Segment>
<Flag name='ae' />
<Flag name='france' />
<Flag name='myanmar' />
</Segment>
)
export default FlagExampleFlag
|
node_modules/react-navigation/src/views/Drawer/DrawerNavigatorItems.js | jiangqizheng/ReactNative-BookProject | /* @flow */
import React from 'react';
import { View, Text, Platform, StyleSheet } from 'react-native';
import TouchableItem from '../TouchableItem';
import type {
NavigationScreenProp,
NavigationState,
NavigationAction,
NavigationRoute,
ViewStyleProp,
TextStyleProp,
} from '../../TypeDefinition';
import... |
src/parser/priest/shadow/modules/spells/VoidformAverageStacks.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import { formatNumber } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { TooltipElement } from 'common/Tooltip';
import StatisticBox from 'inte... |
node_modules/react-bootstrap/es/Badge.js | C0deSamurai/muzjiks | 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 ... |
node_modules/react-native-mock/src/Libraries/NavigationExperimental/NavigationCard.js | niukui/gitpro | import React from 'react';
class CardStackPanResponder {
}
class PagerPanResponder {
}
class NavigationCard extends React.Component {
static CardStackPanResponder = CardStackPanResponder;
static CardStackStyleInterpolator = {
forHorizontal: () => ({}),
forVertical: () => ({}),
};
static PagerPanRespo... |
react/dashboard_example/src/vendor/recharts/demo/component/Curve.js | webmaster444/webmaster444.github.io | import React from 'react';
import { Surface, Curve, Layer } from 'recharts';
import { curveBundle, curveCardinal, curveCardinalClosed, curveCardinalOpen,
curveCatmullRomOpen } from 'd3-shape';
import { scaleOrdinal, schemeCategory10 } from 'd3-scale';
export default React.createClass({
render () {
const point... |
docs/src/app/components/pages/components/IconButton/Page.js | nathanmarks/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 iconButtonCode from '!raw!material-ui/IconButton/IconButton';
import icon... |
es/components/sidebar/panel-element-editor/panel-element-editor.js | cvdlab/react-planner | import React from 'react';
import PropTypes from 'prop-types';
import Panel from '../panel';
import { Seq } from 'immutable';
import { MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON, MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_D... |
samples/apollo-client/src/QueryRunner.js | TOTBWF/FSharp.Data.GraphQL | import React from 'react';
import ApolloClient from 'apollo-client';
import { InMemoryCache } from 'apollo-cache-inmemory';
import { SubscriptionClient } from 'subscriptions-transport-ws';
import gql from 'graphql-tag';
const deferQuery = `# This is a sample query with defer directive.
# The GraphQL Giraffe server is ... |
client/acp/src/view/widget/api-tokens-list.js | NicolasSiver/nodebb-plugin-ns-awards | import PropTypes from 'prop-types';
import React from 'react';
import {connect} from 'react-redux';
import {createApiTokenWithPrompt, deleteApiToken} from '../../action/actions';
import RoundButton from '../display/round-button';
import {getApiTokens} from '../../model/selector/selectors';
class ApiTokensList extends... |
src/svg-icons/communication/stay-primary-portrait.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayPrimaryPortrait = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
</SvgIcon>
);... |
src/components/withViewport.js | dadish-etudes/react-todo | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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, { Component } from 'react';
import EventEmit... |
docs/navigation/menu/index.js | aruberto/react-foundation-components | import React from 'react';
import { Menu, MenuItem } from '../../../src/menu';
import {
Menu as FlexMenu,
MenuItem as FlexMenuItem,
} from '../../../lib/menu-flex'; // eslint-disable-line import/no-unresolved
const iconStyle = {
fontStyle: 'normal',
};
const MenuPage = () => (
<div>
<Menu>
<MenuIte... |
src/routes/UIElement/dataTable/index.js | shaohuawang2015/goldbeans-admin | import React from 'react'
import { DataTable } from 'components'
import { Table, Row, Col, Card, Select } from 'antd'
class DataTablePage extends React.Component {
constructor (props) {
super(props)
this.state = { filterCase: {
gender: '',
} }
}
handleSelectChange = (gender) => {
this.setS... |
spec/components/card.js | rubenmoya/react-toolbox | /* eslint-disable react/prop-types */
import React from 'react';
import Button, { IconButton } from '../../components/button';
import Card, { CardActions, CardMedia, CardText, CardTitle } from '../../components/card';
import style from '../style';
const dummyText = 'Lorem Ipsum is simply dummy text of the printing and... |
src/Tooltip.js | HPate-Riptide/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import isRequiredForA11y from 'react-prop-types/lib/isRequiredForA11y';
import { bsClass, getClassSet, prefix, splitBsProps }
from './utils/bootstrapUtils';
const propTypes = {
/**
* An html id attribute, necessary for accessibility
* @type {st... |
setup/src/universal/services/countries.js | ch-apptitude/goomi | import React from 'react';
import { defineMessages, FormattedMessage } from 'react-intl';
const messages = defineMessages({
AF: {
id: 'app.countries.AF',
defaultMessage: 'Afghanistan',
},
AX: {
id: 'app.countries.AX',
defaultMessage: 'Åland Islands',
},
AL: {
id: 'app.countries.AL',
d... |
data-viz/react/game-of-life/src/App.js | mkermani144/freecodecamp-projects | import React, { Component } from 'react';
import BoardContainer from './BoardContainer';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import IconButton from 'material-ui/IconButton';
import RaisedButton from 'material-ui/RaisedButton';
import AvPause from 'material-ui/svg-icons/av/pause';
import ... |
src/common/PLOverlayLoader.js | PowerlineApp/powerline-rn | /**
* @providesModule PLOverlayLoader
*/
import React, { Component } from 'react';
import {
Modal,
ActivityIndicator,
View,
Text,
StyleSheet
} from 'react-native';
import PLLoader from './PLLoader';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
// padding:... |
form/StringField.js | ExtPoint/yii2-frontend | import React from 'react';
import PropTypes from 'prop-types';
import {view} from 'components';
export default class StringField extends React.Component {
static propTypes = {
metaItem: PropTypes.object.isRequired,
input: PropTypes.shape({
name: PropTypes.string,
value: Pr... |
src/components/DeveloperMenu.js | yogakurniawan/phoney-mobile | import React from 'react';
import {View} from 'react-native';
// For tests
const DeveloperMenu = () => <View/>;
export default DeveloperMenu;
|
pages/api/step-label.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './step-label.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
app/containers/ListProducts.js | ikhsanalatsary/react-mini-shop | import React from 'react';
import Loading from 'react-loading-animation';
import { find } from 'lodash/collection';
import { getProducts, getCart, setProducts, setCart } from '../api/localstorage.js';
import { normalString } from '../helpers/slug.js';
import Products from '../components/Products.js';
import ProductDeta... |
client/src/index.js | bmtwebdevs/sodalicious | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
import '../semantic/dist/semantic.min.css';
import './components/drink/style.css';
import Admin from './components/admin';
import DrinksAdmin from './components/admin/drinksAdmin';
import PumpsAdmin f... |
src/ButtonToolbar.js | tannewt/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ButtonToolbar = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'button-toolbar'
};
},
render() {
let classes = this.getBsClassSet();
... |
developers.diem.com/src/theme/DocItem/index.js | libra/libra | import React from 'react';
import Head from '@docusaurus/Head';
import isInternalUrl from '@docusaurus/isInternalUrl';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import useBaseUrl from '@docusaurus/useBaseUrl';
import useTOCHighlight from '@theme/hooks/useTOCHighlight';
import { OVERFLOW_CON... |
packages/material-ui-icons/src/Streetview.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Streetview = props =>
<SvgIcon {...props}>
<path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z" /><circle cx="18" cy="6" r="5" /><path d... |
ui/components/Quote.js | nlhuykhang/apollo-react-quotes-client | import React from 'react';
import { Card, CardActions, CardHeader, CardText } from 'material-ui/Card';
import IconButton from 'material-ui/IconButton';
import ContentSave from 'material-ui/svg-icons/content/save';
import ActionDelete from 'material-ui/svg-icons/action/delete';
export default class Quote extends React... |
app/main.js | neekey/demo-react-master-detail-view | import React from 'react';
import './index.scss';
export default function Main(props) {
return (<div>
<div className="content">
{props.children}
</div>
</div>);
}
Main.propTypes = {
children: React.PropTypes.any,
};
|
server/app.js | javion25/chiji | import Koa from 'koa';
// import koaBetterRouter from 'koa-better-router';
import React from 'react';
import {renderToString, renderToStaticMarkup} from 'react-dom/server';
// import Home from '../client/containers/Home/index'
const app = new Koa();
// const router = koaBetterRouter().loadMethods();
// function rend... |
frontend/js/index.js | devilish1/nsa-contacts | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import Root from './root'
import config from './config'
window.config = config
render(<Root />, document.getElementById('root'))
|
packages/node_modules/@webex/react-component-join-call-button/src/index.js | ciscospark/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Button from '@webex/react-component-button';
import Timer from '@webex/react-component-timer';
import styles from './styles.css';
function JoinCallButton({callStartTime, onJoinClick}) {
return (
<div clas... |
src/components/Playback.js | pyreta/MIDInterceptor-Electron | import React from 'react';
class Playback extends React.Component {
shouldComponentUpdate() {
const notesToPlay = this.props.state.recordedEvents[`${this.props.state.breathcontrollercoarse}.${this.props.state.programchange}.${this.props.state.channelaftertouch}`];
(notesToPlay || []).forEach(e => this.props... |
screens/Settings.js | CyrusRoshan/TenOutOfTennis | import React from 'react';
import {
StyleSheet,
Text,
View,
Button,
Image,
Dimensions,
} from 'react-native';
import {
StackNavigator,
} from 'react-navigation';
class SettingsScreen extends React.Component {
static navigationOptions = {
title: 'Settings'
};
render() {
return (
<Vi... |
pages/people/ccgalindog.js | pcm-ca/pcm-ca.github.io | import React from 'react'
import { Link } from 'react-router'
import Helmet from 'react-helmet'
import { config } from 'config'
import { prefixLink } from 'gatsby-helpers'
import bib from './bib'
import info from './info'
import PersonPage from '../../components/PersonPage'
export default class Index extends React.Co... |
js/index.js | HipsterBrown/resource-finder-firefox | import React from 'react';
import fetch from 'whatwg-fetch';
import FormClass from './form';
import ResultsListClass from './results-list';
let D = React.DOM;
let Form = React.createFactory(FormClass);
let ResultsList = React.createFactory(ResultsListClass);
let urls = {
npm: "http://npm-registry-cors-proxy.herokuap... |
example/basic-with-router/template.js | iansinnott/react-static-webpack-plugin | import React from 'react';
const Html = (props) => (
<html lang='en'>
<head>
<title>{props.title}</title>
</head>
<body>
<div id='root' dangerouslySetInnerHTML={{ __html: props.body }} />
<script src='/app.js' />
</body>
</html>
);
export default Html;
|
src/components/Landing/CurrencyPanel.js | franciskim722/crypy | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class CurrencyPanel extends Component {
constructor(props, context) {
super(props, context);
this.state = {
};
}
render(){
console.log(this.props);
return (
<div>
Currency Panel
... |
src/@ui/Onboarding/index.js | NewSpring/Apollos | import React from 'react';
import { StyleSheet } from 'react-native';
import PropTypes from 'prop-types';
import { compose, pure, setPropTypes } from 'recompose';
import AppIntroSlider from 'react-native-app-intro-slider';
import Chip from '@ui/Chip';
const enhance = compose(pure, setPropTypes({ closeModal: PropTypes.... |
hub-ui/src/components/forms/FormInput.js | lchase/hub | import React from 'react';
export default class FormInput extends React.Component {
render() {
console.log("FormInput props: " + this.props);
var containerClassName = "form-group has-feedback";
if (this.props.meta.touched && this.props.meta.error) {
containerClassName += " has-error";
}
r... |
client/src/index.js | vygandas/react-redux-nodejs-mongodb-auth-skeleton | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import reduxThunk from 'redux-thunk';
import { AUTH_USER } from './actions/types';
import App from ... |
src/applications/disability-benefits/all-claims/pages/secondaryIncidentDescription.js | department-of-veterans-affairs/vets-website | import React from 'react';
import fullSchema from 'vets-json-schema/dist/21-526EZ-ALLCLAIMS-schema.json';
import { ptsd781aNameTitle } from '../content/ptsdClassification';
const incidentDescriptionInstructions = (
<h3 className="vads-u-font-size--h5">Event description</h3>
);
const { description } = fullSchema.de... |
src/index.js | michaelfriedman/capstone-g40 | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('root'),
);
|
src/components/ShopHeader.js | qandobooking/booking-frontend | import React, { Component } from 'react';
import classNames from 'classnames';
class ShopHeader extends Component {
render() {
const { title, caption, full, imageUrl } = this.props;
const headerClass = classNames('shop-header', { 'shop-header-full': full });
return (
<div className={headerClass} ... |
packages/wix-style-react/src/MessageBox/docs/DestructiveAlertExamples/Secondary.js | wix/wix-style-react | /* eslint-disable react/prop-types */
import React from 'react';
import { MessageBoxFunctionalLayout } from 'wix-style-react';
export default () => (
<MessageBoxFunctionalLayout
title="Delete Files?"
confirmText="Main"
cancelText="Secondary"
theme="red"
dataHook="destructive-alert-secondary"
>
... |
whatIsAround/src/index.js | liang121/what-s-around | import React, { Component } from 'react';
import { Tabs, Root } from './config/router';
import {
StyleSheet,
View
} from 'react-native'
export default class App extends Component {
render() {
return <Root />
}
}
|
examples/simple/client.js | fattenap/react-async | import Promise from 'bluebird';
import React from 'react';
import axios from 'axios';
import ReactMount from 'react/lib/ReactMount';
import {Async} from '../../src';
import Rx from 'rx';
ReactMount.allowFullPageRender = true;
function get(url) {
return {
id: url,
keepData: true,
start() {
return R... |
src/admin/client/modules/apps/serviceDetails/components/description.js | cezerin/cezerin | import React from 'react';
import { Link } from 'react-router-dom';
import messages from 'lib/text';
import style from './style.css';
import Paper from 'material-ui/Paper';
import RaisedButton from 'material-ui/RaisedButton';
import Divider from 'material-ui/Divider';
import FontIcon from 'material-ui/FontIcon';
con... |
client/components/Carousel/Slides.js | Art404/platform404 | /*eslint-disable*/
import React from 'react';
export default React.createClass({
displayName: 'Slides',
propTypes: {
onMouseDown: React.PropTypes.func,
slides: React.PropTypes.any,
style: React.PropTypes.object
},
render() {
const {style, slides, onMouseDown} = this.props
return (
... |
src/parser/warrior/arms/modules/talents/ImpendingVictory.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatThousands } from 'common/format';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import SpellLink from 'common/SpellLink';
import StatisticListBoxItem from ... |
app/components/global/AccountLink.js | soosgit/vessel | // @flow
import React, { Component } from 'react';
const { shell } = require('electron');
export default class AccountLink extends Component {
handleLink = () => {
const { name } = this.props;
shell.openExternal(`https://steemit.com/@${name}`);
}
render() {
const { name, content } = this.props;
... |
src/components/IndexPage.js | pekkis/kino-kobros | import React from 'react';
import Header from './Header';
import Footer from './Footer';
class IndexPage extends React.Component {
constructor(props, context) {
super(props, context);
this.onSubmit = this.onSubmit.bind(this);
}
onSubmit(e) {
e.preventDefault();
const { pus... |
SQL/client/src/components/dumb/List.js | thebillkidy/MERGE-Stack | import React from 'react';
import ListView from './ListView';
import GridView from './GridView';
export default class List extends React.Component {
render() {
if (this.props.type == 'grid') {
return (
<div className="gutter-free clearfix">
<GridView data={this.props.data} />
</di... |
mlflow/server/js/src/experiment-tracking/components/modals/RestoreRunModal.js | mlflow/mlflow | import React, { Component } from 'react';
import { ConfirmModal } from './ConfirmModal';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { openErrorModal, restoreRunApi } from '../../actions';
import Utils from '../../../common/utils/Utils';
export class RestoreRunModalImpl extends Co... |
src/library/modal/index.js | zdizzle6717/react-flux-arc | 'use strict';
import React from 'react';
import classNames from 'classnames';
import Animation from 'react-addons-css-transition-group';
export default class Modal extends React.Component {
constructor(props, context) {
super(props, context);
}
render() {
let containerClasses = classNames({
'modal-conta... |
seeds/node_modules/alt/test/alt-iso-test.js | Vincent-yz/react-creater | import React from 'react'
import Alt from '../'
import AltContainer from '../AltContainer'
import AltIso from '../utils/AltIso'
import { assert } from 'chai'
const alt = new Alt()
const UserActions = alt.generateActions('receivedUser', 'failed')
const UserSource = {
fetchUser() {
return {
remote(state, i... |
examples/simple/components/App.js | joshblack/library-boilerplate | import React, { Component } from 'react';
import { add } from 'library-boilerplate';
export default class App extends Component {
render() {
return (
<p>
2 + 2 = {add(2, 2)}
</p>
);
}
}
|
component.js | Kevnz/cmd-line-tools | 'use strict';
require('babel/register');
let to = require('to-case');
let path = require('path');
let pluralize = require('pluralize');
let fs = require('fs');
let argv = require('minimist')(process.argv.slice(2));
let component = to.lower(argv.c);
let schemaFile = `${component}.json`;
let schemaPath = path.join('./mo... |
src/main/resources/public/js/pages/app-install.js | ozwillo/ozwillo-portal | import React from 'react';
import Slider from 'react-slick';
import ModalImage from '../components/modal-image';
import {
buyApplication,
fetchAppDetails,
fetchAvailableOrganizations,
fetchRateApp,
unavailableOrganizationToInstallAnApp
} from '../util/store-service';
import RatingWrapper from '../co... |
plugins/Terminal/js/components/commandinput.js | NebulousLabs/New-Sia-UI | import React from 'react'
import { commandInputHelper } from '../utils/helpers.js'
export default class CommandInput extends React.Component {
componentDidUpdate () {
// Give DOM time to register the update.
if (!this.props.showWalletPrompt && !this.props.showSeedPrompt) {
this._input.focus()
}
}... |
src/components/NumberPlayersView.js | IShin00biI/Ktulu | import React from 'react'
import {
Text,
View
} from 'react-native'
import { NextFooter } from './Buttons'
export const NumberPlayersView = ({number, onSubmit}) => {
return (
<View>
<Text>Liczba graczy</Text>
<Text>
{number}
</Text>
<NextFooter title='Zatwierdź' onPress={onSub... |
src/svg-icons/maps/local-hotel.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsLocalHotel = pu... |
src/svg-icons/action/eject.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEject = (props) => (
<SvgIcon {...props}>
<path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/>
</SvgIcon>
);
ActionEject = pure(ActionEject);
ActionEject.displayName = 'ActionEject';
ActionEject.muiName = 'Svg... |
docs/client/components/pages/Video/gettingStarted.js | koaninc/draft-js-plugins | // It is important to import the Editor which accepts plugins.
import Editor from 'draft-js-plugins-editor'; // eslint-disable-line import/no-unresolved
import createVideoPlugin from 'draft-js-video-plugin'; // eslint-disable-line import/no-unresolved
import React from 'react';
// Creates an Instance. At this step, a ... |
frontend/index.js | fdemian/Morpheus | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import storeCreator from './store/configureStore';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import createBrowserHistory from 'history/createBrowserHistory'
import AdminRoute from './PrivateRout... |
src/svg-icons/editor/insert-emoticon.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertEmoticon = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm... |
src/components/NewPostLink.js | DimaRGB/twi-cool | import React from 'react'
import { Link } from 'react-router'
export default class NewPostLink extends React.Component {
render() {
return (
<Link to='/create' className='fixed bg-white top-0 right-0 pa4 ttu dim black no-underline'>
+ New Post
</Link>
)
}
}
|
src/svg-icons/action/play-for-work.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPlayForWork = (props) => (
<SvgIcon {...props}>
<path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"/>
</SvgIcon>
);
ActionPlayForWork ... |
src/parser/druid/feral/modules/features/checklist/Module.js | sMteX/WoWAnalyzer | import React from 'react';
import BaseChecklist from 'parser/shared/modules/features/Checklist/Module';
import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import Combatants from 'parser/shared/modules/Combatants';
import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist/Preparation... |
examples/cra-react15/src/stories/welcome.stories.js | kadirahq/react-storybook | import React from 'react';
import { storiesOf, setAddon } from '@storybook/react';
import { linkTo } from '@storybook/addon-links';
import { Welcome } from '@storybook/react/demo';
// Added deprecated setAddon tests
setAddon({
aa() {
console.log('aa');
},
});
setAddon({
bb() {
console.log('bb');
},
})... |
react/src/components/Loader.js | museumary/Museumary | /*
Loading gifs that display when the application is fetching data
Loading is the fancy image
LoadingText is the literal 'Loading' text
*/
import React from 'react';
import Loading from 'static/images/Loading-cropped.gif';
import LoadingText from 'static/images/LoadingText-cropped.gif';
const Loader = ()... |
web/static/js/graphql/app.js | yasuhiro-okada-aktsk/sample_phoenix_react | import 'babel/polyfill';
import FeedList from './components/FeedList.jsx';
import AppHomeRoute from './routes/AppHomeRoute';
import React from 'react';
import ReactDOM from 'react-dom';
import Relay from 'react-relay';
Relay.injectNetworkLayer(
new Relay.DefaultNetworkLayer('/api/v1/graphql')
);
ReactDOM.render(
... |
src/svg-icons/content/remove.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentRemove = (props) => (
<SvgIcon {...props}>
<path d="M19 13H5v-2h14v2z"/>
</SvgIcon>
);
ContentRemove = pure(ContentRemove);
ContentRemove.displayName = 'ContentRemove';
ContentRemove.muiName = 'SvgIcon... |
cerberus-dashboard/src/components/SDBDescriptionField/SDBDescriptionField.js | Nike-Inc/cerberus | /*
* Copyright (c) 2020 Nike, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
packages/babel-plugin-transform-react-constant-elements/test/fixtures/constant-elements/compound-assignment/input.js | maurobringolf/babel | import React from 'react';
import Loader from 'loader';
const errorComesHere = () => <Loader className="full-height"/>,
thisWorksFine = () => <Loader className="p-y-5"/>;
|
views/Business/account/nwdRegister.js | leechuanjun/TLRNProjectTemplate |
import React, { Component } from 'react';
import {
StyleSheet,
View,
Text,
ScrollView,
TouchableOpacity,
TextInput,
AlertIOS,
NavigatorIOS,
} from 'react-native';
import ToastIOS from 'react-native-sk-toast';
import NWDUtil from '../../Common/nwdUtil';
import NWDHttpClient from '../../Service/nwdHttp... |
stories/DayPickerRangeController.js | airbnb/react-dates | import React from 'react';
import moment from 'moment';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withInfo } from '@storybook/addon-info';
import InfoPanelDecorator, { monospace } from './InfoPanelDecorator';
import isSameDay from '../src/utils/isSameDay... |
src/index.js | ramaya314/UndocuFunds | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components';
import './css/index.css';
import './css/font-awesome.min.css';
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/static/src/diagnostic/TestTypeResultForm_modules/NewBushingTestForm.js | vsilent/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import Button from 'react-bootstrap/lib/Button';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import {findDOMNode} from 'react-dom';
import {hashHistory} from 'rea... |
indico/modules/core/client/js/impersonation.js | indico/indico | // This file is part of Indico.
// Copyright (C) 2002 - 2022 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import impersonateURL from 'indico-url:auth.admin_impersonate';
import React from 'react';
import R... |
src/docs/examples/TextInputBEM/ExampleOptional.js | patchygreen/ps-react-patchygreen | import React from 'react';
import TextInputBEM from "ps-react/TextInputBEM";
/** Optional TextBox */
export default class ExampleOptional extends React.Component {
render() {
return (
<TextInputBEM
htmlId='example-optional'
label='First Name'
name='firstname'
onChange={() =>... |
demo/js/readmeDemos.js | esseb/react-aria-menubutton | // Simple ES6 Example
import React from 'react';
import ariaMenuButton from '../../src/ariaMenuButton';
const menuItemWords = ['foo', 'bar', 'baz'];
class MyMenuButton extends React.Component {
componentWillMount() {
this.amb = ariaMenuButton({
onSelection: handleSelection,
});
}
render() {
co... |
src/components/Calendar/CalendarComponent.js | viktorfa/squeezed-days | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import {Link, Element} from 'react-scroll';
import classes from './Calendar.css'
import YearButtons from "./YearButtons";
import SqueezeNumberButtons from "./SqueezeNumberButtons";
import ScrollStickyMenu from "./ScrollStickyMenu";
... |
src/Parser/Hunter/Survival/Modules/Traits/EaglesBite.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellIcon from "common/SpellIcon";
import SpellLink from "common/SpellLink";
import ItemDamageDone from 'Main/ItemDamageDone';
/*
* Harpoon appl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.