path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/javascript/mastodon/features/compose/components/compose_form.js | danhunsaker/mastodon | import React from 'react';
import CharacterCounter from './character_counter';
import Button from '../../../components/button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ReplyIndicatorContainer from '../containers/reply_indicator_container';
import Autosugges... |
src/components/comment-box-authenticated.js | Doko-Demo-Doa/CSClient-RN | 'use strict';
import React from 'react';
import { Icon, Button } from 'native-base';
import { Field, reduxForm } from 'redux-form';
import { View, Text, TextInput } from 'react-native';
import { receiveComment } from '../actions/actions-content';
import API from '../services/api';
import Styles from './_styles/styles-c... |
js/containers/Filter.js | eugeneglova/react-redux-form | import React from 'react';
import { applyFilter } from '../actions';
import { Field, reduxForm } from 'redux-form';
const Filter = (
({ dispatch, change }) => (
<tr>
<td>
<input type="checkbox" />
</td>
<td>
<Field name="title" placeholder="Title" component="input" type="text" onChange={() => disp... |
node_modules/react-bootstrap/es/Accordion.js | firdiansyah/crud-req | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import PanelGroup from '... |
hocs/BaseScreen.js | nattatorn-dev/expo-with-realworld | import React from 'react'
import { Dimensions } from 'react-native'
import { ScreenOrientation } from 'expo'
import PropTypes from 'prop-types'
export default class BaseScreen extends React.Component {
static propTypes = {
navigation: PropTypes.object.isRequired,
}
static navigationOptions = ( { navigation ... |
examples/todomvc/containers/Root.prod.js | inderps/redux-qa-monitor | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import TodoApp from './TodoApp';
export default class Root extends Component {
render() {
const { store } = this.props;
return (
<Provider store={store}>
<TodoApp />
</Provider>
);
}
}
|
node_modules/react-bootstrap/src/Input.js | gitoneman/react-soc | import React from 'react';
import classSet from 'classnames';
import Button from './Button';
import FormGroup from './FormGroup';
const Input = React.createClass({
propTypes: {
type: React.PropTypes.string,
label: React.PropTypes.node,
help: React.PropTypes.node,
addonBefore: React.PropTypes.node,
... |
src/svg-icons/action/copyright.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCopyright = (props) => (
<SvgIcon {...props}>
<path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-... |
frontend/react/components/Navbar.js | Dishant15/TechIntrest | import React from 'react';
import {connect} from 'react-redux';
import {Link, browserHistory} from 'react-router';
import {logoutUser} from '../actions/userAction';
import {addNotification} from '../actions/pinActions';
@connect((store) => {
return {
logged: store.loggeduser.logged,
twitter_id : store.loggeduser... |
www/imports/mapPage/shortlist/attrAdd.js | ucscHexmap/hexagram |
// addAttr.js
// This allows the user to add new dynamic attributes to the current map.
import React, { Component } from 'react';
import { render } from 'react-dom';
import DialogHex from '/imports/common/DialogHex';
import Layer from '/imports/mapPage/longlist/Layer';
import { ReadFile } from '/imports/component/Rea... |
src/CarouselStandard1/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import CarouselNavigator from '../CarouselNavigator';
import IconAvaWrapper from '../IconAvaWrapper';
// import classNames from 'classnames';
import styles from './styles.css';
import Spacer from '../Spacer';
// let slideIndex = 1;
class CarouselStandard1 ... |
src/index.js | anvk/eurocup2016-bestpicks | import React from 'react';
import { Router, Redirect } from 'react-router';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import routes from './routes.js';
import { browserHistory } from 'react-router';
import configureStore from './store/configureStore.js';
ReactDOM.render(
<Provider sto... |
src/components/Header/Header.js | avidreder/monmach-client | import React from 'react'
import { IndexLink, Link } from 'react-router'
import './Header.scss'
export const Header = () => (
<div>
<h1>React Redux Starter Kit</h1>
<IndexLink to='/' activeClassName='route--active'>
Home
</IndexLink>
{' · '}
<Link to='/counter' activeClassName='route--activ... |
src/components/AddShoppingItem.js | FrozenTear7/student-life-organizer | import React from 'react'
import { connect } from 'react-redux'
import { reduxForm, Field, reset } from 'redux-form'
import { addShoppingItem } from '../actions/shoppingActions'
import renderField from './renderField'
import {positiveNumber, required} from '../utils/validateForm'
const submitShoppingItem = (values, di... |
internals/templates/containers/App/index.js | kdprojects/nichesportapp | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
react-notes/src/child.js | wumouren/react-demo | import React from 'react';
import PropTypes from 'prop-types';
import Buttons from './buttons'
export default class Child extends React.Component {
// 检测类型
static contextTypes = {
text: PropTypes.string
}
constructor(props) {
super(props)
this.state = {
text: 'child'
}
}
component... |
src/svg-icons/maps/restaurant-menu.js | ruifortes/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... |
app/src/modules/shared/components/ToolTip/ToolTip.js | betofigueiredo/homelibraries.org | import React, { Component } from 'react';
import PropTypes from 'prop-types';
// CSS
import CSSModules from 'react-css-modules';
import styles from './style.module.sass';
class ToolTip extends Component {
state = {
tooltip: false,
};
handleMouseEnter = () => {
window.clearTimeout(this.tooltip_timeout);
this... |
react-vr/Asteriods/v2/index.vr.js | nikgraf/webvr-experiments | import React from 'react';
import {
Animated,
AmbientLight,
AppRegistry,
asset,
StyleSheet,
Pano,
Text,
View,
} from 'react-vr';
import Easing from 'Easing';
import World from './components/World';
import Asteroid01 from './components/Asteroid01';
import Cockpit from './components/Cockpit';
import Earth... |
src/components/button-comment.js | bokuweb/tomato_pasta | import React, { Component } from 'react';
export default class ButtonComment extends Component {
constructor(props) {
super(props);
}
onCommentClick(item) {
if (item.isCommentOpen)
this.props.closeComment(item, this.props.activeKeyword);
else
this.props.openComment(item, this.props.activ... |
src/renderer.js | hanystudy/coder-from-22nd-century | // This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
// In the renderer process.
import React from 'react'
import ReactDOM from 'react-dom'
import WindowContainer from './components/windowContainer'
Re... |
src/components/Stop/Bus/Bus.js | mark4carter/react-hrtbus | import React from 'react'
import Radium from 'radium'
import RouteBadge from './RouteBadge'
import TimeBadge from './TimeBadge'
import Colors from '../../common/Colors'
let style = {
base: {
fontSize: '14px',
padding: '1rem',
borderBottom: '1px solid ' + Colors.beige.dark
},
cell: {
textAlign: '... |
src/svg-icons/navigation-arrow-drop-right.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../SvgIcon';
let NavigationArrowDropRight = (props) => (
<SvgIcon {...props}>
<path d="M9.5,7l5,5l-5,5V7z" />
</SvgIcon>
);
NavigationArrowDropRight = pure(NavigationArrowDropRight);
NavigationArrowDropRight.displayName = 'Navi... |
src/routes/FourOFour/FourOFour.js | keyanzhang/code-only-hacker-news | import React from 'react';
const FourOFour = () => (
<div>oh 404</div>
);
export default FourOFour;
|
src/components/weekly/GoalTable/GoalTable.js | andrew-filonenko/habit-tracker | import React from 'react';
import zip from 'lodash/zip';
import sum from 'lodash/sum';
import map from 'lodash/map';
import filter from 'lodash/filter';
import Goal from '../Goal';
import GoalTitle from '../GoalTitle';
import GoalForm from '../GoalForm';
import GoalActions from '../GoalActions';
import bem from '../../... |
packages/editor/src/core/decorators/Link/Link.js | strues/boldr | /* eslint-disable react/no-array-index-key */
/* @flow */
import React from 'react';
import type { Node } from 'react';
import type { ContentBlock, ContentState } from 'draft-js';
import { ExternalLink } from '../../../components/Icons';
import type { LinkConfig } from '../../config';
type Props = {
children: Node,... |
src/components/workspace.js | dok/react-workspace | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import Manager from '../manager';
import { ResizableBox } from 'react-resizable';
import _ from 'lodash';
import Draggable from 'react-draggable';
import SplitPane from 'react-split-pane';
import { Tab, Tabs... |
src/components/app/QRCode.js | metasfresh/metasfresh-webui-frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import onClickOutside from 'react-onclickoutside';
import { BrowserQRCodeSvgWriter } from '@zxing/library';
import currentDevice from 'current-device';
class QRCode extends Component {
constructor(props) {
super(props);
let val = ... |
07-react-refs-lab4/src/logPropsHOC.js | iproduct/course-node-express-react | import React from 'react';
function logPropsHOC(WrappedComponent) {
class LogProps extends React.Component {
componentDidUpdate(prevProps) {
console.log('old props:', prevProps);
console.log('new props:', this.props);
}
render() {
const {forwardedRef, ...rest} = this.props;
// A... |
src/index.js | kwhitaker/react-redux-webpack-boilerplate | /* global __DEV__ */
import 'babel-core/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import store from './stores/index';
let component;
if (__DEV__) {
const DevRoot = require('./containers/DevRoot');
component = React.createElement(DevRoot, {store: store});
} else {
const Root = requir... |
src/containers/viewAppearancePage/ViewAppearancePage.js | DaveOrDead/react-dnd-character-generator | import React from 'react';
import {connect} from 'react-redux';
const ViewCharacterPage = ({character}) => {
return (
<div>
<ul className="h-spacing">
<li>Size: {character.race.size}</li>
<li>Age: {character.age}</li>
<li>... |
src/components/Welcome/Welcome.js | F-Ruxton/taskata | import React from 'react';
import MainContainer from '../MainContainer/MainContainer'
import Title from '../Title/Title'
const Welcome = () => {
return (
<MainContainer>
<Title text='Welcome to Taskata!' />
<p>
Kata are detailed choreographed patterns of movements.
In English the wo... |
src/client/routes.js | nefa/Leeact | import React from 'react'
import {DefaultRoute, Redirect, NotFoundRoute, Route} from 'react-router';
import App from './components/app';
import HomePage from './pages/home-page';
import ProductForm from './pages/buy-product-form';
import TransactionHystory from './pages/transactions';
import Client2 from './pages/clie... |
apps/react/components/Compose.js | router5/examples | import React, { Component } from 'react';
import { routeNode } from 'react-router5';
class Compose extends Component {
constructor(props, context) {
super(props, context);
this.state = {
title: undefined,
message: undefined
};
this.updateTitle = this.updateTi... |
packages/ringcentral-widgets-docs/src/app/pages/Components/AuthAlert/Demo.js | ringcentral/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import AuthAlert from 'ringcentral-widgets/components/AlertRenderer/AuthAlert';
const props = {};
props.currentLocale = 'en-US';
props.message = {
message: 'test string',
};
/**
* A example of `AuthAlert`
*/
const AuthAlertDemo = () => <AuthAlert {...props} /... |
src/routes/baiviet/index.js | luanlv/comhoavang | import React from 'react';
import Home from './Home';
import fetch from '../../core/fetch';
import needFetch from '../../core/needFetch';
import Layout from '../../components/Layout';
import * as dataAction from '../../actions/data'
import { showLoading, hideLoading } from 'react-redux-loading-bar'
export default {
... |
prop-ui-poc/src/components/library/Alerts.js | somrajg7/Astoria | import React from 'react';
import {Button, Panel} from 'react-bootstrap';
import {translate} from 'react-i18next';
var CheckSvgIcon = require('babel!svg-react!../../assets/images/check.svg?name=Check');
class Alerts extends React.Component {
constructor(props) {
super(props);
// Bind functions
... |
src/components/Icons/Gmail.js | akilbekov/blog | import React from 'react';
const Gmail = props => (
<svg width={20} aria-labelledby="simpleicons-gmail-icon" viewBox="0 0 24 24" {...props}>
<path d="M24 4.5v15c0 .85-.65 1.5-1.5 1.5H21V7.387l-9 6.463-9-6.463V21H1.5C.649 21 0 20.35 0 19.5v-15c0-.425.162-.8.431-1.068A1.485 1.485 0 0 1 1.5 3H2l10 7.25L22 3h.5c.425... |
codes/reactstrap-demo/src/views/Components/SocialButtons/SocialButtons.js | atlantis1024/react-step-by-step | import React, { Component } from 'react';
class SocialButtons extends Component {
render() {
return (
<div className="animated fadeIn">
<div className="row">
<div className="col-12">
<div className="card">
<div className="card-header">
<strong>Soc... |
app/javascript/mastodon/main.js | rekif/mastodon | import * as registerPushNotifications from './actions/push_notifications';
import { default as Mastodon, store } from './containers/mastodon';
import React from 'react';
import ReactDOM from 'react-dom';
import ready from './ready';
const perf = require('./performance');
function main() {
perf.start('main()');
i... |
src/app/components/notificationList/NotificationList.js | cgrossde/Pullover | import React from 'react'
import Promise from 'promise'
import { Alert } from 'react-bootstrap'
import { resizeApp } from '../../nw/Window'
import Settings from '../../services/Settings'
import NotificationDB from '../../services/NotificationDB'
import Debug from '../../lib/debug'
import Notification from './Notificati... |
src/svg-icons/content/low-priority.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentLowPriority = (props) => (
<SvgIcon {...props}>
<path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.... |
src/components/Event/index.js | unihackhq/skilled-acolyte-frontend | import React from 'react';
import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react';
import { Title, Button } from 'bloomer';
import Loader from '../Loader';
import Page from '../Page';
import './index.scss';
const Event = ({ events }) => {
const { selected } = events;
if (!selected) {
return... |
docs/src/app/components/pages/components/DatePicker/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 datePickerReadmeText from './README';
import DatePickerExampleSimple from... |
src/components/ThirdReactionPost.js | tommy3rdweb/3rd-reaction | import React from 'react';
var ThirdReactionPost = React.createClass({
rawMarkup: function () {
return { __html: this.props.data.excerpt.rendered };
},
render: function () {
return (
<div className="col-xs-12 col-sm-6 col-md-3">
<div className="card ThirdReaction... |
app/lib/Filter.js | scriptfoundry/mobilefps | import React from 'react';
import { normalize, EventEmitter } from './Utils';
export class Filter extends React.Component {
constructor (...props) {
super(...props);
this.state = {
selectedMake: '',
selectedModel: '',
selectedOSName: '',
selectedOSVer... |
src/index.js | MeteorBlasters/credit-chase | import React from 'react';
import { render } from 'react-dom';
import { Reacteroids } from './Reacteroids';
import style from './style.css';
render(<Reacteroids />, document.getElementById('root'));
|
src/svg-icons/hardware/mouse.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareMouse = (props) => (
<SvgIcon {...props}>
<path d="M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z"/>
</SvgIcon>
);
HardwareMouse =... |
src/components/layout/layout.js | growcss/growcss-site | import React from 'react';
import PropTypes from 'prop-types';
import { StaticQuery, graphql } from 'gatsby';
import Head from 'components/head';
import Header from 'components/header';
import GlobalStyle from 'global.css.js';
const Layout = ({ data, children }) => (
<div>
<GlobalStyle />
<Head />
<Heade... |
app/javascript/mastodon/components/status.js | clworld/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import AvatarComposite from './avatar_composite';
import RelativeTimestamp from './relative_timestamp';
import DisplayNa... |
WashingmachineFrontend/vaskemaskine-app/src/commons/ErrorMessages.js | holdam/washingmachine-booking | import React from 'react';
import {Alert} from 'react-bootstrap';
function ErrorMessages(props) {
if (!props.alertVisible) {
return (
<span></span>
)
}
let errorMessages = props.children.map((errorMessage) => {
return (
<li key={errorMessage}>{errorMessage}<... |
clients/packages/admin-client/src/storybook/forms/field.js | nossas/bonde-client | import React from 'react'
import { FormProvider } from './createFormProvider'
import { fromJS } from 'immutable'
const getValue = eventOrValue =>
typeof eventOrValue === 'object'
? eventOrValue.target.value : eventOrValue
class Field extends React.Component {
/**
* Component responsible to manage the behav... |
src/playground/App.js | arqex/react-datetime | // This file is the playground used for development purposes (npm run playground)
// not part of the library
import React from 'react';
import Datetime from '../DateTime';
// import moment from 'moment';
// import 'moment/locale/tzm-latn';
// moment.locale('tzm-latn');
class App extends React.Component {
state = {
... |
examples/demo4.js | benhowell/react-grid-gallery | import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import Gallery from '../src/Gallery';
class Demo4 extends React.Component {
constructor(props){
super(props);
this.state = {
images: this.props.images
};
}
setCustomTags (i... |
packages/icons/src/md/image/PhotoFilter.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdPhotoFilter(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M38 20v18H9.96V10h18V6H10c-2.2 0-4 1.8-4 4v28c0 2.2 1.8 4 4 4h28c2.2 0 4-1.8 4-4V20h-4zm-4.04 0l1.88-4.12L39.96 14l-4.12-1.88L33.96 8l-1.88 4.12L... |
src/rocks/workspace/index.js | animachine/animachine | import React from 'react'
import ReactDOM from 'react-dom'
import source from './source'
import {collapse} from './actions'
import {SpacemanStore} from 'spaceman'
import createMountNode from './createMountNode'
import App from './App'
BETON.define({
id: 'workspace',
dependencies: ['toolbar'],
init: ({toolbar}) ... |
packages/docs/pages/plugin/side-toolbar/index.js | draft-js-plugins/draft-js-plugins | // eslint-disable-next-line import/no-unresolved
// eslint-disable-next-line import/no-duplicates
import customExampleCode from '!!raw-loader!../../../components/Examples/side-toolbar/CustomSideToolbarEditor';
// eslint-disable-next-line import/no-unresolved
import customExampleEditorBlockTypeSelectStylesCode from '!!r... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Apis/Listing/Listing.js | dewmini/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
src/app.js | alexpalombaro/react-starter-kit | import 'babel/polyfill';
import React from 'react';
import FastClick from 'fastclick';
import AppActions from './actions/AppActions';
import Global from './constants/Globals';
import { Router } from 'react-router';
import { History } from 'react-router/lib/History';
import routes from './routes';
import debug from '... |
src/main.js | scott113341/post | import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './store/createStore';
import AppContainer from './containers/AppContainer';
// ========================================================
// Store Instantiation
// ========================================================
const initialS... |
app/components/CategoryHeaderView.ios.js | marchi-martius/FreemarketRn | import React from 'react';
import { View } from 'react-native';
const CategoryHeaderView = () => <View />;
export default CategoryHeaderView;
|
src/svg-icons/image/monochrome-photos.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageMonochromePhotos = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-3.2L15 3H9L7.2 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 14h-8v-1c-2.8 0-5-2.2-5-5s2.2-5 5-5V7h8v12zm-3... |
src/svg-icons/av/web.js | ichiohta/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... |
ajax/libs/react-instantsearch/4.1.0-beta.3/Dom.js | holtkamp/cdnjs | /*! ReactInstantSearch 4.1.0-beta.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
src/components/audioTrack.js | ryu047/DBZ-Scouter | import React from 'react';
import ReactDom from 'react-dom';
var AudioTrack = React.createClass({
componentDidUpdate: function(){
ReactDom.findDOMNode(this).play();
},
render: function(){
return <audio className="track" src={this.props.track}></audio>
}
});
module.exports = AudioTrack; |
app/javascript/mastodon/components/column_header.js | danhunsaker/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { createPortal } from 'react-dom';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
import Icon from 'mastodon/components/icon';
const messages = defineMessages({
show: { id: 'column_h... |
src/TableHeaderColumn.js | prajapati-parth/react-bootstrap-table | /* eslint default-case: 0 */
/* eslint guard-for-in: 0 */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classSet from 'classnames';
import Const from './Const';
import Util from './util';
import DateFilter from './filters/Date';
import TextFilter from './filters/Text';
import Rege... |
src/svg-icons/action/trending-up.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrendingUp = (props) => (
<SvgIcon {...props}>
<path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/>
</SvgIcon>
);
ActionTrendingUp = pure(ActionTrendingUp);
ActionTrending... |
src/svg-icons/file/attachment.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileAttachment = (props) => (
<SvgIcon {...props}>
<path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.... |
src/Components/CostResult.js | michaelmilessmith/pizza-requirement-calculator | // @flow
import React from 'react'
import { connect } from 'react-redux'
import pizzaCalculator from '../pizzaCalculator'
const CostResult = ({
people,
cost,
slices,
bogof
}: { people: number, cost: number, slices: number, bogof: boolean }) => {
const { total } = pizzaCalculator({
slicesNeeded: people *... |
src/svg-icons/av/hearing.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHearing = (props) => (
<SvgIcon {...props}>
<path d="M17 20c-.29 0-.56-.06-.76-.15-.71-.37-1.21-.88-1.71-2.38-.51-1.56-1.47-2.29-2.39-3-.79-.61-1.61-1.24-2.32-2.53C9.29 10.98 9 9.93 9 9c0-2.8 2.2-5 5-5s5 2.2 ... |
src/containers/galleries.js | stefuhnee/moments | 'use strict';
import React, { Component } from 'react';
import firebase from 'firebase';
import AddGallery from '../components/add-gallery';
import GalleryThumbnail from '../components/gallery-thumbnail';
class Galleries extends Component {
constructor(props) {
super(props);
this.state = {
galleries... |
src/utils/authenticated.js | cessien/buzzer | import React, { Component } from 'react';
import * as firebase from 'firebase';
import * as config from '../../firebase.config.js';
firebase.initializeApp(config);
function requireAuth(nextState, replace) {
if(null === firebase.auth().currentUser) {
replace({
pathname: '/login',
... |
src/containers/Full/Full.js | asithagihan03/alankara-hapi | import React, { Component } from 'react';
import Header from '../../components/Header/';
import Sidebar from '../../components/Sidebar/';
import Aside from '../../components/Aside/';
import Footer from '../../components/Footer/';
import Breadcrumbs from 'react-breadcrumbs';
class Full extends Component {
render() {... |
src/components/Icons/Search.js | bogas04/SikhJS | import React from 'react';
import SVG from './SVG';
export default props => (
<SVG viewBox="0 0 1000 1000" {...props}>
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
<g><path d="M932.8,850l-201-201c56.4-67.6,90.3-154.5,90.3-249.5C822.2,184.2,647.9,10,432.7,10C217.4,10,43.2,184.2... |
client/modules/Post/__tests__/components/PostList.spec.js | Hashnode/mern-starter | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import PostList from '../../components/PostList';
const posts = [
{ name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" },
{ name: 'Mayank', title: 'Hi Mern', slug: ... |
src/components/common/Header.js | ernestomancebo/archaius-ui | import React from 'react';
const Header = () => (
<nav>
<div className="nav-wrapper">
<a href="#" className="brand-logo left">Archaius UI</a>
<ul className="right hide-on-med-and-down">
<li><a>Arch Admin</a></li>
<li><a>Arch Admin</a></li>
<li><a>Arch Admin</a></li>
</ul... |
test/integration/css-features/fixtures/browsers-old/pages/_app.js | zeit/next.js | import App from 'next/app'
import React from 'react'
import './styles.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
classic/src/scenes/mailboxes/src/Scenes/CommandPaletteScene/CommandPaletteScene.js | wavebox/waveboxapp | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import Zoom from '@material-ui/core/Zoom'
import { RouterDialog } from 'wbui/RouterDialog'
import CommandPaletteSceneContent from './CommandPaletteSceneContent'
import { withStyles } from '@material-ui... |
node_modules/react-bootstrap/es/Popover.js | vietvd88/developer-crawler | 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 ... |
client/analytics/components/partials/filter/filterItems/TimeFrame.js | Haaarp/geo | import React from 'react';
import moment from 'moment';
import { bindActionCreators } from 'redux';
import { sideBar } from './../../../../actions';
import {ListGroupItem} from 'react-bootstrap';
import FormWrap from 'konux/common/components/FormWrap';
import Label from 'konux/common/components/Label';
import * as Menu... |
examples/huge-apps/routes/Messages/components/Messages.js | stanleycyang/react-router | import React from 'react';
class Messages extends React.Component {
render () {
return (
<div>
<h2>Messages</h2>
</div>
);
}
}
export default Messages;
|
test/helpers.js | rpominov/fluce | /* @flow */
import React from 'react'
export function withDOM<T>(cb: (el: Element) => T): T {
var div = document.createElement('div')
document.body.appendChild(div)
var result = cb(div)
document.body.removeChild(div)
return result
}
export function cleanHtml(html: string): string {
return html.replace(/... |
src/components/button.js | JiaoJian1221/react-mdc-web | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import {
MDCRipple
} from '@material/ripple';
import {
MDCIconToggle,
MDCIconToggleFoundation,
} from '@material/icon-toggle'
import '@material/button/dist/mdc.button.min.css';
import '@material/fab/dist/mdc.fab.m... |
packages/mineral-ui-icons/src/IconPresentToAll.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 IconPresentToAll(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconP... |
Example/components/Home.js | Wondermall/react-native-router-flux | import React from 'react';
import {View, Text, StyleSheet} from "react-native";
import Button from "react-native-button";
import {Actions} from "react-native-router-flux";
var styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgrou... |
src/utilities/patchReact.js | esex/esex | import React from 'react'
// TODO: remove after https://github.com/facebook/react/pull/3995
const originalCreateElement = React.createElement
React.createElement = function createElement(element, ...rest) {
let type = element
if (typeof element === 'function' && !element.prototype.render) {
if (!element.Rea... |
public/javascripts/components/home.js | emodo/login-react-redux-saga | import React from 'react';
import { browserHistory } from 'react-router';
class Home extends React.Component {
loginOut() {
delete localStorage.name;
browserHistory.push('/api/login-out');
}
render() {
return (
<div className="container">
<h1 className="title">Hi {localStorage.name}</h... |
App/Components/User.js | egumerlock/skillnest | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
ListView,
ScrollView
} from 'react-native';
let styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: 20,
backgroundColor: '#ffffff',
marginTop: 95
},
hero: {
flex: 3.25,
... |
src/components/DebugForm/DebugForm.js | OR13/car2go | import React from 'react'
import { PropTypes } from 'prop-types';
import { connect } from 'react-redux'
import { Field, reduxForm, submit } from 'redux-form'
import RaisedButton from 'material-ui/RaisedButton'
import { Grid, Row, Col } from 'react-flexbox-grid';
import { Card, CardActions, CardHeader, CardText } from ... |
blueocean-material-icons/src/js/components/svg-icons/image/flip.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageFlip = (props) => (
<SvgIcon {...props}>
<path d="M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v2zm4 8h2v-2h-2v2zm0 8c1.1 0 2-.9 ... |
fields/types/boolean/BooleanColumn.js | Yaska/keystone | import React from 'react';
import Checkbox from '../../components/Checkbox';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var BooleanColumn = React.createClass({
displayName: 'BooleanColumn',
propTypes: {
col: React.PropTypes.object,
... |
blueocean-material-icons/src/js/components/svg-icons/av/hd.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvHd = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"/>
</Sv... |
src/App.js | alvincrespo/react-empathy-test | import React, { Component } from 'react';
import './App.css';
import EmpathyQuiz from './EmpathyQuiz';
class App extends Component {
renderHero() {
return (
<section className="hero">
<div className="hero-body">
<div className="container has-text-centered">
<h1 className="tit... |
src/ModalBody.js | pivotal-cf/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalBody extends React.Component {
render() {
return (
<div
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{this.props.children}
</div>
);
}
}
ModalBody.prop... |
src/routes/components/Progress/Progress.js | wv-aut/experience-plus-react-coupled | import React from 'react'
import { Link } from 'react-router'
import { PROGRESS } from '../../config/routes.config'
import './progress.scss'
const ProgressItems = (props) => {
let currentIndex = 0
for (let i = 0; i < PROGRESS.length; i++) {
if (props.path.replace(/\//, '') === PROGRESS[i].route) {
curren... |
src/App.js | vnsgbt/browb-react | import React from 'react'
import logo from './logo.svg'
import './App.css';
// Separate stateless components from containers
import Counter from './containers/Counter'
// App is just a presenter
const App = () => (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" al... |
aaf-enrollment/src/components/enrollment/test-authenticator/method-tests/FacialTest.js | MicroFocus/CX | import React from 'react';
import {STATUS_TYPE} from '../../../../ux/ux';
import * as facial from '../../../../api/devices/facial-device.api';
import t from '../../../../i18n/locale-keys';
import FacialVideo from '../../method-authenticators/FacialVideo';
const FACIAL_VIDEO_KEY = 'Test';
class FacialTest extends Reac... |
frontend/src/AddMovie/AddNewMovie/AddNewMovieModalContent.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import CheckInput from 'Components/Form/CheckInput';
import Form from 'Components/Form/Form';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
import FormLabel from 'Components/Fo... |
src/js/card/index.js | HBM/md-components | /**
* Card component
*/
import React from 'react'
import classNames from 'classnames'
const container = (name) => ({children, className}) => (
<div className={classNames(name, className)}>
{children}
</div>
)
export const Card = container('mdc-Card')
export const Actions = container('mdc-Card-actions')
exp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.