path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
assets/javascripts/kitten/components/graphics/logos/youmatter/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
import { computeFromRatio } from '../../../../helpers/utils/ratio'
export const YouMatterLogo = ({ width, height, color, ...props }) => {
const DEFAULT_WIDTH = 231
const DEFAULT_HEIGHT = 40
const computed = computeFromRatio({
defaultWidth: DEFAULT_... |
src/shared/Textarea/Textarea.js | AusDTO/dto-digitalmarketplace-frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class Textarea extends Component {
static defaultProps = {
onChange: () => {},
onBlur: () => {},
onFocus: () => {}
}
constructor(props) {
super(props)
const { value = '', limit... |
ginko/src/index.js | AesaKamar/TreeApp | import React from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter } from 'react-router-dom'
import './styles/index.css'
import App from './components/App'
ReactDOM.render((
<BrowserRouter>
<App />
</BrowserRouter>
), document.getElementById('root'))
|
docs/src/modules/components/Link.js | AndriusBil/material-ui | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import NextLink from 'next/link';
import { withStyles } from 'material-ui/styles';
import { capitalizeFirstLetter } from 'material-ui/utils/helpers';
const styles = theme => ({
root: {
textDecoration: 'n... |
check.es6.js | tidepool-org/react-toggle | import React from 'react'
export default React.createClass({
render() {
return (
<svg width="14" height="11" viewBox="0 0 14 11" xmlns="http://www.w3.org/2000/svg">
<title>
switch-check
</title>
<path d="M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 ... |
packages/@lyra/components/src/previews/BlockImagePreview.js | VegaPublish/vega-studio | import PropTypes from 'prop-types'
import React from 'react'
import styles from 'part:@lyra/components/previews/block-image-style'
const fieldProp = PropTypes.oneOfType([
PropTypes.string,
PropTypes.node,
PropTypes.func
])
export default class BlockImagePreview extends React.PureComponent {
static propTypes =... |
backend/modules/content/src/main/browser/views/Form/Item/View.js | savantly-net/sprout-platform | import React from 'react';
import { Component } from 'react';
import { connect } from 'react-redux'
import { selectRoot, resetSubmissions, saveSubmission, Form, selectError, Errors } from 'react-formio';
import {push} from 'connected-react-router';
import Loading from '../../../containers/Loading';
const View = class ... |
packages/material-ui-icons/src/MusicNote.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let MusicNote = props =>
<SvgIcon {...props}>
<path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z" />
</SvgIcon>;
MusicNote = pure(MusicNote);
MusicNote.muiName =... |
views/main.js | rakesh-mohanta/black-screen | import React from 'react';
import _ from 'lodash';
import Rx from 'rx';
import ApplicationView from './compiled/src/views/ApplicationView.js';
var keys = {
goUp: event => (event.ctrlKey && event.keyCode === 80) || event.keyCode === 38,
goDown: event => (event.ctrlKey && event.keyCode === 78) || event.keyCode ... |
example/basic/index.js | didierfranc/react-sc | import React from 'react'
import { render } from 'react-dom'
import Main from './components/Main'
export const App = () => (
<div>
<Main />
</div>
)
export const root = document.getElementById('root')
if (!module.hot) render(<App />, root)
|
src/containers/LoseBillAnalysis/ScaleAnalysis/ScaleTable.js | UncleYee/crm-ui | import React from 'react';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
import {connect} from 'react-redux';
import {getScaleDetailInfo} from 'redux/modules/loseBillAnalysis';
@connect((state) => ({
scaleDetailInfo: state.loseBillAnalysis.scaleDetailInfo || {},
}), {
getScaleDetailInfo,... |
front/src/scenes/Onboarding/casting.js | dherault/Aquest | import React from 'react';
import { Casting } from 'menestrel';
export const casting = new Casting();
export const P1 = casting.add(() => (
<div className="y8">
<h1>Aquest Technologies</h1>
<div>presents</div>
</div>
), {
topLevel: true,
visible: false,
});
|
web/src/components/edit-profile-page.js | jketcham/gangplank | import Immutable from 'immutable';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Container, Row, Col } from 'reactstrap';
import { connect } from 'react-redux';
import { fetchUs... |
src/components/custom/Comment/CommentItemHeaderAndContent.js | NE-SmallTown/React-QuietWater | /**
* v0.0.1
*
* Copyright (c) 2017
*
* Date: 2017/5/21 by Heaven
*/
import React from 'react';
import PropTypes from 'prop-types';
import DOMPurify from 'dompurify';
import { UserAvatarPopover, UserLink } from '../User';
import './CommentItemHeaderAndContent.css';
export default class CommentItemHeaderAndCont... |
src/svg-icons/device/bluetooth.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46... |
src/shared/containers/Login/index.js | rvboris/finalytics | import React from 'react';
import { push } from 'react-router-redux';
import { connect } from 'react-redux';
import { authActions } from '../../actions';
import LoginForm from '../../components/LoginForm';
const Login = ({ login, go, onSuccess }) =>
<LoginForm login={login} go={go} onSuccess={onSuccess} />;
Login.... |
HomeRange/app/pages/mine/changepassword.js | Onlyjson/yanShu_Project | /**
* @author: zhangyh-k@glondon.com
* @description:
* @Date: 2017/10/9 下午3:37
*/
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
// ImageBackground,
Image,... |
src/components/common/svg-icons/action/touch-app.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTouchApp = (props) => (
<SvgIcon {...props}>
<path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.... |
app/example/components/ExampleItem.js | clariussystems/react-orderable | import classNames from 'classnames';
import ImmutablePropTypes from 'react-immutable-proptypes';
import React from 'react';
import styles from './ExampleItem.scss';
class ExampleItem extends React.Component {
static propTypes = {
className: React.PropTypes.string,
dragging: React.PropTypes.bool,
ghost: ... |
src/list/test.js | twilson63/t63 | import React from 'react'
import test from 'tape'
import { shallow } from 'enzyme'
import List from './'
test('<List />', t => {
const wrapper = shallow(<List><li>1</li></List>)
t.ok(wrapper.contains(<li>1</li>))
t.end()
})
test('<List className />', t => {
const wrapper = shallow(<List className="green"><li>... |
extensions/hook/client.js | axax/lunuc | import React from 'react'
try {
require('./gensrc/frontendhook')
} catch (ex) {
console.log(ex)
}
export default () => {
}
|
src/svg-icons/maps/restaurant-menu.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurantMenu = (props) => (
<SvgIcon {...props}>
<path d="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2... |
javascript/index.js | jonathan-potter/webgl-shaders | import React from 'react'
import ReactDOM from 'react-dom'
import Root from 'components'
import configureStore from 'utility/configureStore'
import initializeWebGL from 'webgl/initializeWebGL'
const store = configureStore()
ReactDOM.render(
<Root store={store} initializeWebGL={initializeWebGL.bind(null, { store })... |
docs/src/app/components/pages/components/DropDownMenu/ExampleLabeled.js | manchesergit/material-ui | import React from 'react';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
export default class DropDownMenuLabeledExample extends React.Component {
constructor(props) {
super(props);
this.state = {value: 2};
}
handleChange = (event, index, value) => th... |
docs/src/app/components/pages/components/Toggle/Page.js | IsenrichO/mui-with-arrows | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import toggleReadmeText from './README';
import ToggleExampleSimple from './Exam... |
src/shared/router/index.js | SmallShrimp/node-tpl | import {Router, Route, browserHistory, IndexRoute, hashHistory} from 'react-router';
import React from 'react';
import NoMatch from '../component/NoMatch';
import App from '../container/App';
export default (
<Router history={hashHistory}>
<Route path="/" component={App}>
</Route>
<Route p... |
packages/wix-style-react/src/Proportion/Proportion.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { st, classes } from './Proportion.st.css';
import { PREDEFINED_RATIOS } from './ratios';
class Proportion extends React.PureComponent {
static PREDEFINED_RATIOS = PREDEFINED_RATIOS;
static displayName = 'Proportion';
static propTypes = {
... |
src/routes/contact/Contact.js | fvalencia/react-vimeo | /**
* 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-... |
docs/lib/examples/ControlBar.js | video-react/video-react | import React from 'react';
import { Player, ControlBar } from 'video-react';
export default props => {
return (
<Player autoPlay src="https://media.w3.org/2010/05/sintel/trailer_hd.mp4">
<ControlBar autoHide={false} className="my-class" />
</Player>
);
};
|
components/Deck/ContentModulesPanel/CollectionsPanel/CollectionsListItem.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import { defineMessages } from 'react-intl';
import removeDeckFromCollection from '../../../../actions/collections/removeDeckFromCollection';
class CollectionsListItem extends React.Component {
constructor(props) {
super(props);
this.me... |
docs/app/Examples/collections/Menu/States/Active.js | jcarbo/stardust | import React from 'react'
import { Menu } from 'stardust'
const Active = () => {
return (
<Menu compact>
<Menu.Item active>
Link
</Menu.Item>
</Menu>
)
}
export default Active
|
client/src/app/routes/forms/jcrop/components/Fields.js | zraees/sms-project | import React from 'react'
import FieldInput from './FieldInput'
const Fields = ()=>(
<div className="row margin-top-10 coords">
<div className="inline-labels">
{
['x', 'y', 'w', 'h'].map((field)=>(
<FieldInput key={field} field={field}/>
))
}
... |
docs/app/Examples/views/Comment/Content/CommentExampleActions.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Comment, Icon } from 'semantic-ui-react'
const CommentExampleActions = () => (
<Comment.Group>
<Comment>
<Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/joe.jpg' />
<Comment.Content>
<Comment.Author>Tom Lukic</Comment.Author>
<... |
src/js/components/DiscardAlert.js | ludonow/ludo-beta-react | import React from 'react';
import PropTypes from 'prop-types';
import Dialog from 'material-ui/Dialog';
import styled from 'styled-components';
import Button from './Button';
export const ButtonListWrapper = styled.div`
display: flex;
justify-content: center;
& > button {
font-size: 0.8rem;
... |
src/App/components/ResetAllSettings/index.js | hajjiTarik/SolarNews | import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { removeDataFromStorage } from '../../utils/cacheManager';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { setDefaultSettings } from '../../store/actions';
class ResetAllS... |
src/containers/App/index.js | thisiskylierose/react-boilerplate | // @flow
import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Route, withRouter } from 'react-router-dom';
import appRoutes from '../../routes';
import type { AppRoute } from '../../routes';
import * as counterActions from '../../redux/counter/actions'... |
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/FormControl.js | brett-harvey/Smart-Contracts | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import classNames from 'classnames';
import React from 'react';
import warning from 'warn... |
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDrop.js | xyzteam2016/keystone | import React from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import { Sortable } from './ItemsTableRow';
import DropZone from './ItemsTableDragDropZone';
var ItemsTableDragDrop = React.createClass({
displayName: 'ItemsTableDragDrop',
propTypes: {
colum... |
pages/page_500.js | GallenHu/Hinote | import React from 'react';
export default () => (<div>500</div>);
|
mobile/components/FloatingFAB.js | weirdsoft/coopcon | import React from 'react'
import PropTypes from 'prop-types'
import * as R from 'ramda'
import { compose, branch, renderNothing, setPropTypes, setDisplayName } from 'recompose'
import { StyleSheet, View } from 'react-native'
import { FAB } from 'react-native-paper'
const styles = StyleSheet.create({
buttonContainer:... |
client/components/annotators/article-background.js | CommonActionForum/liqen-face | import React from 'react'
import PropTypes from 'prop-types'
export default function ArticleBackground ({width, height, paths, style}) {
const renderedPaths = paths.map((p, i) => {
const [firstNode, ...restNodes] = p.nodes
const d = `M ${firstNode.x} ${firstNode.y}` + ' ' +
restNodes.map(({x, y... |
internals/templates/app.js | FlorianVoct/monPropreMix | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
react-js/deployment-webpack-apps/src/components/video_list_item.js | vanyaland/react-demos | import React from 'react';
const VideoListItem = ({video, onVideoSelect}) => {
// const video = props.video;
// const onVideoSelect = props.onVideoSelect;
const imgUrl = video.snippet.thumbnails.default.url;
const title = video.snippet.title;
return (
<li onClick={() => onVideoSelect(video)} className=... |
client/src/containers/LobbyCreateModal.js | Bekzod13/DrawSketch | /* eslint react/no-multi-comp: 0, react/prop-types: 0 */
import React, { Component } from 'react';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Label, Input, Form } from "reactstrap";
import { observer, inject } from "mobx-react";
class LobbyCreateModal extends Component {... |
src/components/Filler/Filler.js | Zoomdata/nhtsa-dashboard | import React, { Component } from 'react';
export default class Filler extends Component {
render() {
const text = this.props.text;
return <div className="filler">{text}</div>;
}
}
|
examples/async/index.js | neighborhood999/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './store/configureStore'
const store = configureStore()
render(
<Provider store={store}>
<App />
</Provider>,
document.get... |
src/containers/Asians/TabControls/RegistrationsInstitutions/CancelledRegistrationInstitutions/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import List, {
ListItem,
ListItemText
} from 'material-ui/List'
import Paper from 'material-ui/Paper'
import * as utils from 'utils'
export default connect(mapStateToProps)(({
registrationInstitutions
}) => {
const filterCancelledInstitutions = ... |
project-the-best/src/component/markdownEditor/MarkdownEditor.js | renhongl/Summary |
import React, { Component } from 'react';
import Markdown from 'react-remarkable';
import { Input } from 'antd';
import { markdownText } from '../../share/config/globalConfig';
const { TextArea } = Input;
import './style.less';
export default class MarkdownEditor extends Component{
constructor(props) {
... |
src/routes/Player/components/PlayerTextOverlay/ColorCycle/ColorCycle.js | bhj/karaoke-forever | import PropTypes from 'prop-types'
import React from 'react'
import styles from './ColorCycle.css'
const framerate = 33 // ms
class ColorCycle extends React.Component {
static propTypes = {
className: PropTypes.string,
text: PropTypes.string.isRequired,
offset: PropTypes.number,
}
shouldComponentUp... |
app/js/components/DraggableDiv.js | andela-earinde/bellatrix | import React from 'react'
import ReactDOM from 'react-dom'
/**
* Having issues implementing the draggable div,
* will implement later.
*/
class DraggableDiv extends React.Component {
constructor(props) {
super(props);
this.x_pos = 0
// this.initializeDrag = this.initializeDrag.bind(this)
// this.ha... |
examples/fluxible-router/components/Nav.js | pablolmiranda/fluxible | /**
* 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';
function Nav () {
return (
<ul className="pure-menu pure-menu-open pure-menu-horizontal">
<li... |
src/RadioButton/RadioButton.js | pradel/material-ui | import React from 'react';
import transitions from '../styles/transitions';
import EnhancedSwitch from '../internal/EnhancedSwitch';
import RadioButtonOff from '../svg-icons/toggle/radio-button-unchecked';
import RadioButtonOn from '../svg-icons/toggle/radio-button-checked';
function getStyles(props, context) {
cons... |
envkey-react/src/components/forms/app/app_settings_form.js | envkey/envkey-app | import React from 'react'
import R from 'ramda'
import h from "lib/ui/hyperscript_with_helpers"
import SmallLoader from 'components/shared/small_loader'
import BasicRenameForm from '../shared/basic_rename_form'
import DeleteField from '../shared/delete_field'
const label = "App"
export default class AppSettingsForm e... |
src/svg-icons/action/settings-bluetooth.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.... |
src/RevealBase.js | rnosov/react-reveal | /*
* RevealBase Component For react-reveal
*
* Copyright © Roman Nosov 2016, 2017
*
* 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 { string, object, number, bool, func, oneOfType, oneOf, shape, ... |
node_modules/_rc-calendar@9.0.4@rc-calendar/es/mixin/CalendarMixin.js | ligangwolai/blog | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import moment from 'moment';
import { isAllowedDate as _isAllowedDate, getTodayTime } from '../util/index';
function noop() {}
function getNow() {
r... |
Projets/JS/React/Projet 3 BAR/myRecipeBox/src/components/Header.js | thib123/TPJ | import React from 'react';
class Header extends React.Component {
convertirPseudo = (pseudo) => {
return /[aeiouy]/i.test(pseudo[0]) ? `d'${pseudo}` : `de ${pseudo}`;
};
render() {
return (
<header>
<h1>La boîte à recettes {this.convertirPseudo(this.props.pseudo)}</h1>
</header>
)
}
static pro... |
src/app/app.js | SirKettle/super-game |
'use strict';
console.log('hello super app');
import React from 'react';
import ReactDom from 'react-dom';
import { Router, hashHistory } from 'react-router';
import routes from './routes';
console.log(routes);
ReactDom.render( <Router routes={ routes } history={ hashHistory } />, document.getElementById( 'SuperG... |
src/components/video_detail.js | adithengky/react2602 | import React from 'react';
const VideoDetail = ({video}) => {
if(!video) {
return <div>Loading.....</div>
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
return(
<div className="video-detail col-md-8">
<div className="embed-responsive embed-responsive-16by9">
... |
src/desktop/apps/isomorphic-relay-example/routes/react-loadable/Example1.js | kanaabe/force | import React from 'react'
export default function Example1() {
return <div>Async Component 1</div>
}
|
src/client/app/AppComponent.js | raghuveerkancherla/yata | import React from 'react';
import Filters from './content_filters/Filters';
import PageListSidebarContainer from './page_list_sidebar/PageListSidebarContainer';
import VisibleContentItemContainer from './content_items/VisibleContentItemContainer';
import styles from './styles.less';
import ClassNames from 'classnames/b... |
src/js/components/Design.js | bryanjacquot/theme-designer-capstone | import React, { Component } from 'react';
import Section from 'grommet/components/Section';
import Anchor from 'grommet/components/Anchor';
import Carousel from 'grommet/components/Carousel';
import Pdf from 'grommet/components/icons/base/DocumentPdf';
export default class Design extends Component {
constructor() {... |
app/index.js | wederribas/battle-of-coders | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
require('./index.css');
import App from './components/App';
ReactDOM.render(
<App/>,
document.getElementById('app')
);
|
packages/components/src/List/Toolbar/ColumnChooserButton/ColumnChooser/ColumnChooserRow/RowCheckbox/RowCheckbox.component.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import Icon from '../../../../../../Icon';
import RowLabel from '../RowLabel';
import cssModule from '../../ColumnChooser.scss';
import { getTheme } from '../../../../../../theme';
import Checkbox from '../../../../../../Checkbox';
const theme = getTheme(c... |
node_modules/semantic-ui-react/src/collections/Table/TableBody.js | mowbell/clickdelivery-fed-test | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
function TableBody(props) {
const { children, className } = props
const classes = cx(className)
const rest = getUnhandledProps(Ta... |
docs/app/Examples/elements/Reveal/Types/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const RevealTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Fade'
description='An el... |
lib/components/TabView/index.js | 0mkara/etheratom | 'use babel'
// Copyright 2018 Etheratom Authors
// This file is part of Etheratom.
// Etheratom is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any la... |
src/forms/GradeForm/GradeForm.js | llukasxx/school-organizer-front | import React from 'react'
import { reduxForm } from 'redux-form'
import * as actions from '../../redux/modules/GroupsReducer'
export const fields = ['grade', 'description']
const validate = (values) => {
const errors = {}
return errors
}
export class Grade extends React.Component {
constructor(props) {
sup... |
src/routes/admin/index.js | ACGNTaiwan/acgnFront | /**
* 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 Layout from '../../co... |
node_modules/antd/es/spin/index.js | prodigalyijun/demo-by-antd | 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... |
jenkins-design-language/src/js/components/material-ui/svg-icons/navigation/fullscreen-exit.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NavigationFullscreenExit = (props) => (
<SvgIcon {...props}>
<path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/>
</SvgIcon>
);
NavigationFullscreenExit.displayName = 'NavigationFullscreenExit';
Navigatio... |
src/svg-icons/av/web.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvWeb = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/>
</SvgIcon>
);
AvWeb = pur... |
src/app/development/permits/Permit.js | cityofasheville/simplicity2 | import React from 'react';
import PropTypes from 'prop-types';
import gql from 'graphql-tag';
import moment from 'moment';
import { Query } from 'react-apollo';
import LoadingAnimation from '../../../shared/LoadingAnimation';
import PermitsMap from './PermitsMap';
import PermitSearchBar from './PermitSearchBar';
import... |
fields/types/geopoint/GeoPointField.js | webteckie/keystone | import Field from '../Field';
import React from 'react';
import { FormRow, FormField, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'GeopointField',
focusTargetRef: 'lat',
valueChanged (which, event) {
this.props.value[which] = event.target.value;
this.props.onChange({
path: t... |
src/NotesList.js | rajington/vesper-trello | import React from 'react';
import { ListGroup, ListGroupItem } from 'react-bootstrap';
import { orderBy } from 'lodash';
export default ({notes}) => {
const notesList = orderBy(notes, 'title')
.map((note, i) => (
<ListGroupItem key={i} disabled={note.archived}>
{ note.title }
</ListGroupItem>... |
src/pages/post.js | MRmac1/blog | /**
* 文章详情页
*/
import React from 'react'
import Link from 'gatsby-link'
export default ({ data }) => {
return (
<div>
<h1>Hi from the second page</h1>
<p>Welcome to page 2</p>
<Link to="/">Go back to the homepage</Link>
</div>
)
}
export const query = graphql`
query MyFilesQuery {
a... |
src/components/App.js | FelixGeelhaar/React-Boilerplate | import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { Route, Switch } from 'react-router';
import { ConnectedRouter } from 'react-router-redux';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
// Components
import Home from '../pages/Home'... |
packages/icons/src/md/toggle/CheckboxIndeterminate.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdCheckboxIndeterminate(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M38.022 6a4.018 4.018 0 0 1 4.006 4.006V38.05a4.018 4.018 0 0 1-4.006 4.007H9.978a4.018 4.018 0 0 1-4.006-4.007V10.006A4.018 4.018 0 0 ... |
docs/app/Examples/modules/Popup/Usage/PopupExampleNested.js | koenvg/Semantic-UI-React | import React from 'react'
import { Button, Grid, Popup } from 'semantic-ui-react'
const PopupExampleNested = () => (
<Popup wide trigger={<Button content='Are you the one?' />} on='click'>
<Grid divided columns='equal'>
<Grid.Column>
<Popup
trigger={<Button color='blue' content='Blue Pill... |
client/components/user-home/index.js | wordupapp/wordup | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Button, Container, Header, Icon, Image, Grid, List, Table, Label } from 'semantic-ui-react';
import styles from './styles';
/**
* COMPONENT
*/
export const UserHome = props => {
const { email, name, phon... |
src/admin/client/modules/shared/imageUploadMultiple/index.js | cezerin/cezerin | import React from 'react';
import {
SortableContainer,
SortableElement,
arrayMove
} from 'react-sortable-hoc';
import settings from 'lib/settings';
import style from './style.css';
import GalleryItem from './item';
import MultiUploader from './uploader';
const SortableItem = SortableElement(({ image, onDelete, onIm... |
src/components/Post/Comments/Comments.js | faizhasim/faizhasim.github.io | // @flow strict
import React from 'react';
import ReactDisqusComments from 'react-disqus-comments';
import { useSiteMetadata } from '../../../hooks';
type Props = {
postTitle: string,
postSlug: string
};
const Comments = ({ postTitle, postSlug }: Props) => {
const { url, disqusShortname } = useSiteMetadata();
... |
blueocean-material-icons/src/js/components/svg-icons/editor/border-style.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const 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>
);
EditorBorderStyle.displayName = 'E... |
web/src/components/common/Button.js | arieled91/openteam | import React from 'react';
import PropTypes from 'prop-types';
import {Button, Glyphicon} from "react-bootstrap";
import {Route} from "react-router-dom";
import {button} from "../locale/CommonLocale";
const buttonMargin={
marginRight: '10px',
marginLeft: '10px'
};
export const ButtonNavigate = (props) => {
c... |
imports/ui/pages/Note/pages/AllSentNotes/index.js | ShinyLeee/meteor-album-app | import React, { Component } from 'react';
import ViewLayout from '/imports/ui/layouts/ViewLayout';
import SecondaryNavHeader from '/imports/ui/components/NavHeader/Secondary';
import withLoadable from '/imports/ui/hocs/withLoadable';
const AsyncAllSentNotesContent = withLoadable({
loader: () => import('./containers/... |
src/views/AboutView.js | matteoantoci/expense-tracker | import React from 'react';
import { Link } from 'react-router';
export class AboutView extends React.Component {
render () {
return (
<div className='container text-center'>
<h1>This is the about view!</h1>
<hr />
<Link to='/'>Back To Home View</Link>
</div>
);
}
}
expo... |
webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js | adamruzicka/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Col, Tabs, Tab, Form, FormGroup, FormControl, ControlLabel } from 'react-bootstrap';
import { Button, Icon, Modal, Spinner, OverlayTrigger, Tooltip, MessageDialog } from 'patternfly-react';
import { isEqual } from 'lodash';
import { ... |
src/parser/druid/guardian/modules/azeritetraits/TwistedClaws.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import { calculateAzeriteEffects } from 'common/stats';
import StatTracker from 'parser/shared/modules/StatTracker';
expo... |
app/components/NavBarSearch.js | mapbox/osm-comments | import React from 'react';
import {History} from 'react-router';
import utils from '../utils';
var NavBarSearch = React.createClass({
mixins: [History],
getInitialState: function() {
return {value: this.props.query['q'] || ''};
},
componentWillReceiveProps: function(newProps) {
this.set... |
src/icons/PanoramaIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class PanoramaIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M46 36V12c0-2.21-1.79-4-4-4H6c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h36c2.21 0 4-1.79 4-4zM17 25l5 6.01L... |
src/app/core/atoms/icon/icons/mobile.js | blowsys/reservo | import React from 'react'; const Mobile = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><path d="M6,20.0066023 L6,3.99339768 C6,3.44494629 6.44882258,3 7.00247329,3 L16.9975267,3 C17.544239,3 18,3.44475929 18,3.99339768 L18,20.0066023 C18,20.5550537 17.5511774,21 16.9975267,21 L7.00247329,21 C6.45576096,21 6,20.... |
src/main/js/modules/App.js | cruftlab/random-words | import React from 'react'
import axios from 'axios'
import { RandomWord, RandomWordPart, Word } from './Word'
import { WordStatistics } from './Stats'
import Links from './Links'
class RandomWordApp extends React.Component {
constructor(props) {
super(props);
this.state = {randomWordParts: []};
... |
apps/mk-app-voucher/action.js | ziaochina/mk-demo | import React from 'react'
import ReactDOM from 'react-dom'
import { action as MetaAction, AppLoader } from 'mk-meta-engine'
import config from './config'
import { Map, fromJS } from 'immutable'
import moment from 'moment'
import utils from 'mk-utils'
import extend from './extend'
class action {
constructor(option)... |
src/client/components/home/ImageHome.js | giulianf/Start-Redux | import React, { Component } from 'react';
import { Grid, Row, Col} from 'react-bootstrap';
import { Link } from 'react-router';
export default class ImageHome extends Component {
constructor (){
super();
this.state = {index: 0, direction: null};
}
render () {
const handleCarouselSelect = (selectedI... |
ges-client/src/components/Categories.js | martenhz/ges | import React from 'react';
import {List, ListItem} from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
export default class Categories extends React.Component {
constructor(props) {
super(props);
this.state = {categories: []};
}
componentDidMount() {
// TODO: Move to service
const th... |
src/components/pages/WikiLayout/page.js | humaniq/humaniq-pwa-website | import React, { Component } from 'react';
import * as T from "prop-types";
import './styles.scss';
import {cssClassName} from 'utils';
import O_Search from 'O_Search';
const cn = cssClassName('SE_WikiLayout');
import history from 'history'
class SE_WikiLayout extends Component {
handleSubmit = (searchString) => {
... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | barretts/react-router | import React from 'react';
class Assignments extends React.Component {
render () {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
);
}
}
export default Assignments;
|
app/components/H2/index.js | mclxly/react-study | import React from 'react';
import styles from './styles.css';
function H2(props) {
return (
<h2 className={styles.heading2} { ...props } />
);
}
export default H2;
|
src/components/elements/HeaderLink.js | apburnes/allpointsburnes | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import PageLink from './PageLink'
const Comp = ({ className, text, to }) => (
<PageLink
color={'rgb(100,100,100)'}
className={className}
fontFamily={'Source Sans Pro,sans-serif'}
text={text}
to={to... |
server/react/common/Header.js | ryordanov/hobby-collection | import React from 'react';
import { NavLink } from 'react-router-dom';
const Header = () => (
<header>
{/* <div className="container-fluid"> */}
<nav className="navbar navbar-default navbar-inverse">
<div className="collapse navbar-collapse">
<ul className="n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.