path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
examples/huge-apps/components/GlobalNav.js | rkaneriya/react-router | import React from 'react'
import { Link } from 'react-router'
const dark = 'hsl(200, 20%, 20%)'
const light = '#fff'
const styles = {}
styles.wrapper = {
padding: '10px 20px',
overflow: 'hidden',
background: dark,
color: light
}
styles.link = {
padding: 11,
color: light,
fontWeight: 200
}
styles.activ... |
cms/react-static/src/containers/404.js | fishjar/gabe-study-notes | import React from 'react'
//
export default () => (
<div>
<h1>404 - Oh no's! We couldn't find that page :(</h1>
</div>
)
|
packages/mineral-ui-icons/src/IconDialerSip.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 IconDialerSip(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProp... |
client/modules/App/__tests__/App.spec.js | mraq1234/mod11 | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow, mount } from 'enzyme';
import { App } from '../App';
import styles from '../App.css';
import { intlShape } from 'react-intl';
import { intl } from '../../../util/react-intl-test-helper';
import { toggleAddPost } from '../App... |
examples/universal/client/index.js | nacyot/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../common/store/configureStore';
import App from '../common/containers/App';
const initialState = window.__INITIAL_STATE__;
const store = configureStore(initialState);
const rootElement = do... |
app/javascript/mastodon/features/notifications/components/clear_column_button.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
export default class ClearColumnButton extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return ... |
public/components/tehtPage/tabsComponents/kuvatvideot/Valvontakamerat.js | City-of-Vantaa-SmartLab/kupela | import React from 'react';
import Basic from '../reusables/templates/Basic';
const Valvontakamerat = (props) =>
<div className="valvontakamerat">
<p><b>Valvontakamerat:</b></p>
{props.securitycams.map((cam) =>
<a onClick={props.selectItem(cam.nameId, 'GET_kuvatvideot', cam)}>
... |
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/Row.js | jmanday/Master | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/app/components/team/Rules/RulesComponent.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, intlShape, defineMessages, FormattedMessage } from 'react-intl';
import { graphql, commitMutation } from 'react-relay/compat';
import { Store } from 'react-relay/classic';
import { makeStyles } from '@material-ui/core/styles';
import Pa... |
docs/src/Routes.js | tigerandgirl/ssc-refer | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import ComponentsPage from './ComponentsPage';
import ValidationPage from './ValidationPage';
// import GettingStartedPage from './GettingStartedPage';
import HomePage from './HomePage';
// import IntroductionPage from './IntroductionPage';
imp... |
test/js/release_test/ViroButtonTest.js | viromedia/viro | /**
* Sample React Native App
* https://github.com/facebook/react-native
*//**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import {
ViroS... |
examples/server-rendering/shared/components/App.js | amazeui/amazeui-react | 'use strict';
import React from 'react'
import {
Link,
} from 'react-router';
import {
Topbar,
Nav,
NavItem,
CollapsibleNav,
Container,
GoTop,
} from './AMUIReact';
import {SiteFooter} from './index';
import * as demos from './demos';
export class App extends React.Component {
constructor(props, con... |
client/components/EditCaption.js | RobinClowers/photo-album | import React from 'react'
import { withStyles } from '@material-ui/core/styles'
import TextField from '@material-ui/core/TextField'
import FormControl from '@material-ui/core/FormControl'
import FormHelperText from '@material-ui/core/FormHelperText'
import Button from '@material-ui/core/Button'
import { updatePhoto } f... |
src/routes/index.js | MaayanLab/L1000 | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import CoreLayout from 'layouts/CoreLayout';
import HomeView from 'views/HomeView';
import RegisterView from 'views/RegisterView';
import LoginView from 'views/LoginView';
import ProfileView from 'views/ProfileView';
import CartView from 'vie... |
docs/src/app/components/pages/components/Drawer/ExampleUndocked.js | hwo411/material-ui | import React from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import RaisedButton from 'material-ui/RaisedButton';
export default class DrawerUndockedExample extends React.Component {
constructor(props) {
super(props);
this.state = {open: false};
}
han... |
docs/stories/method.js | react-native-web-community/react-native-web-webview | import React from 'react';
import { WebView } from 'react-native-webview';
import { text } from '@storybook/addon-knobs';
export const basic = () => (
<WebView
source={{
uri: text('URI', 'https://react-native-web-community.github.io/react-native-web-webview/'),
method: text('Method', 'GET'),
}}
... |
app/javascript/mastodon/features/picture_in_picture/components/header.js | tootcafe/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from 'mastodon/components/icon_button';
import { Link } from 'react-rou... |
src/ui/LabelValue.js | touchstonejs/touchstonejs | import classnames from 'classnames';
import FieldControl from './FieldControl';
import Item from './Item';
import ItemInner from './ItemInner';
import React from 'react';
module.exports = React.createClass({
displayName: 'LabelValue',
propTypes: {
alignTop: React.PropTypes.bool,
className: React.PropTypes.strin... |
src/server.js | NogsMPLS/react-redux-universal-hot-example | import Express from 'express';
import React from 'react';
import Location from 'react-router/lib/Location';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
im... |
src/graph/render.js | kbeloborodko/webpack-deep-dive | import React from 'react'
import ReactDOM from 'react-dom'
import {PieChart} from 'rd3'
import {chain} from 'lodash'
export default updateGraph
function updateGraph(node, store) {
store.findAll(todos => {
ReactDOM.render(
<Graph todos={todos} />,
node,
)
})
}
function Graph({todos}) {
const data = chai... |
src/app/components/SignIn.js | omarglz/rgvelite | import React from 'react';
import * as firebase from 'firebase';
export class SignIn extends React.Component {
componentWillMount() {
this.authListener = this.authListener.bind(this);
this.authListener();
}
loginWithPass(email,password) {
firebase.auth().signInWithEmailAndPassword(email, password).catc... |
src/core/containers/TapProvisioningSearch.js | getfilament/Distil | import React from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';
import { bindActionCreators } from 'redux';
import * as hqActionCreators from '../actions/hqActionCreators';
import { List, ListItem, FontIcon, LinearProgress } from 'material-ui';
import Section from '../components/Section';
l... |
app/components/Counter/Counter.js | taggun/app-benchmark | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import styles from './Counter.css';
class Counter extends Component {
props: {
increment: () => void,
incrementIfOdd: () => void,
incrementAsync: () => void,
decrement: () => void,
counter: number
};
render() ... |
src/components/details/commentsBox/CommentsBox.js | yakovlevyuri/inloop-application-test | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import CommentsItem from './CommentsItem';
export default class CommentsBox extends Component {
static propTypes = {
comments: PropTypes.array,
detailsId: PropTypes.string,
removeComment: PropTypes.func.isRequired,
};
ren... |
src/components/vagrant/original/VagrantOriginal.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './VagrantOriginal.svg'
/** VagrantOriginal */
function VagrantOriginal({ width, height, className }) {
return (
<SVGDeviconInline
className={'VagrantOriginal' + ' '... |
components/pages/HomePage.js | Garnel/electron-react | import React from 'react';
class HomePage extends React.Component {
render() {
return (
<div>Home Page</div>
);
}
}
export default HomePage;
|
packages/material-ui-icons/src/Pets.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Pets = props =>
<SvgIcon {...props}>
<circle cx="4.5" cy="9.5" r="2.5" /><circle cx="9" cy="5.5" r="2.5" /><circle cx="15" cy="5.5" r="2.5" /><circle cx="19.5" cy="9.5" r="2.5" /><path d="M17.34 14.86c-.8... |
components/MealToggler.js | PaRb/Extend | import React, { Component } from 'react';
import { View, Text, TouchableOpacity, StyleSheet, Modal } from 'react-native';
export default class MealToggler extends Component {
render() {
return <Text>TODO! MealToggler</Text>;
}
}
MealToggler.propTypes = {};
|
src/components/commentBoard.js | melissa-c/Comms | 'use strict'
import React from 'react'
import ReactDOM from 'react-dom'
import ImgGallery from './imgGallery'
import VerbGallery from './verbGallery'
module.exports = class CommentBoard extends React.Component {
constructor(props){
super(props)
}
render (){
return (
<div className="commentBoard... |
react-universal-web-apps-simple/app/components/main/Header.js | joekraken/react-demos | import React from 'react';
import {IndexLink} from 'react-router';
export default class Header extends React.Component {
render() {
return (
<header className="app-header">
<h1 className="title">
<IndexLink to={this.props.root}>App</IndexLink>
... |
examples/with-external-scoped-css/pages/_document.js | nahue/next.js | import React from 'react'
import Document, { Head, Main, NextScript } from 'next/document'
export default class MyDocument extends Document {
static getInitialProps ({ renderPage }) {
const {html, head} = renderPage()
return { html, head }
}
render () {
return (
<html>
<Head>
... |
actor-apps/app-web/src/app/components/modals/InviteUser.react.js | vanloswang/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ActorClient from 'utils/ActorClien... |
app/components/app.js | ForbesLindesay/chat-example | 'use strict';
import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import ChannelSelector from './channel-selector';
import LogIn from './log-in';
@connect(state => ({user: state.user}))
export default class App {
render() {
if (!this.props.user) {
return ... |
src/containers/App.js | yyssc/sanhu | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import Top from '../components/Top';
import Footer from '../components/Footer';
import Sidebar from '../components/Sidebar';
class App extends React.Component {
render()... |
frontend/react-stack/react/cdc-admin/src/components/BookTable.js | wesleyegberto/courses-projects | import React, { Component } from 'react';
export default class BookTable extends Component {
render() {
return (
<table className="pure-table">
<thead>
<tr>
<th>Author</th>
<th>Title</th>
<th>Price</th>
</tr>
</thead>
<tbody>
... |
client/modules/users/components/teachersList.js | johngonzalez/abcdapp | import React from 'react';
import {ListGroup, ListGroupItem} from 'react-bootstrap';
const TeachersList = ({teachers}) => (
<div>
<ListGroup>
{
teachers && teachers.length > 0 ?
teachers.map((t) => (
<ListGroupItem key={t._id}>
{t.emails[0].address}
</ListGro... |
src/svg-icons/action/g-translate.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGTranslate = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09 4.09-4... |
src/components/App.js | edgarallanglez/foxacademia_frontend | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
.history/src/containers/GKM/ItemsContainer_20170624100126.js | oded-soffrin/gkm_viewer | import React from 'react';
import { connect } from 'react-redux';
import { addItem, addCategory, updateItem, deleteItem, resetDb } from '../../actions/itemActions'
import ItemsPage from '../../components/GKM/ItemsPage.js';
import { getItems, getCategories } from '../../reducers/item'
export const ItemsContainer = (pro... |
src/routes.js | cyberid41/simple-blog-react | import React from 'react';
import { IndexRoute, Route } from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App, About, Register, Login, LoginSuccess, NotFound,
Blogs, Blog, BlogEdit, BlogCreate
} from 'containers';
export default store => {
const loadAu... |
examples/sections/src/components/WrappedButton/WrappedButton.js | styleguidist/react-styleguidist | import React from 'react';
import Button from '../Button';
const dummyWrapper = (WrappedComponent) => (props) => <WrappedComponent {...props} />;
/**
* A button wrapped by a Decorator/Enhancer
*/
const WrappedButton = dummyWrapper(Button);
export default WrappedButton;
|
client/src/login/root.js | andris9/mailtrain | 'use strict';
import React from 'react';
import Login from './Login';
import Reset from './Forgot';
import ResetLink from './Reset';
import mailtrainConfig from 'mailtrainConfig';
function getMenus(t) {
const subPaths = {}
if (mailtrainConfig.isAuthMethodLocal) {
subPaths.forgot = {
titl... |
CompositeUi/src/views/form/TaskEdit.js | kreta/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import React from 'react';
import {connec... |
RNTester/js/ActivityIndicatorExample.js | farazs/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
* ... |
app/Containers/MeContainer.js | TBoyLi/BookBall | import React from 'react';
import {connect} from 'react-redux';
import Me from '../Components/Me';
export default class MeContainer extends React.Component {
render() {
return (
<Me {...this.props} />
)
}
}
// export default connect((state) => {
// const {MeContainer} = state;... |
assets/javascripts/kitten/components/graphics/icons/visa-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import classNames from 'classnames'
export const VisaIcon = ({ className, ...props }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 732 224.43"
width="36"
className={classNames('k-ColorSvg', className)}
{...props}
>
<title>Visa</title>
<path
f... |
src/components/recording/MouseDrawingHandler.js | zebras-filming-videos/streamr-web | import React from 'react'
import throttle from 'lodash/throttle'
import cx from 'classnames'
import Measure from 'react-measure'
export default class MouseDrawingHandler extends React.Component {
constructor (props) {
super(props)
this.state = {
drawing: false
}
}
componentDidMount () {
... |
app/javascript/mastodon/features/ui/components/compare_history_modal.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { closeModal } from 'mastodon/actions/modal';
import emojify from 'mastodon/features/emoji/emoji';
impor... |
src/svg-icons/av/queue-play-next.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueuePlayNext = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h2v-2H3V5h18v8h2V5c0-1.11-.9-2-2-2zm-8 7V7h-2v3H8v2h3v3h2v-3h3v-2h-3zm11 8l-4.5 4.5L18 21l3-3-3-3... |
app/static/src/performer/TestTypeResultForm_modules/NewWindingResistanceTestForm.js | SnowBeaver/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 Radio from 'react-bootstrap/lib/Radio';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import {... |
dungeon-maker/src/components/AddPowers.js | sgottreu/dungeoneering | import React from 'react';
import PowersForm from './PowersForm';
function AddPowers( {existingPowers, current_power, power, boundPowerAC, entitiesState, powersState, boundEntityAC} )
{
return (
<div className="AddPowers">
<PowersForm
entityType='character'
existingPowers={existi... |
client/components/SecondaryNav.js | steveliles/react-ssr-codesplit | import React from 'react'
import Link from 'redux-first-router-link'
import styles from './SecondaryNav.css'
const SecondaryNav = ({ tabs }) => (
<ol className={styles.bar}>
{tabs.map(t => (
<li key={t.name}><Link href={t.href || t.name}>{t.name}</Link></li>
))}
</ol>
)
export default SecondaryNav
|
src/client/components/ApplicationFormComponent.js | aaronpanch/hercules | import React from 'react';
import PropTypes from 'prop-types';
import Input from './InputComponent';
import FormRow from './FormRowComponent';
require('../styles/card.scss');
require('../styles/button.scss');
class ApplicationForm extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
src/index.js | vgrigoriu/learn-to-read | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
client/src/screens/groups.screen.js | srtucker22/chatty | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import {
FlatList,
ActivityIndicator,
Button,
Image,
StyleSheet,
Text,
TouchableHighlight,
View,
} from 'react-native';
import { graphql, compose } from 'react-apollo';
import moment from 'moment';
import Icon from 'react-nati... |
src/svg-icons/editor/format-indent-increase.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatIndentIncrease = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentIncrease... |
packages/reactor-kitchensink/src/examples/Grid/ReduxGrid/ReduxGrid.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Grid, Toolbar, Container, Button } from '@extjs/ext-react';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import Employees from './Employees';
import { reducer } from './reducer';
const store = createStore(reducer);
export default class... |
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js | danieljwest/ExamGenerator | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
js/pages/logframe/components/title.js | mercycorps/TolaActivity | import React from 'react';
import { inject } from 'mobx-react';
const ExcelButton = inject('filterStore')(
({ filterStore }) => {
const clickHandler = filterStore.excelUrl ?
() => { window.open(filterStore.excelUrl, '_blank') } :
(e) => { e.preventDefault(); };
return (
... |
client/app/routes.js | vulcan-estudios/pwa-examples | import React from 'react';
import { Route, IndexRoute, Redirect } from 'react-router';
import App from 'client/app/containers/App';
import Fridge from 'client/app/containers/Fridge';
import Recipes from 'client/app/containers/Recipes';
import Blending from 'client/app/containers/Blending';
export default (
<Route pa... |
frontend/src/Organize/OrganizePreviewRow.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import CheckInput from 'Components/Form/CheckInput';
import Icon from 'Components/Icon';
import { icons, kinds } from 'Helpers/Props';
import styles from './OrganizePreviewRow.css';
class OrganizePreviewRow extends Component {
//
// Lif... |
packages/xo-web/src/xo-app/vm-import/index.js | vatesfr/xo-web | import * as FormGrid from 'form-grid'
import _ from 'intl'
import ActionButton from 'action-button'
import Button from 'button'
import Component from 'base-component'
import Dropzone from 'dropzone'
import isEmpty from 'lodash/isEmpty'
import map from 'lodash/map'
import orderBy from 'lodash/orderBy'
import PropTypes f... |
src/components/common/UploadBtn.js | macpie/Gif-Chrome-Extension | import React from 'react';
import IconButton from 'material-ui/IconButton';
import UploadIcon from 'material-ui/svg-icons/file/cloud-upload';
class UploadBtn extends React.Component {
render() {
return (
<IconButton
iconStyle={{color: "rgb(255, 64, 129)"}}
toolti... |
app/containers/SignUp/SignUpForm.js | danielmoraes/invoices-web-client | import React from 'react'
import { Form } from 'components'
import { User } from 'api/entity-schema'
const formLayout = [
[ 'name' ],
[ 'email' ],
[ 'password' ],
[ 'confirmPassword' ]
]
const formOptions = {
focus: 'name',
hideLabels: true,
fieldOptions: {
name: {},
email: {},
password: { ... |
src/layouts/index.js | omahajs/omahajs.github.io | import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import './index.css';
const Layout = ({children, data}) => (
<div>
<Helmet
title={data.site.siteMetadata.title}
meta={[
{name: 'description', content: 'Sample'},
... |
src/icons/NaturePeopleIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class NaturePeopleIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M44.34 18.34c0-7.73-6.27-14-14-14s-14 6.27-14 14c0 6.93 5.04 12.67 11.66 13.79V40H12v-6h2v-8c0-1.1-.9... |
js/react/codemirror.js | nCoda/julius | // -*- coding: utf-8 -*-
// ------------------------------------------------------------------------------------------------
// Program Name: Julius
// Program Description: User interface for the nCoda music notation editor.
//
// Filename: js/react/codemirror.js
// Purpose: Re... |
lib/PaneHeaderIconButton/PaneHeaderIconButton.js | folio-org/stripes-components | /**
* PaneHeaderIconButton
*/
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import IconButton from '../IconButton';
import css from './PaneHeaderIconButton.css';
import paneHeaderCss from '../PaneHeader/PaneHeader.css';
const PaneHeaderIconButton = React.forward... |
nCoda-win32-x64/resources/app/js/react/pdf_viewer.js | nCoda/Windows | // -*- coding: utf-8 -*-
// ------------------------------------------------------------------------------------------------
// Program Name: Julius
// Program Description: User interface for the nCoda music notation editor.
//
// Filename: js/react/pdf_viewer.js
// Purpose: Re... |
fields/types/geopoint/GeoPointField.js | matthewstyers/keystone | import Field from '../Field';
import React from 'react';
import {
FormInput,
Grid,
} from '../../../admin/client/App/elemental';
module.exports = Field.create({
displayName: 'GeopointField',
statics: {
type: 'Geopoint',
},
focusTargetRef: 'lat',
handleLat (event) {
const { value = [], path, onChange } = ... |
dist/components/page8.js | LongStoryMedia/Compass | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
const Page8 = () => {
return (
<div>
<h1>Page 8</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ultricies, metus a euismod dictum, ex ligula congue arcu, non rutrum dolor sem ma... |
examples/huge-apps/components/Dashboard.js | Dodelkin/react-router | import React from 'react'
import { Link } from 'react-router'
class Dashboard extends React.Component {
render() {
const { courses } = this.props
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
you... |
docs/app/Examples/collections/Message/Variations/MessageCompactExample.js | jcarbo/stardust | import React from 'react'
import { Message } from 'stardust'
const MessageCompactExample = () => (
<Message compact>
Get all the best inventions in your e-mail every day. Sign up now!
</Message>
)
export default MessageCompactExample
|
docs/src/app/components/pages/components/Stepper/GranularControlStepper.js | hai-cea/material-ui | import React from 'react';
import {
Step,
Stepper,
StepButton,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
const getStyles = () => {
return {
root: {
width: '100%',
maxWidth: 700,
margin: 'auto',
}... |
src/components/callout.js | nordsoftware/react-foundation | import React from 'react';
import PropTypes from 'prop-types';
import { CalloutColors, CalloutSizes } from '../enums';
import { GeneralPropTypes, FlexboxPropTypes, createClassName, generalClassNames, removeProps, objectKeys, objectValues } from '../utils';
/**
* Callout component.
* http://foundation.zurb.com/sites/... |
app/addons/documents/routes-index-editor.js | apache/couchdb-fauxton | // 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 in writing, software
// distributed un... |
packages/react/src/components/ToggleSmall/ToggleSmall.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { settings } from 'carbon-components';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'rea... |
docs/app/Examples/elements/Input/Types/InputExampleInput.js | ben174/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleInput = () => (
<Input placeholder='Search...' />
)
export default InputExampleInput
|
src/parser/rogue/assassination/modules/talents/Subterfuge.js | fyruna/WoWAnalyzer | import React from 'react';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import ItemDamageDone from 'interface/others/ItemDamageDone';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPer... |
fields/types/password/PasswordColumn.js | geminiyellow/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var PasswordColumn = React.createClass({
displayName: 'PasswordColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropType... |
packages/material-ui-icons/src/ClearAll.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ClearAll = props =>
<SvgIcon {...props}>
<path d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z" />
</SvgIcon>;
ClearAll = pure(ClearAll);
ClearAll.muiName = 'SvgIcon';
export default ClearAll;
|
Libraries/Components/Button.js | hoangpham95/react-native | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
* @generate-docs
*/
'use strict';
const Platform = require('../Utilities/Platform');
const React = require('... |
node_modules/react-native/local-cli/generator/templates/index.android.js | Right-Men/Ironman | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class <%= name %> extends Component {
render() {
return (
<View style={styles.contain... |
app/components/Admin/Routes/ListCategoriesRoute/index.js | VineRelay/VineRelayStore | import React from 'react';
import PropTypes from 'prop-types';
import { QueryRenderer, graphql } from 'react-relay';
import relayEnvironment from 'app/config/relay';
import PageError from 'app/components/Common/PageError';
import PageLoader from 'app/components/Common/PageLoader';
import DashboardLayout from 'app/compo... |
src/components/Navigation/Navigation.js | grahamplata/grahamplata-gatsbyJS | import React from 'react'
import Link from 'gatsby-link'
import './Navigation.scss'
class Navigation extends React.Component {
render() {
return (
<div>
<header className="nav">
<div className="container">
<div className="nav-left">
<Link className="nav-item" to... |
examples/auth-with-shared-root/components/User.js | stshort/react-router | import React from 'react'
const User = React.createClass({
render() {
return <h1>User: {this.props.params.id}</h1>
}
})
module.exports = User
|
fluxible-router/components/Nav.js | devypt/flux-examples | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import {NavLink} from 'fluxible-router';
class Nav extends React.Component {
render() {
return (
<ul className="pure-menu pure-menu-op... |
src/components/SpiritViewer/stats.js | aaron-edwards/Spirit-Guide | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
import calc from '../../utils/calc';
export default class Stats extends Component {
calculate(formula) {
if(this.props.force && this.props.force !== 'formula') {
return Math.max(1, Math.ceil(calc(formul... |
examples/es6/config/react.js | lore/lore | /**
* Configuration file for React
*
* This file is where you define overrides for the default mounting behavior.
*/
// import React from 'react';
// import ReactDOM from 'react-dom';
// import { Provider } from 'react-redux';
// import { Router } from 'react-router';
export default {
/**
* ID of DOM Elemen... |
es/_wlk/icons/Instagram.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import _extends from "@babel/runtime/helpers/builtin/extends";
import React from 'react';
import SvgIcon from "@material-ui/core/es/SvgIcon"; // Instagram icon from the Font-Awesome icon font by Dave Gandy:
// http://fontawesome.io/icon/instagram/
// https://github... |
frontend/src/components/controls/StandaloneRecorderUI/index.js | webrecorder/webrecorder | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Collapsible from 'react-collapsible';
import { Button, Col, Form, Row } from 'react-bootstrap';
import { appHost, defaultRecDesc } from 'config';
import { addTrailingSlash, apiFetch, fixMalformedU... |
widgets/src/button/button.js | joshferrell/hapi-maily | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Button extends Component {
static contextTypes = {
styles: PropTypes.shape({
colors: PropTypes.object.isRequired
}).isRequired
};
static propTypes = {
children: PropTypes.node.isRequired... |
assets/jqwidgets/demos/react/app/kanban/disablecollapse/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxKanban from '../../../jqwidgets-react/react_jqxkanban.js';
class App extends React.Component {
render() {
let fields = [
{ name: 'id', type: 'string' },
{ name: 'status', map: 'state', type: 'string' },
... |
examples/todo/js/components/TodoApp.js | tmitchel2/relay | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import AddTodoMut... |
eventkit_cloud/ui/static/ui/app/components/MapTools/SearchAOIButton.js | venicegeo/eventkit-cloud | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { withTheme } from '@material-ui/core/styles';
import ActionSearch from '@material-ui/icons/Search';
import ContentClear from '@material-ui/icons/Clear';
export class SearchAOIButton extends Component {
constructor(props) {
... |
src/parser/shared/modules/items/bfa/pvp/DreadGladiatorsBadge.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import ITEMS from 'common/ITEMS/index';
import Analyzer from 'parser/core/Analyzer';
import UptimeIcon from 'interface/icons/Uptime';
import PrimaryStatIcon from 'interface/icons/PrimaryStat';
import ItemStatistic from 'interface/statistics/ItemStati... |
app/javascript/mastodon/features/hashtag_timeline/index.js | yi0713/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import ColumnSettingsContainer from './... |
src/App.js | atyenoria/chat-server-client | import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
class Counter extends Component {
constructor(props) {
super(props);
this.state = { counter: 0 };
this.interval = setInterval(() => this.tick(), 1000);
}
tick() {
this.setState({
counter: this.state.coun... |
docs/src/app/components/pages/components/DropDownMenu/ExampleLongMenu.js | IsenrichO/mui-with-arrows | import React from 'react';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
const items = [];
for (let i = 0; i < 100; i++ ) {
items.push(<MenuItem value={i} key={i} primaryText={`Item ${i}`} />);
}
export default class DropDownMenuLongMenuExample extends React.Compo... |
packages/react/src/components/forms/InputNumber/InputNumber.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import { action } from '@storybook/addon-actions';
import InputNumber from './index';
import InputNumberDocs from './InputNumber.md';
export const InputNumberExample = (args) => {
const storyProps = {
style: (args.inline) ? { width:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.