path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/social/mood-bad.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialMoodBad = (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 8zm3.5-9c.... |
src/svg-icons/av/sort-by-alpha.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSortByAlpha = (props) => (
<SvgIcon {...props}>
<path d="M14.94 4.66h-4.72l2.36-2.36zm-4.69 14.71h4.66l-2.33 2.33zM6.1 6.27L1.6 17.73h1.84l.92-2.45h5.11l.92 2.45h1.84L7.74 6.27H6.1zm-1.13 7.37l1.94-5.18 1.94 ... |
js/app.js | frequencyasia/website | import React from 'react';
import ReactDOM from 'react-dom';
import i18next from 'i18next';
import PubSub from 'pubsub-js';
import Constants from './constants';
import Chat from './components/chat/chat';
import Nav from './components/nav';
import Player from './components/player/player';
import Content from './compone... |
src/app/tabs/renungan.js | sonnylazuardi/natal-ppl-app | import React from 'react';
import MaterialUI from 'material-ui';
import axios from 'axios';
import Nav from '../tabs/nav';
let { Card, FlatButton, IconButton, RefreshIndicator, List, ListItem, Avatar, ListDivider } = MaterialUI;
import Colors from 'material-ui/lib/styles/colors';
class Renungan extends React.Componen... |
src/components/question-money.js | laurindo/game-react | import React, { Component } from 'react';
import GeneralConstant from '../constants/general_constant';
import Button from './button';
import Dialog from './dialog';
const QuestionMoney = (props) => {
return (
<div className="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<div className="card points">... |
src/svg-icons/image/camera-rear.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCameraRear = (props) => (
<SvgIcon {...props}>
<path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zm3-20H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm-5 6c-1.11 0-2-.9-2-2s.89-2 1.99-... |
src/ParkingMapApp.js | gourie/ParkingPlaza | /*
* Author: Joeri Nicolaes
* ======================
*/
// Prep required for bundling all JS packages into one single bundle.js (done offline in DEV using Webpack)
// import react
import React from 'react';
import ReactDOM from 'react-dom';
import {Button, ButtonToolbar, DropdownButton, MenuItem, Modal, Overlay, O... |
app/components/LoadingIndicator/index.js | hieubq90/react-boilerplate-3.4.0 | import React from 'react';
import Circle from './Circle';
import Wrapper from './Wrapper';
const LoadingIndicator = () =>
<Wrapper>
<Circle />
<Circle rotate={30} delay={-1.1} />
<Circle rotate={60} delay={-1} />
<Circle rotate={90} delay={-0.9} />
<Circle rotate={120} delay={-0.8} />
<Circl... |
app/javascript/mastodon/features/compose/components/upload_form.js | kazh98/social.arnip.org | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import UploadProgressContainer from '../containers/upload_progress_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import UploadContainer from '../containers/upload_container';
import SensitiveButtonC... |
src/FadeMixin.js | yuche/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import deprecationWarning from './utils/deprecationWarning';
// TODO: listen for onTransitionEnd to remove el
function getElementsAndSelf (root, classes){
let els = root.querySelectorAll('.' + classes.join('.'));
els = [].map.call(els, function(e... |
docs/app/Examples/elements/Header/index.js | jcarbo/stardust | import React from 'react'
import Types from './Types'
import Content from './Content'
import States from './States'
import Variations from './Variations'
const HeaderExamples = () => (
<div>
<Types />
<Content />
<States />
<Variations />
</div>
)
export default HeaderExamples
|
src/components/app.js | DictumMortuum/dictum-dev | 'use strict';
import injectTapEventPlugin from 'react-tap-event-plugin';
import store from '../redux/store';
import React from 'react';
import { init } from '../redux/actions';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import Bar from ... |
src/svg-icons/image/crop-5-4.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop54 = (props) => (
<SvgIcon {...props}>
<path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/>
</SvgIcon>
);
ImageCrop54 = pure(ImageCrop54);
ImageCro... |
src/common/components/TimelineNodeEditor/TrialForm/TimelineVariableSelector.js | jspsych/jsPsych-Redux-GUI | import React from 'react';
import Dialog from 'material-ui/Dialog';
import Subheader from 'material-ui/Subheader';
import IconButton from 'material-ui/IconButton';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
import Paper from 'material-ui/Paper';
import { List, ... |
source/client/components/visitor/layout/footer.js | lawshe/boda | import React from 'react';
import Row from 'react-bootstrap/lib/Row';
import Col from 'react-bootstrap/lib/Col';
import wedding from '../../../../../config/wedding.js';
import glob from 'styles/app';
import local from './_styles';
import NavList from './nav-list';
import EucThree from '../../svg/euc-3';
import EucFour ... |
src/js/components/icons/base/Link.js | odedre/grommet-final | /**
* @description Link SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @prope... |
node_modules/react-bootstrap/es/ControlLabel.js | chenjic215/search-doctor | 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/pages/conference/info/deadLine/index.js | sunway-official/acm-admin | import React, { Component } from 'react';
import { graphql, compose } from 'react-apollo';
import { queries, mutations } from '../helpers';
import Form from './Form';
import { alertOptions, MyFaCheck } from 'theme/alert';
import AlertContainer from 'react-alert';
import Loading from 'components/render/renderLoading';
... |
blueocean-material-icons/src/js/components/svg-icons/maps/local-parking.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsLocalParking = (props) => (
<SvgIcon {...props}>
<path d="M13 3H6v18h4v-6h3c3.31 0 6-2.69 6-6s-2.69-6-6-6zm.2 8H10V7h3.2c1.1 0 2 .9 2 2s-.9 2-2 2z"/>
</SvgIcon>
);
MapsLocalParking.displayName = 'MapsLocalParking';
MapsLocalParking.muiNa... |
React/onSubmit/public/components/onSubmit.js | hugonasciutti/Exercises | import React from 'react';
class OnSubmit extends React.Component {
constructor(props) {
super(props)
this.state = {
verificar: false,
css: ''
}
this.css = ''
}
hasError(e) {
e.preventDefault()
console.log('this.state.verificar: ', this.state.verificar);
if(this.state.ver... |
redux-subspace-mpeyper/src/index.js | slorber/scalable-frontend-with-elm-or-redux | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import store from './store'
import { App } from './app'
render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
)
|
2019-08~12/2019-08-01-hybrids-react/src/react-counter.js | zhoukekestar/drafts | import { define, render } from 'hybrids';
import React from 'react';
import ReactDOM from 'react-dom';
// Simple React component
import Counter from './Counter';
// This function creates update callback, which uses react-dom
// to render content in shadowRoot of the custom element.
// For production use it should su... |
app/src/assets/js/components/views/club-squad.js | Huskie/ScottishPremiershipData | /* Club view component */
import React from 'react';
import { Link } from 'react-router';
import firebaseApp from '../../modules/firebase';
import formatClub from '../../modules/utilities/format-club';
import slugify from '../../modules/utilities/slugify';
import ClubNavComponent from '../global/club-nav';
import Cl... |
src/routes/app.js | IssaTan1990/antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Layout } from '../components'
import { classnames, config, menu } from '../utils'
import { Helmet } from 'react-helmet'
import '../themes/index.less'
const { prefix } = config
const { Header, Bread, Footer, Sider, style... |
app/src/modules/Libraries/components/Book/DeleteButton.js | betofigueiredo/homelibraries.org | import React from 'react';
import PropTypes from 'prop-types';
// CSS
import CSSModules from 'react-css-modules';
import styles from './style.module.sass';
const DeleteButton = ({ handleMouseEnter, handleMouseLeave, handleBookDeleteConfirm }) => (
<button
type="button"
styleName="delete-button"
onMouseEnter={h... |
src/icons/Bowtie.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Bowtie extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M223.955,212.011c0,0,8.054-4.679,19.985-7.011c21.318-4.166,39.472-5.5,47.466,8.5c9.777,17.124,18.402,53.417,16.488,85.5
c... |
app/views/HomeView.js | hippothesis/Recipezy | /*
* Copyright 2017-present, Hippothesis, 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.
*/
'use strict';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Ima... |
client/boot/project/synapse.js | yeoh-joer/synapse | /**
* External dependencies
*/
import React from 'react'
import ReactDOM from 'react-dom'
/**
* Internal dependencies
*/
import { LayoutWithReduxStore } from 'client/controller'
function renderLayout(reduxStore) {
const layoutElement = React.createElement(LayoutWithReduxStore, {
store: reduxStore
})
R... |
example/components/component1.js | jpuri/darsh | import React, { Component } from 'react';
import { updateComponentStores } from 'react-component-store';
import Component10 from './component10';
export default class Component1 extends Component {
setData2 = function(event) {
updateComponentStores('NEW', 'data2', event.target.value);
}
render() {
return... |
frontend/src/components/common/hoc/withApplicationStatusChange.js | unicef/un-partner-portal |
// eslint-disable-next-line
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { changeAppStatus } from '../../../reducers/partnersApplicationsList';
const WithApplicationStatusChange = status => ComposedComponent => connect(
null,
dispatch => ({ changeSta... |
src/js/components/icons/base/FormDown.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
docs/snippets/plugin-api-renderTag.js | zapier/formatic | import React from 'react';
/** @jsx jsx */
import { css, jsx } from '@emotion/core';
import styled from '@emotion/styled';
const labelCss = css(`
border: 1px solid black;
`);
const RemoveItemButton = styled.button`
color: red;
`;
const passwordCss = css(`
color: red;
`);
// A helper function to render childre... |
app/components/Home.js | calebgregory/react-app | 'use strict';
import React, { Component } from 'react';
export default class Home extends Component {
render() {
return (
<h1 className="text-center">
Search by Github Username Above
</h1>
);
}
}
|
src/layouts/index.js | agitavitjuvanjan/Team-14 | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import Helmet from 'react-helmet'
import './index.css'
const Header = () => {
/*<div
style={{
background: 'rebeccapurple',
marginBottom: '1.45rem',
}}
>
<div
style={{
margin: '0 auto',... |
src/components/PlayerPage.js | jeremyfry/init-tracker | import React from 'react';
import PlayersCollection from '../containers/playerCollection';
const PlayerPage = () => {
return (
<div>
<PlayersCollection showAddPlayers={true} cssClasses={[]} addPlayer={true}/>
</div>
);
};
export default PlayerPage;
|
imports/ui/components/SearchFacet/SearchFacet.js | muhammadsasmito/meteor-solr | /* global window */
/* eslint-disable react/prefer-es6-class */
import React from 'react';
import { _ } from 'meteor/underscore';
import SearchFacetUtils from '../../../api/search/search_facet_utils';
const SearchFacet = React.createClass({
propTypes: {
name: React.PropTypes.string.isRequired,
field: Reac... |
src/button/locationButton.js | Seeingu/borrow-book | import React, { Component } from 'react';
import {
StyleSheet,
TouchableOpacity,
View,
Text,
Alert,
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import TimerMixin from 'react-timer-mixin';
import ToastUtil from '../utils/ToastUtils';
import { ComponentStyles, CommonStyles } ... |
node_modules/node_modules/recharts/demo/component/ScatterChart.js | SerendpityZOEY/Fixr-RelevantCodeSearch | import React from 'react';
import { ScatterChart, Scatter, CartesianGrid, Tooltip, Legend,
XAxis, YAxis, ZAxis, ReferenceLine, ReferenceDot, ReferenceArea } from 'recharts';
import { changeNumberOfData } from './utils';
const data01 = [
{ x: 100, y: 200, z: 200 },
{ x: 120, y: 100, z: 260 },
{ x: 170, y: 300, z... |
src/js/admin/article-edit/choose-photo-dialog/photo-group-item/photo-group-item.js | ucev/blog | import React from 'react'
import { connect } from 'react-redux'
import { photoGroupChange } from '$actions/article-edit'
// const PhotoGroupItem = ({current, gid, name, count, choose}) => (
class PhotoGroupItem extends React.Component {
constructor (props) {
super(props)
this.click = this.click.bind(this)
... |
server/sonar-web/src/main/js/apps/users/components/UsersSelectSearch.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
docs/src/app/components/pages/components/List/Page.js | kittyjumbalaya/material-components-web | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import listReadmeText from './README';
import listExampleSimpleCode from '!raw!.... |
test/integration/css-fixtures/multi-page/pages/_app.js | flybayer/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global1.css'
import '../styles/global2.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
node_modules/antd/es/table/SelectionBox.js | ZSMingNB/react-news | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import Checkbox f... |
packages/node_modules/@webex/react-component-presence-avatar/src/index.js | adamweeks/react-ciscospark-1 | import React from 'react';
import PropTypes from 'prop-types';
import {Avatar} from '@momentum-ui/react';
import {
PRESENCE_TYPE_ACTIVE,
PRESENCE_TYPE_INACTIVE,
PRESENCE_TYPE_DND,
PRESENCE_TYPE_OOO
} from '@webex/redux-module-presence';
import './momentum.scss';
const propTypes = {
image: PropTypes.string... |
fields/components/columns/IdColumn.js | geminiyellow/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
... |
src/components/EquipmentItem/EquipmentTrait.js | DaveSpringer/bmg-rap-sheets | import React from 'react'
import './style/EquipmentTrait.scss'
class EquipmentTrait extends React.Component {
render () {
return (
<div className='equipmentTrait'>
<div className='equipTraitHeader'>
<div className='equipTraitName'>
{this.props.trait.name} {this.props.trait.cos... |
app/javascript/mastodon/features/account_timeline/components/header.js | dunn/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ImmutablePureComponent from 'react-immutable-pure-component';
import MovedNote from './moved_note';
import { FormattedMessage } fro... |
Paths/React/06.Styling React Components/2-react-styling-components-m2-exercise-files/demo/After/src/index.js | phiratio/Pluralsight-materials | import React from 'react'
import ReactDOM from 'react-dom'
import DriftApp from './app'
ReactDOM.render(<DriftApp />, document.getElementById('app'))
|
src/client/index.js | ngnono/hello-babel | /**
* Created by lianghongpeng on 2016/10/17.
* http://reactjs.cn/react/docs/getting-started-zh-CN.html
* http://www.ruanyifeng.com/blog/2016/09/react-technology-stack.html
*/
import ReactDOM from 'react-dom'
import React from 'react';
import {createStore, applyMiddleware, combineReducers} from 'redux';
i... |
src/routes/Counter/components/Counter.js | adogpt/adogpt | import React from 'react'
import PropTypes from 'prop-types'
export const Counter = ({ counter, increment, doubleAsync }) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {counter}</h2>
<button className='btn btn-primary' onClick={increment}>
Increment
</button>
{' '}
<button className... |
stories/ProposalRecommendationList.stories.js | nekuno/client | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links'
import ProposalRecommendationList from '../src/js/components/ui/ProposalRecommendationList/ProposalRecommendationList.js';
storiesOf('ProposalRecom... |
app/Resources/js/app.js | Kishlin/Ehub | import React from 'react';
import ReactDom from 'react-dom';
import { Provider } from 'react-redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import { configureStore } from './store';
import Layout from './components/layout';
ReactDom.render(
<Provider store={configureStore()}>
<BrowserRou... |
app/javascript/mastodon/features/ui/components/column_loading.js | verniy6462/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Column from '../../../components/column';
import ColumnHeader from '../../../components/column_header';
const ColumnLoading = ({ title = '', icon = ' ' }) => (
<Column>
<ColumnHeader icon={icon} title={title} multiColumn={false} focusable={fa... |
src/components/Header/Header.js | xiaoyai0622/youTubeApiTest | import React from 'react'
import {IndexLink, Link} from 'react-router'
import './Header.scss'
export const Header = () => (
<div className="header">
<div className="containers">
<h1 className="header-title">Youtube API TEST</h1>
<Link to="/movies"><h3 className="header-title sub">Search Vid... |
react-native/PropertyFinder/index.android.js | vanyaland/react-demos | /**
* 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 PropertyFinder extends Component {
render() {
return (
<View style={styles.cont... |
src/PageItem.js | yuche/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.Pr... |
react-boilerplate/app/containers/NotFoundPage/index.js | Sakuyakun/Yorha-Experiment | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
export default function NotFound() {
return (
<article>
... |
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleSection.js | clemensw/stardust | import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'
const BreadcrumbExampleSection = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider />
<Breadcrumb.Section active>Search</Breadcrumb.Section>
</Breadcrumb>
)
export default BreadcrumbExamp... |
pages/api/card-content.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 './card-content.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
packages/app/app/components/Dashboard/BestNewMusicTab/BestNewMusicContent/index.js | nukeop/nuclear | import React from 'react';
import PropTypes from 'prop-types';
import { bestNewItemShape } from '../BestNewMusicMenu/BestNewMusicCard';
import styles from './styles.scss';
const BestNewMusicContent = ({
item,
albumInfoSearchByName,
artistInfoSearchByName,
history
}) => {
if (item === null) {
return nul... |
examples/universal-react/webpack.config.babel.js | urban/webpack-html-plugin | import ExtractTextPlugin, { extract } from 'extract-text-webpack-plugin'
import { HotModuleReplacementPlugin } from 'webpack'
import HtmlPlugin from '../../src'
// import evaluate from 'eval'
import React from 'react'
import { renderToString } from 'react-dom/server'
import App from './src'
const isDev = process.argv.... |
frontend/src/Settings/General/GeneralSettings.js | Radarr/Radarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Form from 'Components/Form/Form';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import ConfirmModal from 'Components/Modal/ConfirmModal';
import PageContent from 'Components/Page/PageConten... |
client/src/index.js | jvu009/Overseer-1 | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory, IndexRoute } from 'react-router';
import Root from './components/Root.jsx';
import App from './components/App.jsx';
import Signup from './components/Signup.jsx';
import Login from './components/Login.jsx';
import Dashbo... |
examples/src/components/SelectedValuesField.js | keppelen/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var SelectedValuesField = React.createClass({
displayName: 'SelectedValuesField',
propTypes: {
allowCreate: React.PropTy... |
src/ButtonGroup.js | deerawan/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const ButtonGroup = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
vertical: React.PropTypes.bool,
justified: React.PropTypes.b... |
src/Home.js | parkjoon/trivia-aficionados | import React from 'react';
import Banner from './Banner';
import Footer from './Footer';
import Header from './Header';
export default class Home extends React.Component {
render() {
return (
<div>
<Header view='home' />
<div role="main" className="main">
... |
src/components/TextInput/TextInput.js | zeegeek/ps-react-reusable-comp | import React from 'react';
import PropTypes from 'prop-types';
import Label from '../Label';
/** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */
function TextInput({htmlId, name, label, type = "text", required = false, onChange, placehold... |
src/svg-icons/image/texture.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTexture = (props) => (
<SvgIcon {...props}>
<path d="M19.51 3.08L3.08 19.51c.09.34.27.65.51.9.25.24.56.42.9.51L20.93 4.49c-.19-.69-.73-1.23-1.42-1.41zM11.88 3L3 11.88v2.83L14.71 3h-2.83zM5 3c-1.1 0-2 .9-2 ... |
src/main/resources/assets/javascripts/app.js | GabeLoins/airpal_preview_tab_fork | /**
* App Bootstrap
*/
import 'es6-shim';
import 'whatwg-fetch';
import AirpalApp from './components/AirpalApp.jsx';
import React from 'react';
// Start the main app
React.render(
<AirpalApp />,
document.querySelector('.js-react-app')
);
|
blueocean-material-icons/src/js/components/svg-icons/hardware/keyboard-capslock.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareKeyboardCapslock = (props) => (
<SvgIcon {...props}>
<path d="M12 8.41L16.59 13 18 11.59l-6-6-6 6L7.41 13 12 8.41zM6 18h12v-2H6v2z"/>
</SvgIcon>
);
HardwareKeyboardCapslock.displayName = 'HardwareKeyboardCapslock';
HardwareKeyboardCa... |
dapp/src/routes/operator/containers/page.js | airalab/DAO-IPCI | import React from 'react'
import { connect } from 'react-redux'
import i18next from 'i18next'
import Layout from '../../../shared/components/common/layout'
const Container = (props) => {
const { title, menu, children } = props
return (<Layout
title={title}
menu={menu}
>
{children}
</Layout>)
}
fu... |
carbon-sample-v2/src/main/javascript/spa/src/error/NotFoundContainer.js | ShotaOd/dabunt | import React, { Component } from 'react';
export default class NotFoundContainer extends Component {
render() {
return (<div>
<h2>
ページが見つかりません。
</h2>
</div>);
}
}
|
src/components/layout/breadcrumb.js | RexSkz/drone-ui | import React from 'react';
import './breadcrumb.less';
export const SEPARATOR = (
<i className="material-icons">chevron_right</i>
);
export default
class Breadcrumb extends React.Component {
render() {
const {elements} = this.props;
return (
<div className="breadcrumb">
<ol>
{ele... |
frontend/src/components/NavigationBar.js | textilemuseum/spinningjenny | import React from 'react'
// components
import AppBar from 'material-ui/AppBar'
import Button from 'material-ui/Button'
import IconButton from 'material-ui/IconButton'
import Grid from 'material-ui/Grid'
import { Link } from 'react-router-dom'
import Snackbar from 'material-ui/Snackbar'
import Toolbar from 'material-ui... |
app/containers/AddWorkoutPage/index.js | jasoncyu/always-be-bulking | /*
*
* AddWorkoutPage
*
*/
import React from 'react';
import { connect } from 'react-redux';
import selectAddWorkoutPage from './selectors';
import styles from './styles.css';
export class AddWorkoutPage extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
... |
frontend-admin/src/common/components/modal/modal-body.js | OptimusCrime/youkok2 | import React from 'react';
export const ModalBody = ({ children }) => (
<div className="modal-body">
{children}
</div>
);
|
flow-typed/utils.js | HenriBeck/materialize-react | import Adapter from 'enzyme-adapter-react-16';
import browserEnv from 'browser-env';
import React from 'react';
declare module 'lodash.noop' {
declare function noop(): void;
declare export default typeof noop;
}
declare module 'lodash.merge' {
declare function merge<O1: {}, O2: {}, O3: {}>(obj1: O1, obj2: O2, ... |
app/containers/KeyListener/index.js | qiubit/lamp-experiment | /*
* KeyListener
*
* Default experiment control page for researcher
*/
import React from 'react';
import { connect } from 'react-redux';
import KeyHandler, { KEYPRESS } from 'react-key-handler';
import { keyPress } from './actions';
export class KeyListener extends React.Component { // eslint-disable-line react/p... |
docs/app/Examples/elements/Button/Groups/ButtonExampleGroupIcon.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleGroupIcon = () => (
<div>
<Button.Group>
<Button icon='align left' />
<Button icon='align center' />
<Button icon='align right' />
<Button icon='align justify' />
</Button.Group>
{' '}
<But... |
shared/container/DevTools/DevTools.js | poignant-wit/blacklistSPA | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w"
>
<LogMonitor />
... |
src/components/SignupForm.js | MattMcFarland/codepix-client | import React from 'react';
import validator from 'validator';
import { FormErrors } from './partials';
import {
Button,
Input,
ButtonInput
} from 'react-bootstrap';
import { AppActions } from '../actions/AppActions';
import { AppStore } from '../stores/AppStore';
export class SignupForm extends React.Component... |
7.0.3/examples/asyncValidation/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e... |
src/components/todos/todos-list-item.js | MaxMooc/react-gallery | import React from 'react';
class ListItem extends React.Component{
detele = () => {
this.props.onDeleteItem(this.props.index);
}
checkFn = (e) => {
this.props.onCheckItem(this.props.index, e.target.checked);
}
render(){
return(
<li>
<label classNam... |
src/SelfValidateForm/NameInputer.js | appier/react-component-template | import React from 'react';
const NameIputer = React.createClass({
validator: null,
getDefaultProps() {
return {
registerValidator: ()=>{},
};
},
componentDidMount() {
this.validator = this.props.registerValidator('Name cannot be empty');
},
componentWillUnmount() {
this.validator.... |
src/views/discover/Browser.js | airloy/objective | /**
* Created by Layman <anysome@gmail.com> (http://github.com/anysome) on 16/7/9.
*/
import React from 'react';
import {StyleSheet, WebView, View, Text,
TouchableOpacity, LayoutAnimation, PixelRatio} from 'react-native';
import {analytics} from '../../app';
export default class Browser extends React.Component {
... |
packages/icons/src/md/maps/LocalFlorist.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdLocalFlorist(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M24 45c9.94 0 18-8.06 18-18-9.94 0-18 8.06-18 18zM11.21 21.5c0-1.99 1.17-3.7 2.86-4.5a4.976 4.976 0 0 1-2.86-4.5c0-2.76 2.24-5 5-5 1.05 0 2.02.3... |
app/javascript/mastodon/features/lists/components/new_list_form.js | TheInventrix/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { changeListEditorTitle, submitListEditor } from '../../../actions/lists';
import IconButton from '../../../components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = def... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/timeline/TimelineItem.js | bhathiya/test | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
src/server.js | michaelgruber/react-redux-universal-hot-example | /*global __DEVELOPMENT__*/
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 createStor... |
app/templates/pages/NoMatch.js | twixlyhq/react-site | import React from 'react';
const NoMatch = () => (
<div>
<h1>Page not found</h1>
</div>
);
export default NoMatch;
|
src/components/icons/PlayIcon.js | austinknight/ui-components | import React from 'react';
const PlayIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24">
{props.title && <title>{props.title}</title>}
<path d="M15,15 C17.21,15 19,16.79 19,19 C19,21.21 17.21,23 15,23 C12.79,23 11,21.21 11,19 C11,16.79 12.79,15 15,15 Z ... |
archimate-frontend/src/main/javascript/components/view/nodes/model_a/applicationInterface.js | zhuj/mentha-web-archimate | import React from 'react'
import _ from 'lodash'
import { ModelNodeWidget } from '../BaseNodeWidget'
export const TYPE='applicationInterface';
export class ApplicationInterfaceWidget extends ModelNodeWidget {
getClassName(node) { return 'a-node model_a applicationInterface'; }
}
|
src/app/modules/login/containers/LoginContainer/index.js | anekpattanakij/react-redux-i18n-hot-universal-boilerplate | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import * as authActions from 'app/redux/modules/auth';
import Login from 'app/modules/login/components/Login';
@connect(state => ({ user: state.get('auth').user }), authActions)
export default class Log... |
src/containers/test/ButtonContainerTest.js | opiskelija-dashboard/dashboard | import test from 'ava';
import React from 'react';
import {shallow, mount} from 'enzyme';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from 'redux-mock-store';
import ButtonContainer from '../ButtonContainer'
import sinon from 'sinon';
//tested components
import { But... |
examples/absoluteposition.js | PeteJodo/react-portal | import React from 'react';
export default class AbsolutePosition extends React.Component { // eslint-disable-line
render() {
const style = {
position: 'absolute',
top: this.props.top,
left: this.props.left,
width: this.props.width,
border: '1px solid gray',
background: '#fff',... |
tests/react_custom_funs/create_element.js | AgentME/flow | // @flow
import React from 'react';
declare var any: any;
React.createElement(); // Error: Needs a minimum of two arguments.
React.createElement('div'); // OK
React.createElement(42); // Error: Number is not a valid component type.
React.createElement('div', {}); // OK
React.createElement(42, {}); // Error: Number i... |
src/app/components/html/ToggleSwitch.js | vinodronold/fivefrets-next | import React from 'react'
import glamorous from 'glamorous'
const Container = glamorous.div({
display: 'flex',
alignItems: 'center',
justifyContent: 'center'
})
const Switch = glamorous.label(
{
position: 'relative',
display: 'inline-block',
margin: '1rem',
border: '1px solid #fff'
},
({ w... |
client/app/components/ContentEditor/customPlugins/toolbar-plugin/decorators/toolbar.js | bryanph/Geist | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
// Get a component's display name
const getDisplayName = WrappedComponent =>
WrappedComponent.displayName || WrappedComponent.name || 'WrappedComponent';
let number = 0;
// HoverToolbar decorator will render a toolbar on hovering the Wrapp... |
client/modules/core/components/table/table.js | bompi88/grand-view | // //////////////////////////////////////////////////////////////////////////////
// Document Table Component
// //////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Concept
//
// Licensed under the Apache License, Version 2.0 (the 'License');
// you may not use this file ... |
src/components/search_bar.js | theoryNine/react-video-browser | import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: '' };
}
render() {
return (
<div className="search-bar">
<input
value={this.state.term}
onChange={(event... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.