path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
examples/huge-apps/routes/Course/components/Dashboard.js | emmenko/react-router | import React from 'react';
class Dashboard extends React.Component {
render () {
return (
<div>
<h3>Course Dashboard</h3>
</div>
);
}
}
export default Dashboard;
|
components/object-inspector/object-description.js | scriptit/github-api-gui | import React, { Component } from 'react';
/**
* A short description of the object
*/
export default function ObjectDescription(props) {
const object = props.object;
switch (typeof object){
case 'number':
return (<span className="ObjectInspector-object-value-number">{object}</span>);
case 'string':
... |
test/test_helper.js | yuvalroth/readux-simple-started-probable-meme | 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... |
lens-ui/app/components/QueryParamsComponent.js | guptapuneet/lens | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
ui/src/main/js/components/UpdateDiff.js | crashlytics/aurora | import React from 'react';
import Diff from 'components/Diff';
import PanelGroup, { Container, StandardPanelTitle } from 'components/Layout';
import { instanceRangeToString } from 'utils/Task';
export default class UpdateDiff extends React.Component {
constructor(props) {
super(props);
this.state = {groupI... |
app/javascript/mastodon/features/notifications/components/notification.js | SerCom-KC/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusContainer from '../../../containers/status_container';
import AccountContainer from '../../../containers/account_container';
import { injectIntl, FormattedMessage } from 'react-intl';
... |
wawhfd/static/src/js/components/calendar.js | calebrash/wawhfd | import React, { Component } from 'react';
import api from '../api';
export default class CalendarList extends Component {
getCalendarItems () {
return this.props.data.map((d) => <CalendarItem data={d} key={d.key} />);
}
render () {
return <div className="calendar">{this.getCalendarItems()}<... |
src/pages/Application/NeedToConfirmEmailDialog.js | BoilerMake/frontend | import React from 'react';
const NeedToConfirmEmailDialog = () => {
return (
<p>
Hey! <br/><br/>
Check your inbox for an email from hello@boilermake.org. Click the
link to verify your email then you can continue your application.
</p>
);
};
export default Nee... |
tp-3/sebareverso/src/components/pages/alumnos/components/form/AlumnoForm.js | jpgonzalezquinteros/sovos-reactivo-2017 | import React from 'react';
import Paper from 'material-ui/Paper';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import '../../../../app.scss';
class AlumnoForm extends React.Component {
constructor(){
super();
this.alumno = {
apellido: "",
nom... |
src/frontend/components/forms/GCPasswordField.js | Bernie-2016/ground-control | import React from 'react';
import {TextField} from 'material-ui';
import {BernieText} from '../styles/bernie-css';
import GCFormField from './GCFormField';
export default class GCPasswordField extends GCFormField {
render() {
return <TextField
{...this.props}
floatingLabelText={this.floatingLabelText... |
src/providers/PopupProvider.js | talibasya/redux-store-ancillary | import React from 'react'
class PopupProvider extends React.Component {
render () {
const { children, popup } = this.props
const Parent = React.cloneElement(children)
let modifiedChildren = []
React.Children.forEach(children, child => {
React.Children.forEach(child.props.children, child2 => ... |
src/MessagePanel/index.js | oneteam-dev/react-oneteam | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './index.css';
const MessagePanel = props => {
return (
<div {...props} className={classNames(styles.root, props.className)}>
{props.children}
</div>
);
};
MessagePanel.propTypes = ... |
src/components/Canvas/Canvas.js | dotlouis/reactive-show | import './Canvas.css';
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { SvgNode } from '../SvgNode/SvgNode';
import Action from '../Action/Action';
const mapStateToProps = state => ({
nodes: state.nodes,
});
class Canvas extends React.Component {
sta... |
src/components/App.js | joynal/flashcard | import React from 'react'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import AppBar from 'material-ui/AppBar'
import Tabs from './AppTabs'
import AddCard from './CardAction'
const App = () => (
<MuiThemeProvider>
<div>
<AppBar title='Flashcard'/>
<Tabs/>
<AddCard/>
</... |
packages/react-scripts/fixtures/kitchensink/src/index.js | ro-savage/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.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById(... |
src/index.js | yarikgenza/gainster | import React, { Component } from 'react';
import { Provider } from 'mobx-react';
import { StackNavigator } from 'react-navigation';
import { StyleSheet } from 'react-native';
import { Container, Content, Text, StyleProvider } from 'native-base';
import stores from './stores';
import getTheme from './themes/components';... |
components/modal/src/Modal.js | fi11/uikit | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import Teleport, { TeleportContext } from '@uikit/teleport';
import Transition from '@uikit/transition';
import AutoClosable from '@uikit/autoclosable';
const rootStyles = {
position: 'fixed',
top: 0,
right: 0,
left: 0,
bottom: 0,
... |
node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js | hpdmitriy/Bjj4All | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
bdocker/bnodejs/gatsby/web/pages/postcss.js | waterbolik/prestudy | import React from 'react'
import './example.css'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class PostCSS extends React.Component {
render () {
return (
<div>
<Helmet
title={`${config.siteTitle} | Hi PostCSSy friends`}
/>
<h1 classNam... |
app/containers/ChatPage/index.js | dvm4078/dvm-blog | /**
*
* ChatPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import injectSaga from 'utils/injectSaga';
import injectReducer from 'utils/injectReducer';
import makeS... |
client/pages/campaign.js | quarterto/almanac | import React from 'react'
import { withTracker } from 'meteor/react-meteor-data'
import { compose, withHandlers } from 'recompact'
import _ from 'lodash'
import { withCampaignData } from '../data/campaign'
import { CampaignSplash } from '../visual/splash'
import Title from '../utils/title'
import CardList from '../col... |
index.js | alekhurst/react-native-elevated-view | import React from 'react';
import PropTypes from 'prop-types';
import { View, Platform } from 'react-native';
export default class ElevatedView extends React.Component {
static propTypes = {
elevation: PropTypes.number,
};
static defaultProps = {
elevation: 0
};
render() {
const { elevation, sty... |
src/common/components/MarkdownEditor.js | dillonliang224/React-CMS | import React from 'react';
var ReactMarkdown = require('react-markdown');
var input = '# This is a header\n\nAnd this is a paragraph';
class MarkdownEditor extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<h2>Edit Article Page</h2>
<ReactMar... |
Console/app/node_modules/rc-calendar/es/MonthCalendar.js | RisenEsports/RisenEsports.github.io | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import KeyCode from 'rc-util/es/KeyCode';
import MonthPanel from './month/MonthPanel';
import CalendarMixin from './mixin/CalendarMixin';
import CommonMixin from './mixin/CommonMixin';
var MonthCalendar = ... |
entry/components/musiclistitem.js | xiaololo/react-music-player | import React from 'react'
import './musiclistitem.less'
import Pubsub from 'pubsub-js'
let MusicListItem = React.createClass({
playMusic(musicItem) {
Pubsub.publish('PLAY_MUSIC', musicItem);
},
deleteMusic(musicItem, e) {
e.stopPropagation();
Pubsub.publish('DELETE_MUSIC', musicItem);
},
render() {
let mu... |
hw5/src/components/main/main.js | MinZhou2016/comp531 | import React, { Component } from 'react';
import HeadLine from './headline';
import Followers from './following';
import ArticlesView from '../article/articlesView';
const Main = () =>{
return (
<div className="main container-fluid">
<div className="row">
<div className="col-md-3">
<HeadLine />
... |
lib/server.js | kodyl/react-document-meta | import DocumentMeta, { render } from './index';
import React from 'react';
import { renderToStaticMarkup } from 'react-dom/server';
function rewindAsStaticMarkup() {
const tags = render(DocumentMeta.rewind());
return renderToStaticMarkup(<div>{tags}</div>)
.replace(/(^<div>|<\/div>$)/g, '')
.replace(/data... |
src/js/sections/Title1.js | lianwangtao/shanelian.com | import React from 'react';
import scrollToElement from 'scroll-to-element';
import classnames from 'classnames';
import Headline from 'grommet/components/Headline';
import Anchor from 'grommet/components/Anchor';
import Paragraph from 'grommet/components/Paragraph';
import Box from 'grommet/components/Box';
import Va... |
src/ContentBlocks/BlockQuote/BlockQuote.js | grommet/grommet-cms-content-blocks | import PropTypes from 'prop-types';
import React from 'react';
import Heading from 'grommet/components/Heading';
import Quote from 'grommet/components/Quote';
import Label from 'grommet/components/Label';
import Anchor from 'grommet/components/Anchor';
import Paragraph from 'grommet/components/Paragraph';
import Box fr... |
src/server/frontend/render.js | stephengfriend/cmsbl-este | import Helmet from 'react-helmet';
import Html from './Html.react';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import config from '../config';
import configureStore from '../../common/configureStore';
import createRoutes from '../../browser/createRoutes';
import serialize from 'serialize-... |
react-app/src/components/forms/Hidden.js | floodfx/gma-village | import React, { Component } from 'react';
class Hidden extends Component {
render() {
const { input, label, meta: { touched, error, warning } } = this.props;
return (
<div>
<label className="fw7 f3">{label}</label>
<div>
{touched && ((error && <span className="dark-red">{erro... |
docs/src/app/components/pages/components/RaisedButton/ExampleComplex.js | lawrence-yu/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import ActionAndroid from 'material-ui/svg-icons/action/android';
import FontIcon from 'material-ui/FontIcon';
const styles = {
button: {
margin: 12,
},
exampleImageInput: {
cursor: 'pointer',
position: 'absolute',
to... |
src/svg-icons/editor/border-style.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderStyle = (props) => (
<SvgIcon {...props}>
<path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/>
</SvgIcon>
);
E... |
index.android.js | WPDreamMelody/NavigatorBarRN | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class NavigatorDemo extends Component {
render() {
return (
<View style={styles.container}>
<Text sty... |
src/components/library/Table/index.js | jfilter/frag-den-staat-app | import { Text, View } from 'react-native';
import PropTypes from 'prop-types';
import React from 'react';
import { styles } from './styles';
const Table = ({ data }) => {
return (
<View style={styles.table}>
{data.map(({ label, value }) => (
<View key={label} style={styles.row}>
<View st... |
app/react-icons/fa/bullhorn.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaBullhorn extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m37.1 14.3q1.2 0 2.1 0.8t0.8 2-0.8 2.1-2.1 0.8v8.6q0 1.1-0.8 2t-2 0.8q-9.3-... |
client/pages/Main.js | Luzgan/checklist-v2-graphql-apollo | /**
* Created by luzga_000 on 06/07/2017.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { gql, graphql } from 'react-apollo';
import { propType } from 'graphql-anywhere';
import TasksList from '../components/TasksList';
class Main extends Component {
static defaultProps =... |
src/platform/site-wide/banners/components/MaintenanceBanner/index.js | department-of-veterans-affairs/vets-website | // Node modules.
import React from 'react';
import ReusableMaintenanceBanner from '@department-of-veterans-affairs/component-library/MaintenanceBanner';
// Relative imports.
import config from '../../config/maintenanceBanner';
export const MaintenanceBanner = () => (
<ReusableMaintenanceBanner
content={config.co... |
src/svg-icons/hardware/sim-card.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSimCard = (props) => (
<SvgIcon {...props}>
<path d="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1.9 2 2 2h12.01c1.1 0 1.99-.9 1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4 4h-2v-4h2v4zm0... |
assets/src/js/index.js | cleverframework/clever-users-admin | 'use strict'
import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { ReduxRouter } from 'redux-router'
import Cookies from 'cookies-js'
import { JWT_COOKIE_NAME } from './constants/settings.js'
import configureStore from './store/configureStor... |
src/components/UI/Spacer.js | mcnamee/react-native-starter-app | import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'native-base';
const Spacer = ({ size }) => <View style={{ flex: 1, height: size }} />;
Spacer.propTypes = {
size: PropTypes.number,
};
Spacer.defaultProps = {
size: 20,
};
export default Spacer;
|
App/node_modules/react-native/local-cli/templates/HelloNavigation/components/KeyboardSpacer.js | Dagers/React-Native-Differential-Updater | 'use strict';
/* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Platform,
View,
Keyboard,
LayoutAnimation,
UIManager,
} from 'react-native';
type Props = {
offset?: number,
}
type State = {
keyboardHeight: number
}
// Consider contributing this to the ... |
src/Topics.js | rdwrcode/myreact-demo | import React from 'react'
import { Link, Match } from 'react-router';
import Topic from './Topic'
const Topics = ({ pathname }) => (
<div>
<h2>Topics</h2>
<ul>
<li><Link to={`${pathname}/components`}>Everything is a component!</Link></li>
<li><Link to={`${pathname}/render`}>Let React render.</Lin... |
pages/index.js | poeti8/findrap.xyz | import React from 'react';
import Head from 'next/head';
import axios from 'axios';
import Homepage from '../components/Homepage';
const Index = (props) => {
const data = props.data ? props.data : props.url.query;
return (
<div>
<meta name="description" content="Find the best Hip-Hop/Rap songs and album... |
src/parser/druid/feral/modules/core/Snapshot.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import { TooltipElement } from 'common/Tooltip';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analy... |
renderer/components/Channels/Channels.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import debounce from 'lodash/debounce'
import styled from 'styled-components'
import { Panel } from 'components/UI'
import PersistentTabControl from 'components/TabControl/PersistentTabControl'
import ChannelsHeader from 'containers/Channels/ChannelsHeader'
i... |
src/decorators/withViewport.js | hanwencheng/SeekDev | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
js/components/Card.js | matthewbdaly/react-kanban | import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
export default React.createClass({
mixins: [PureRenderMixin],
render() {
return (
<div className="card" ref="card">
<h4>{this.props.title}</h4>
<p>{this.props.description}</p>
</div>
);
}
... |
src/icons/Sad.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Sad extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M256,32C132.288,32,32,132.288,32,256s100.288,224,224,224s224-100.288,224-224S379.712,32,256,32z M145.062,291.696
c-1.5... |
app/containers/details/components/realtime-weather.js | 7kfpun/TWAQIReactNative | import React from 'react';
import { number, shape, string } from 'prop-types';
import { StyleSheet, Text, View } from 'react-native';
import { iOSColors } from 'react-native-typography';
import I18n from '../../../utils/i18n';
const styles = StyleSheet.create({
container: {
marginBottom: 10,
backgroundColo... |
src/svg-icons/image/filter-drama.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterDrama = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.04 2.35 8.36 0 10.9 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4... |
src/feed/Page.js | Sekhmet/busy | import React from 'react';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import MenuFeed from '../app/Menu/MenuFeed';
import Hero from '../app/Hero';
import Feed from './Feed';
import PageHOC from './PageHOC';
import {
getFeedContent,
getMoreFeedContent,
getUserFeedContent,
getMo... |
blueocean-material-icons/src/js/components/svg-icons/image/photo-size-select-small.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImagePhotoSizeSelectSmall = (props) => (
<SvgIcon {...props}>
<path d="M23 15h-2v2h2v-2zm0-4h-2v2h2v-2zm0 8h-2v2c1 0 2-1 2-2zM15 3h-2v2h2V3zm8 4h-2v2h2V7zm-2-4v2h2c0-1-1-2-2-2zM3 21h8v-6H1v4c0 1.1.9 2 2 2zM3 7H1v2h2V7zm12 12h-2v2h2v-2zm4-16h-2... |
src/Dialog/DialogFooter.js | kradio3/react-mdc-web | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import { FOOTER, FOOTER_BUTTON, FOOTER_BUTTON_CANCEL, FOOTER_BUTTON_ACCEPT } from './constants';
const propTypes = {
className: PropTypes.string,
children: PropTypes.node,
};
const DialogFooter = ({ className, chil... |
react-ui/src/containers/MyBooksContainer.js | simmco/trading-book-store | import React from 'react'
import axios from 'axios'
import styled from 'styled-components'
import { connect } from 'react-redux';
import * as actions from '../actions'
import BookOverview from '../components/BookOverview'
import InfoField from '../components/InfoField'
class MyBooksContainer extends React.Component {... |
imports/ui/pages/Index.js | lizihan021/SAA-Website | import React from 'react';
import { Link } from 'react-router';
import { Grid, Row, Col, FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap';
import Gallery from './Photo.js';
const IMAGES = [
{id: 'img/theGroup',caption:"Our group", orientation: 'square', useForDemo: true },
{id: 'img/last',captio... |
src/App.js | baherami/bookapp | import React, { Component } from 'react';
import {Route,Link } from 'react-router-dom';
import './App.css';
import Library from './library'
import * as BooksAPI from './BooksAPI'
import Search from './search'
class App extends Component {
state={
books:[]
}
componentDidMount() {
BooksAPI.getAll().then((d... |
screens/RicohTouchDetailScreen/index.js | nattatorn-dev/expo-with-realworld | import React from 'react'
import PropTypes from 'prop-types'
import { nav } from 'utilities'
import Touch from './TouchContainer'
import { HeaderNavigation } from '@components'
const RicohTouchDetailScreen = ( { navigation } ) => (
<Touch navigation={navigation} />
)
RicohTouchDetailScreen.navigationOptions = ( { ... |
client/modules/Post/__tests__/components/PostList.spec.js | eantler/google | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import PostList from '../../components/PostList';
const posts = [
{ name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" },
{ name: 'Mayank', title: 'Hi Mern', slug: ... |
examples/todomvc/index.js | peteruithoven/redux | import React from 'react';
import App from './containers/App';
import 'todomvc-app-css/index.css';
React.render(
<App />,
document.getElementById('root')
);
|
websites/skraning.vefverdlaun.is/src/app/middlewares/react-router/index.js | svef/www | import React from 'react'
import { BrowserRouter, StaticRouter } from 'react-router-dom'
const router = () => session => {
const context = {}
session.on('server', next => {
next()
if (context.url) {
session.req.redirect(context.status || 302, context.url)
} else if (context.status) {
sessio... |
app/javascript/plugins/email_pension/SuggestFund.js | SumOfUs/Champaign | import $ from 'jquery';
import React, { Component } from 'react';
import { FormattedMessage } from 'react-intl';
import Input from '../../components/SweetInput/SweetInput';
import Button from '../../components/Button/Button';
export default class SuggestFund extends Component {
constructor() {
super();
this.... |
src/client/components/human/view.js | boris91/vendor | import React from 'react';
import { Product } from 'components/index';
import './style.less';
export default class Human extends React.Component {
static defaultProps = {
currencyFormatter: {format: value => value},
purchasedProducts: [],
cash: 0
};
render() {
const { purchasedProducts, currencyFormatter,... |
src/index.js | jlianphoto/react-auto-dialog | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.jsx';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/Parser/MistweaverMonk/Modules/Talents/ChiBurst.js | Yuyz0112/WoWAnalyzer | import React from 'react';
import Module from 'Parser/Core/Module';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage, formatNumber } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';... |
src/pages/VerifyEmailPage.js | mDinner/musicansAssistant | import React from 'react';
import DocumentTitle from 'react-document-title';
import { VerifyEmailView } from 'react-stormpath';
export default class VerifyEmailPage extends React.Component {
render() {
var spToken = this.props.location.query.sptoken;
return (
<DocumentTitle title={`Verify Email`}>
... |
src/index.js | cosminseceleanu/react-sb-admin-bootstrap4 | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
import './css/index.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
app/components/feedback/feedback.js | ritishgumber/dashboard-ui | import React from 'react';
import Popover from 'material-ui/Popover';
import {ToolbarTitle} from 'material-ui/Toolbar';
import Badge from 'material-ui/Badge';
import NotificationsIcon from 'material-ui/svg-icons/social/notifications';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import TextField ... |
app/javascript/flavours/glitch/containers/mastodon.js | im-in-space/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from 'flavours/glitch/store/configureStore';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'react-router-scroll-4';
import UI from 'flavours/glitch/featur... |
src/svg-icons/communication/location-on.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLocationOn = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12... |
src/routes/Dashboard/components/sales.js | pmg1989/dva-admin | import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
import { color } from 'utils'
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'
import styles from './sales.less'
function Sales ({ data }) {
return (
<div ... |
tools/public-components.js | deerawan/react-bootstrap | import React from 'react';
import * as index from '../src/index';
let components = [];
Object.keys(index).forEach(function(item) {
if (index[item] instanceof React.Component.constructor) {
components.push(item);
}
});
export default components;
|
docs/app/Examples/modules/Dropdown/Types/DropdownExamplePointing.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Dropdown, Icon, Menu } from 'semantic-ui-react'
const DropdownExamplePointing = () => (
<Menu>
<Menu.Item>
Home
</Menu.Item>
<Dropdown text='Shopping' pointing className='link item'>
<Dropdown.Menu>
<Dropdown.Header>Categories</Dropdown.Header>
... |
src/components/dock/index.js | manweill/dna-ebook | import React from 'react'
import PropTypes from 'prop-types'
import { StyleSheet } from 'react-native'
import Item from './Item'
import { View } from 'react-native-animatable'
class Dock extends React.PureComponent {
static Item = Item
ref = null
componentDidUpdate = (prevProps, prevState) => {
if (this.prop... |
src/components/inputLabel/InputLabel.js | DaveOrDead/react-dnd-character-generator | import React from 'react';
import getClassNameString from '../../utils/getClassNameString';
/**
* InputLabel component. Accompanies a form input to describe it.
*/
const InputLabel = ({labelText, inputId, isHidden}) => {
const classList = getClassNameString({
'c-input-label': true,
'h-hide-vis... |
src/desktop/components/fair_week_marketing/PageScaffold.js | kanaabe/force | import PropTypes from 'prop-types'
import React from 'react'
import styled, { ThemeProvider } from 'styled-components'
import colors from 'reaction/Assets/Colors'
import { Row, Col } from 'reaction/Components/Grid'
import Text from 'reaction/Components/Text'
import Title from 'reaction/Components/Title'
const Contain... |
src/svg-icons/communication/speaker-phone.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationSpeakerPhone = (props) => (
<SvgIcon {...props}>
<path d="M7 7.07L8.43 8.5c.91-.91 2.18-1.48 3.57-1.48s2.66.57 3.57 1.48L17 7.07C15.72 5.79 13.95 5 12 5s-3.72.79-5 2.07zM12 1C8.98 1 6.24 2.23 4.25 ... |
src/app/d3components/utilities/axis.js | cox-auto-kc/react-d3-responsive | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import d3 from 'd3';
class Axis extends React.Component {
constructor(props) {
super(props);
}
componentDidMount() {
this.renderAxis();
}
componentDidUpdate() {
this.renderAxis();
}
renderAxis() {
const node =... |
src/svg-icons/action/autorenew.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAutorenew = (props) => (
<SvgIcon {...props}>
<path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 ... |
node_modules/react-bootstrap/es/Breadcrumb.js | Chen-Hailin/iTCM.github.io | 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-router/es/IndexLink.js | aalpgiray/react-hot-boilerplate-ts | 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; };
import React from 'react';
import Link from './Link';
/**
*... |
src/components/Weui/panel/panel.js | ynu/res-track-wxe | /**
* Created by n7best.
*/
import React from 'react';
import classNames from 'classnames';
export default class Panel extends React.Component {
static propTypes = {
access: React.PropTypes.bool,
};
static defaultProps = {
access: false,
};
render() {
const {children,... |
1_simple_server_render/browserEntry.js | chkui/react-server-demo | 'use strict';
import React from 'react'
import {render} from 'react-dom'
import App from './app'
render(<App />, document.getElementById('root')) |
src/views/Home/Home.js | okoala/react-redux-antd | import React from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import Action from '../../store/actions'
import { QueueAnim, Table } from 'antd'
import { Link } from 'react-router'
import Nodebar from '../../components/Nodebar/Nodebar'
import TopicList from '../../components/... |
browser/src/index.js | powellquiring/bigimage | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
information/blendle-frontend-react-source/app/components/navigation/LocaleDropdown.js | BramscoChill/BlendleParser | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import { find } from 'lodash';
import dropdownMixin from 'components/mixins/DropdownMixin';
import classNames from 'classnames';
import i18n from 'instances/i18n';
import { getExceptionForCountry } from 'he... |
app/react-icons/fa/yahoo.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaYahoo extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m22.2 21.4l0.3 15.7q-1.4-0.2-2.4-0.2-0.9 0-2.3 0.2l0.3-15.7q-0.9-1.6-3.8-6.6t-... |
packages/react/components/subnavbar.js | iamxiaoma/Framework7 | import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __reactComponentSlots from '../runtime-helpers/react-component-slots.js';
import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js';
class F7Subnavbar extends React.Component {
con... |
packages/xo-web/src/xo-app/xoa/support/index.js | vatesfr/xo-web | import _ from 'intl'
import ActionButton from 'action-button'
import AnsiUp from 'ansi_up'
import decorate from 'apply-decorators'
import React from 'react'
import { addSubscriptions, adminOnly, getXoaPlan } from 'utils'
import { Card, CardBlock, CardHeader } from 'card'
import { Container, Row, Col } from 'grid'
impor... |
frontend/src/app/containers/ErrorPage.js | mathjazz/testpilot | import React from 'react';
import Copter from '../components/Copter';
import LayoutWrapper from '../components/LayoutWrapper';
import View from '../components/View';
export default class ErrorPage extends React.Component {
render() {
return (
<View spaceBetween={true} showNewsletterFooter={false} {...thi... |
src/svg-icons/action/flip-to-front.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlipToFront = (props) => (
<SvgIcon {...props}>
<path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3c0 1.1.89 2 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9c-1.11 0-2 .9-2 2v10c0 1.1.89 2 2 2h10c1.1 0 2-.9 2-2V5c... |
src/PerfViewJS/spa/src/components/ProcessList.js | vancem/perfview | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import base64url from 'base64url';
export class ProcessList extends Component {
static displayName = ProcessList.name;
constructor(props) {
super(props);
this.state = { processes: [], loading: true };
fe... |
lib/index.js | RemeJuan/react-balloon.css | import React from 'react';
import styled, { css } from 'styled-components';
import { prop, ifProp } from 'styled-tools';
const animation = ({ always, message }) => (
(!always && message) ? css`
animation-name: fadeIn;
animation-duration: 0.2s;
` : null
);
const top = css`
bottom: 100%;
left: ... |
webpack/move_to_pf/LoadingState/LoadingState.js | johnpmitsch/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import { Spinner } from 'patternfly-react';
import './LoadingState.scss';
class LoadingState extends Component {
constructor(props) {
super(props);
this.state = {
re... |
src/templates/blog-post.js | JacobPrice/jacobprice.io | import React from 'react';
import Helmet from 'react-helmet';
import BackIcon from 'react-icons/lib/fa/chevron-left';
import ForwardIcon from 'react-icons/lib/fa/chevron-right';
import Link from '../components/Link';
import Tags from '../components/tags';
import '../css/blog-post.css';
export default function Templa... |
app/client/src/scenes/ManageCampaignSettings/ManageCampaignSettings.js | uprisecampaigns/uprise-app | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { compose, graphql } from 'react-apollo';
import { connect } from 'react-redux';
import FontIcon from 'material-ui/FontIcon';
import camelCase from 'camelcase';
import CampaignSettingsForm from 'components/CampaignSettingsForm';
impor... |
app/boards/motec-d153/components/modes/fuel-level-lap.js | fermio/motorsport-display | import React from 'react';
const FuelLevelLap = React.createClass({
propTypes: {
dash: React.PropTypes.object.isRequired,
fuel: React.PropTypes.object.isRequired,
game: React.PropTypes.object.isRequired
},
shouldComponentUpdate: function(nextProps, nextState) {
return true;... |
src/AntdComp.js | ShaneKing/sk-antd | import PropTypes from 'prop-types';
import React from 'react';
import {Proxy0, SK} from 'sk-js';
import {Comp, Model, Reacts, SKDiv} from 'sk-react';
import {SIZE} from './AntdConst';
/**
* 1.The defaultProps and propTypes of AntD just can be use in wrapper Comp or non-Comp
* 2.if origin exist, must be use origin
*... |
app/components/message-history.js | vladimirgamalian/TheTurkBot | import React from 'react';
var Message = React.createClass({
render: function () {
return (
<div className={this.props.message.own ? 'message-container-own':'message-container'}>
<div className='message'>{this.props.message.text}</div>
</div>
);
}
});
va... |
app/main.js | zhangmingkai4315/webpack-react-es6-starter | import React from 'react';
import ReactDOM from 'react-dom';
import Component from './src/Component_1.js';
class Hello extends React.Component {
render() {
return (< div >
< h1 > HELLO WORLD < /h1> < Component / >
< /div>);
}
}
ReactDOM.render(<Hello/>, document.getElementById('container'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.