path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/editor/format-clear.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatClear = (props) => (
<SvgIcon {...props}>
<path d="M3.27 5L2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27 3.27 5zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5H6z"/>
</SvgIcon... |
src/components/AmodahlNo.js | Korkemoms/amodahl.no | // @flow
import React from 'react'
import '../MyContent.scss'
import '../App.scss'
import MyHeader from '../components/MyHeader'
import DocumentTitle from 'react-document-title'
import {
Grid,
PageHeader
} from 'react-bootstrap'
/* Purely presentational component */
const AmodahlNo = () =>
<DocumentTitle title... |
src/Page.js | bwasilewski/react-playground | import React from 'react'
import './Page.css'
class Page extends React.Component {
render() {
return(<div></div>)
}
}
export default Page
|
src/frontend/containers/auth/admin.js | PiGarageDoor/garage-pi | import React from 'react';
import { connect } from 'react-redux';
import { browserHistory } from 'react-router';
import { getAuthPropType } from 'proptypes';
export function requireAdminAuth(Component) {
class AdminAuthenticated extends React.Component {
constructor(props) {
super(props);
this.check... |
client/src/components/ElementEditor/ElementDragPreview.js | dnadesign/silverstripe-elemental | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Header from 'components/ElementEditor/Header';
import { DragLayer } from 'react-dnd';
import { elementType } from 'types/elementType';
import { elementTypeType } from 'types/elementTypeType';
import { getElementTypeConfig } from 'state... |
src/components/GameOverView.js | KtuluTeam/Ktulu | import React from 'react'
import {
Text,
View,
Button
} from 'react-native'
import { ReadLoud, ManitouInfo } from './TextViews'
import { NextFooter } from './Buttons'
export const GameOverView = ({onMenu, statueHolder, winner, onNewGame}) => {
return (
<View>
<ReadLoud text={'Koniec gry.\nWygrali ' +... |
src/components/common/HomePage.js | identiq/react-redux | import React from 'react';
const Home = () => {
return (
<div>
<h1>Petshop</h1>
<p>Manage your pet</p>
</div>
);
};
export default Home; |
app/components/search.component.js | harrietty/electron-sample-project | import React from 'react';
import Autocomplete from 'react-autocomplete';
class Search extends React.Component{
handleRenderItem (item, isHighlighted) {
const listStyles = {
item: {
padding: '2px 6px',
cursor: 'default'
},
highlightedItem: {
color: 'white',
backg... |
app/assets/javascripts/react/views/My/WorkflowPreview.js | Madek/madek-webapp | import React from 'react'
import ReactDOM from 'react-dom'
import f from 'active-lodash'
import t from '../../../lib/i18n-translate'
import cx from 'classnames'
import Renderer from '../../decorators/metadataedit/MetadataEditRenderer.cjsx'
import WorkflowCommonPermissions from '../../decorators/WorkflowCommonPermissio... |
src/containers/basicsPage/BasicsPage.js | DaveOrDead/react-dnd-character-generator | import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as charActions from '../../actions/charGenActions';
import * as apiActions from '../../actions/apiActions';
import TextInput from '../../components/textInput';
import SelectList from '../../components/se... |
src/svg-icons/image/leak-add.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLeakAdd = (props) => (
<SvgIcon {...props}>
<path d="M6 3H3v3c1.66 0 3-1.34 3-3zm8 0h-2c0 4.97-4.03 9-9 9v2c6.08 0 11-4.93 11-11zm-4 0H8c0 2.76-2.24 5-5 5v2c3.87 0 7-3.13 7-7zm0 18h2c0-4.97 4.03-9 9-9v-2c-... |
frontend/src/index.js | felipear89/promotion-admin | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import store from './store'
import routes from './routes';
ReactDOM.render(
<Provider store={store}>
<Router routes={routes} history={hashHistory} />
</Provi... |
src/svg-icons/action/zoom-in.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionZoomIn = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1... |
src/createDevToolsWindow.js | cape-io/boiler | import React from 'react'
import { render } from 'react-dom'
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
/*
* Puts Redux DevTools into a separate window.
* Based on https://gist.github.com/tlrobinson/1e63d15d3e5f33410ef7#gistcomment-1560218.
*/
export default function createDevTools... |
Redux/0/public/app.js | hugonasciutti/Exercises | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Route, Router, IndexRoute, hashHistory as history } from 'react-router';
import store from './state/store';
import { Link } from 'react-router';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvid... |
plugins/react/frontend/components/common/Button/index.js | carteb/carte-blanche | /**
* Button
*
* Render a button
*/
import React from 'react';
import styles from './styles.css';
const Button = (props) => (
<button {...props} className={`${styles.base} ${props.className}`} />
);
export default Button;
|
src/modules/propTypes.js | gilbarbara/react-joyride | // @flow
import React from 'react';
import { isValidElementType, typeOf, Element, ForwardRef } from 'react-is';
import is from 'is-lite';
function createChainableTypeChecker(validate: Function): Function {
function checkType(
isRequired: boolean,
props: Object,
propName: string,
componentName: string... |
components/Footer/index.js | willopez/project-seed | import React from 'react';
const date = new Date();
export default () => (
<footer className="mastfoot">
<div className="inner">
<p>Copyright © {date.getFullYear()} Company</p>
</div>
</footer>
);
|
lib/components/notImplemented.js | tombenke/react-ui-archetype | import React from 'react'
import Header from './header'
class NotImplemented extends React.Component {
render() {
return (
<div>
<Header brand="Error" navItems={[
{to: "/", label: "< Main"},
]} />
<main role="main" cla... |
src/pages/lab/tabs.js | mrozilla/mrozilla.cz | // ─────────────────────────────────────────────────────────────────────────────
// import
// ─────────────────────────────────────────────────────────────────────────────
import React from 'react';
import { graphql } from 'gatsby';
import { RootContainer, SEOContainer } from '~containers';
import { Main, Section, Ta... |
analysis/warlockdemonology/src/modules/talents/Dreadlash.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER, SELECTED_PLAYER_PET } from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import Events from 'parser/core/Events';
import { encodeTargetString } from 'parser/shared/modules/EnemyInstances';
import calculateEffectiveDamage from 'parser/core/ca... |
packages/stockflux-components/src/components/buttons/dialog-button/DialogButton.js | ScottLogic/bitflux-openfin | import React from 'react';
import cx from 'classnames';
import './DialogButton.css';
export default ({ children, small, className, onClick, disabled }) => (
<button
className={cx('dialog', { small, [className]: className })}
onClick={onClick}
disabled={disabled}
>
{children}
</button>
);
|
node_modules/react-error-overlay/lib/containers/StackTrace.js | kishigo/recipes-react-redux | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
packages/react-ui-components/src/DateInput/index.story.js | grebaldi/PackageFactory.Guevara | import React from 'react';
import {storiesOf, action} from '@storybook/react';
import {withKnobs, text, boolean} from '@storybook/addon-knobs';
import {StoryWrapper} from './../_lib/storyUtils';
import DateInput from '.';
storiesOf('DateInput', module)
.addDecorator(withKnobs)
.addWithInfo(
'default',
... |
src/components/shared/Checkout/Checkout.js | Terrapin-Ticketing/althea | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Order from './Order';
import Payment from './Payment';
class Checkout extends Component {
constructor(props) {
super(props);
this.state = {
name: '',
serviceFee: 1,
cardFee: (props.event.price * .30),
... |
src/app/client.js | jackyzhen/coffee-tracker | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import 'isomorphic-fetch';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { browserHistory } from 'react-router';
import { routerMiddleware } fr... |
server/sonar-web/src/main/js/apps/project-permissions/permissions-header.js | abbeyj/sonarqube | import React from 'react';
export default React.createClass({
propTypes: {
permissions: React.PropTypes.arrayOf(React.PropTypes.object).isRequired
},
render() {
let cellWidth = (80 / this.props.permissions.length) + '%';
let cells = this.props.permissions.map(p => {
return (
<th key=... |
src/components/tab/tab_body.js | woshisbb43/coinMessageWechat | import React from 'react';
import classNames from '../../utils/classnames';
/**
* Content Wrapper for Tab
*/
export default class TabBody extends React.Component {
render() {
const {children, className, ...others} = this.props;
const cls = classNames({
'weui-tab__panel': true
... |
src/components/Main.js | TheBurningRed/react-gridview | require('normalize.css/normalize.css');
require('styles/App.css');
import GridView from 'components/GridView';
import React from 'react';
class AppComponent extends React.Component {
render() {
return (
<div className="index">
<div style={{margin: '30px auto', width: 940}}>
<GridView
... |
scripts/dashboard/components/ProjectList/view.js | vedranjukic/dockerino | import React from 'react'
import { Link } from 'react-router'
import { Table } from 'react-bootstrap';
import ProjectListItem from './ProjectListItem'
function view ({projects, actions}) {
return (
<div>
<span>Projects</span>
<Link to="/project/create">Create Project</Link>
<Table striped bord... |
src/svg-icons/action/flight-land.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightLand = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2... |
.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/ReportSystem/resources/js/components/echarts/heatmapcartesian.js | LittleLazyCat/TXEY | import React from 'react'
import echarts from 'echarts'
export default class HeatmapCartesian extends React.Component{
constructor(props){
super(props);
}
autoResize() {
var chartdiv = document.getElementById('heatmap-chart');
chartdiv.style.width = '100%';
chartdiv.style.height = '500px';
}
... |
src/svg-icons/content/remove.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentRemove = (props) => (
<SvgIcon {...props}>
<path d="M19 13H5v-2h14v2z"/>
</SvgIcon>
);
ContentRemove = pure(ContentRemove);
ContentRemove.displayName = 'ContentRemove';
export default ContentRemove;
|
examples/components/Checkbox.js | etshi/optiopay-form | import React from 'react';
import { propTypes, withFormsy } from 'formsy-react';
class MyCheckbox extends React.Component {
constructor(props) {
super(props);
this.changeValue = this.changeValue.bind(this);
this.state = {
value: true,
};
}
changeValue(event) {
// setValue() will set th... |
src/components/IngestionWizardFormAdvanced/AutocompleteSemantic.js | giux78/daf-dataportal | import React from 'react'
import Autocomplete from 'react-autocomplete'
import { serviceurl } from '../../config/serviceurl.js'
function escapeRegexCharacters(str) {
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}
function getSuggestions(value, data) {
const escapedValue = escapeRegexCharacters(value.trim())... |
docs/src/PageFooter.js | leozdgao/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
let version = packageJSON.version;
if (/docs/.test(version)) {
version = version.split('-')[0];
}
const PageHeader = React.createClass({
render() {
return (
<footer className='bs-docs-footer' role='contentinfo'>
<div c... |
creditcardsimulation_redux_hooks/src/App.js | balaSpyrus/code | import React, { Component } from 'react';
import './App.css';
import Nav from './components/navigation';
class App extends Component {
render() {
return (
<div className="App">
<Nav />
</div >
);
}
}
export default App;
|
app/components/Footer/index.js | mydearxym/coder_club_frontend | import React from 'react';
import A from 'components/A';
import Wrapper from './Wrapper';
function Footer() {
return (
<Wrapper>
<section>
<p>This project is licensed under the MIT license..</p>
</section>
<section>
<p>Made with love by <A href="https://twitter.com/mxstbr">Max ... |
components/layout.js | rugead/icando | import React from 'react';
import Head from 'next/head';
import { MDXProvider } from '@mdx-js/react';
import { Header } from './header';
const components = {};
export default function Blog(props) {
const { meta, route, ...rest } = props;
console.log(props);
const sharedHead = (
<Head>
<meta property... |
examples/huge-apps/routes/Calendar/components/Calendar.js | RickyDan/react-router | import React from 'react';
class Calendar extends React.Component {
static loadProps(params, cb) {
setTimeout(() => {
cb(null, {
events: [{
id: 0, title: 'essay due'
}]
})
}, 1000);
}
render () {
var { events } = this.props;
return (
<div>
<h2... |
src/App.js | alecpblack/react-product-list | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
src/svg-icons/image/camera-rear.js | mmrtnz/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-... |
app/containers/HomePage/index.js | GeertHuls/react-async-saga-example | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a neccessity for you then you can refactor it and remove
* the ... |
src/index.js | cintiamh/ReduxPortfolio | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import portfolioApp from './reducers';
import App from './components/App';
let store = createStore(portfolioApp);
render(
<Provider store={store}>
<App />
</Provi... |
my-app/src/components/pages/projectpages/dnd2/Card.js | sThig/jabbascrypt | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import { DragSource, DropTarget } from 'react-dnd';
import ItemTypes from './ItemTypes';
import {Icon} from 'react-fa';
import { Row, Col } from 'react-flexbox-grid';
import styled from 'styled-compone... |
pages/api/checkbox.js | AndriusBil/material-ui | // @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './checkbox.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
packages/terra-icon/scripts/src/generate-example/generateThemeableIcons.js | cerner/terra-core | /* eslint-disable */
import fs from "fs";
const outputfile = fs.createWriteStream(
"../../packages/terra-core-docs/src/terra-dev-site/doc/icon/example/IconThemeable.jsx",
{ flags: "w" }
);
const generateIconAll = (iconObjs) =>
new Promise((resolve) => {
const themeableIcons = iconObjs.filter(function (iconO... |
src/Components/OurStory.js | Zangriev/Kentico | import React from 'react';
import StoryImage from '../Images/our-story.jpg';
const OurStory = () => {
return (
<div className="row">
<h1 className="title-tab">Our Story</h1>
<div className="col-sm-12">
<div className="ourstory-section center-text" style={{ backgroundImage: "url(" + StoryImage... |
packages/cockpit/ui/src/components/AddFolderModal.js | iurimatias/embark-framework | import React from 'react';
import {Button, Modal, ModalHeader, ModalBody, ModalFooter, Input} from 'reactstrap';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {isDarkTheme} from '../utils/utils';
class AddFolderModal extends React.Component {
constructor(props) {
super(props);
... |
client/containers/LoginPage.js | ashoka-ireland/ashoka-ui | import React, { Component } from 'react';
import client from 'api/client';
import PropTypes from 'prop-types';
import {
Alert,
Form,
Icon,
Input,
Button,
Card,
Row,
Col
} from 'antd';
import { browserHistory } from 'react-router';
const FormItem = Form.Item;
const logo = require('assets/img/logo-dark.pn... |
src/Screens/Disclaimer.js | saurabhj/helpline-app | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
TextInput,
Button,
TouchableHighlight,
TouchableOpacity,
AsyncStorage,
Alert,
Platform,
ScrollView,
} from 'react-native';
import { StackNavigator } from 'react-navigation';... |
src/js/components/Dashboard/LayoutForm/index.js | grommet/grommet-cms-boilerplate | /* @flow */
import React from 'react';
import FormField from 'grommet/components/FormField';
import Select from 'grommet/components/Select';
declare type OptionType = {
value: any,
label: any
} | string | number;
export default function LayoutForm(props: {
title: string,
fields: Array<{
label: string,
... |
src/pages/index.js | I4MD34TH/NooBs2 | import React from 'react'
import Link from 'gatsby-link'
import { Button, Grid, Col, Carousel } from 'react-bootstrap'
const IndexPage = () => (
<div className={'main'}>
<section className={'intro'} style={{'background-image':'url(../images/background.jpg)', 'background-size':'auto 100vh', 'background-position':... |
frontend/src/components/common/customTab.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'material-ui/Icon';
import { Tab } from 'material-ui/Tabs';
import ReportProblemIcon from 'material-ui-icons/ReportProblem';
import CheckCircle from 'material-ui-icons/CheckCircle';
import { withStyles } from 'material-ui/styles';
const s... |
src/AddPost.js | MrEfrem/TestApp | //@flow
import React from 'react'
import { withRouter } from 'react-router'
import { createReducer } from 'redux-fly'
import { compose } from 'redux'
import styled from 'styled-components'
let form
const addPost = (e, router, reduxState, reduxSetState, reduxResetState) => {
e.preventDefault()
const fieldName = red... |
src/components/Main.js | JellyKuma/gallery-by-react | require('normalize.css/normalize.css');
//require('styles/App.css');
require('styles/fonts/iconfont.css');
require('styles/app.less');
import React from 'react';
import ReactDOM from 'react-dom';
// 获取图片数据
var imgDatas = require('json!../data/imgData.json');
// 自执行函数,遍历图片
imgDatas = (function genImgUrl(imgDatasArr) {
... |
desktop-application/node_modules/react-router/es6/Lifecycle.js | santosh-surya/pcb-cnc-machine | 'use strict';
import warning from './routerWarning';
import React from 'react';
import invariant from 'invariant';
var object = React.PropTypes.object;
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation... |
stories/RenderCounter/DivRefreshable.js | Stupidism/stupid-rc-starter | import React from 'react';
import T from 'prop-types';
import { compose, withState, withHandlers, defaultProps } from 'recompose';
import WithEvents from '@storybook/addon-events';
import copyStatics from '../../src/hocs/copyStatics';
import omitPropTypes from '../../src/hocs/omitPropTypes';
const WithRefreshEvent = ... |
application/components/shared/paymentMethodsView/oneTimePaymentListItem/index.js | ronanamsterdam/squaredcoffee | import React, { Component } from 'react';
import { StyleSheet, Text, TextInput, View, WebView, ScrollView } from 'react-native';
import Button from 'react-native-button';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import AppActions from '../../../../actions';
import AwesomeIco... |
src/App.js | 353090398/big-demo | import React from 'react';
import NavHeader from './components/NavHeader';
import NavFooter from './components/NavFooter';
import NavLeft from './components/NavLeft';
class App extends React.Component {
constructor(){
super();
this.state={
showNav:false
}
}
setNavBar(){
this.setState({showN... |
ajax/libs/react-instantsearch/4.1.3/Connectors.js | sufuf3/cdnjs | /*! ReactInstantSearch 4.1.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"));
else if(typeof define === 'function' && define.... |
examples/todos-with-undo/index.js | james4388/redux | import React from 'react';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import App from './containers/App';
import todoApp from './reducers';
const store = createStore(todoApp);
const rootElement = document.getElementById('root');
React.render(
// The child must be wrapped in a funct... |
lib/Stack.js | Traviskn/react-router-native-stack | import React, { Component } from 'react';
import { Platform, View, ViewPropTypes } from 'react-native';
import { node, object, bool, string, func, oneOf } from 'prop-types';
import { withRouter } from 'react-router-native';
import StackTransitioner from './StackTransitioner';
import { PUSH, POP } from './transitionType... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | tecnologiaaxios/produccionXico | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
packages/lightning-core/common/Page.js | DaReaper/lightning-app | import React from 'react'
export const Page = ({ children }) =>
<div style={{ padding: 30, display: 'flex', flexDirection: 'column', flex: 1 }}>
{ children }
</div>
export default Page
|
2016-04-declarative-charts/assets/interactive.js | rosko/slides | import React, { Component } from 'react';
import { Heading } from 'spectacle';
export default class Interactive extends Component {
constructor() {
super();
this.state = {
count: 0
};
this.handleClick = this.handleClick.bind(this);
}
handleClick() {
this... |
src/svg-icons/action/store.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionStore = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/>
</SvgIcon>
);
ActionStore = pure(ActionStore);
ActionStore.displayName = ... |
frontend/src/Components/Table/Cells/TableRowCell.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './TableRowCell.css';
class TableRowCell extends Component {
//
// Render
render() {
const {
className,
children,
...otherProps
} = this.props;
return (
<td
className={c... |
examples/todos-with-undo/components/App.js | edge/redux | import React from 'react'
import Footer from './Footer'
import AddTodo from '../containers/AddTodo'
import VisibleTodoList from '../containers/VisibleTodoList'
import UndoRedo from '../containers/UndoRedo'
const App = () => (
<div>
<AddTodo />
<VisibleTodoList />
<Footer />
<UndoRedo />
</div>
)
e... |
src/routes/Home/components/HomeView.js | gabrielmf/SIR-EDU-2.0 | import React from 'react'
import logo from 'public/sir-edu_logo.png'
import './HomeView.scss'
export const HomeView = () => (
<div class="sir-home text-center">
<img
className='logo'
src={logo} />
<h4 class="title">Sistema Integrado de Recursos - Educacional</h4>
</div>
)
export default Home... |
frontend/src/contexts/ContextProvider.js | dreamyguy/gitinsight | import React from 'react';
import { ErrorProvider } from './ErrorProvider';
import { MenuProvider } from './MenuProvider';
import { UiProvider } from './UiProvider';
const ProviderComposer = ({ contexts, children }) =>
contexts.reduceRight((kids, parent) => React.cloneElement(parent, { children: kids }), children);
... |
frontend/app_v2/src/components/AudioMinimal/AudioMinimalContainer.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
// FPCC
import AudioMinimalPresentation from './AudioMinimalPresentation'
import AudioMinimalData from './AudioMinimalData'
function AudioMinimalContainer({ src, id, icons, iconStyling, label, buttonStyling }) {
const { buttonRef, isPlaying, onClick, onKe... |
src/components/RadioButton/RadioButton.js | jzhang300/carbon-components-react | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import uid from '../../tools/uniqueId';
export default class RadioButton extends React.Component {
static propTypes = {
checked: PropTypes.bool,
className: PropTypes.string,
defaultChecked: PropTypes.bool,... |
app/javascript/mastodon/features/account/components/header.js | vahnj/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Motion from '../../ui/util/optional_motion';
import sprin... |
client/src/components/error_block/ErrorBlock.js | thewizardplusplus/vk-group-stats | import React from 'react'
import {ALL_BLOCKS_NUMBERS, AdditionalBlock} from '../additional_block/AdditionalBlock'
import Error from '../error/Error'
export default class ErrorBlock extends React.Component {
static propTypes = {
blocksNumber: React.PropTypes.oneOf(ALL_BLOCKS_NUMBERS).isRequired,
hideRootBlock... |
assets/js/components/Lessons.js | laravelista/Laranotti | import React from 'react';
import Lesson from './Lesson.js';
class Lessons extends React.Component {
render() {
var that = this;
var lessonNodes = this.props.lessons.map((lesson, key) => {
return (
<Lesson key={key} item={lesson} watchLesson={that.props.watchLesson.b... |
src/stories/ui/iconsByCode.js | Cirych/WeatherApp | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import * as weatherIcons from '../../components/WeatherIcons';
const decorator = story => (
<div style={{backgroundColor: 'lightgreen'}}>
{story()}
</div>
);
const WI01d = weatherIcons['WI01d'];
const WI13d = weatherIcons['WI13d'];
storie... |
forms-test/src/index.js | cnewfeldt/react-lab | import React from 'react';
import ReactDOM from 'react-dom';
import Login from './Login';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(<Login />, document.getElementById('root'));
registerServiceWorker();
|
packages/mineral-ui-icons/src/IconLooks5.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 IconLooks5(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>... |
fields/types/select/SelectFilter.js | BlakeRxxk/keystone | import React from 'react';
import { Checkbox, FormField, SegmentedControl } from 'elemental';
import PopoutList from '../../../admin/src/components/PopoutList';
const TOGGLE_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true }
];
var SelectFilter = React.createClass({
getInitia... |
backend/editor/react/src/game.js | wadobo/socializa | import React, { Component } from 'react';
import TinyMCE from 'react-tinymce';
import { GameSolModal } from './common';
import { tinyMCEConfig } from './common';
import { GameChallenge } from './challenge';
class GameEditorForm extends Component {
changeField = (field, e) => {
this.props.actions.setGam... |
src/index.js | g3rg/react-redux-starter-kit | ///////////////////////////////////////////
// jquery and tether for bootstrap to use
// alternative is to link them in index.html
import 'bootstrap/dist/css/bootstrap.css';
import 'font-awesome/css/font-awesome.css';
import jquery from 'jquery';
window.$ = window.jQuery=jquery;
window.Tether=require('tether');
require... |
src/LinearProgress/LinearProgress.js | dimik/react-material-web-components | import React from 'react'
import PropTypes from 'prop-types'
import {MDCComponent} from '../MDCComponent'
import {MDCLinearProgress} from '@material/linear-progress/dist/mdc.linearProgress'
import classNames from 'classnames'
class LinearProgress extends MDCComponent {
static displayName = 'LinearProgress'
static... |
src/index.js | EssaAlshammri/reminder-pro | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import { Provider } from 'react-redux'
import { createStore } from 'redux';
import reducer from './reducers';
import './index.css'
const store = createStore(reducer);
ReactDOM.render(
<Provider store={store}><App/></P... |
app/containers/HomePage/index.js | akeel26/react-user-management | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
Examples/src/components/IconExamples.js | sitb-software/ReactNativeComponents | import React, { Component } from 'react';
import { View } from 'react-native';
import Icon from 'react-native-components/Icon';
/**
* @author 田尘殇Sean(sean.snow@live.com)
* @date 16/5/4
*/
class IconExamples extends Component {
render() {
let circleStyle = {
borderColor: '#46b8da',
borderRadius: 5... |
src/js/components/Animate.js | linde12/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import { TransitionGroup } from 'react-transition-group';
import classnames from 'classnames';
import CSSClassnames from '../utils/... |
js/components/Header.react.js | abroder/puppycat | import React from 'react'
var styles = {
/* vert/horiz center the header bar text */
display: 'flex',
justifyContent: 'center',
flexDirection: 'column',
textAlign: 'center',
width: '100vw',
height: '30px',
backgroundColor: '#F0F0F0',
borderBottom: '1px solid #DFDFDF',
}
class Header extends Reac... |
src/frontend/components/Sessions/List.js | jsonnull/aleamancer | // @flow
import React from 'react'
import styled from 'styled-components'
import Item from './ListItem'
import type { GetCurrentUserGamesType } from 'frontend/graphql/queries/currentUser/getCurrentUserGames'
const EmptyList = styled.div`
margin: 2rem 0;
`
const List = styled.div`
display: flex;
flex-wrap: wrap;... |
node_modules/react-router/es6/RouteContext.js | gurusewak/redux101 | import warning from './routerWarning';
import React from 'react';
var object = React.PropTypes.object;
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent trans... |
node_modules/react-router/es/Prompt.js | yaolei/Samoyed | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
example/src/components/ShowPointAnnotation.js | bsudekum/react-native-mapbox-gl | import React from 'react';
import {Animated, View, Text, StyleSheet} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import sheet from '../styles/sheet';
import BaseExamplePropTypes from './common/BaseExamplePropTypes';
import Page from './common/Page';
import Bubble from './common/Bubble'... |
app/components/Image/index.js | arnaudmolo/awkward-list | /**
*
* Image
*
*/
import React from 'react'
const isTweet = tweet => tweet.id_str
const Instagram = props => props.type === 'video'
? <InstagramVideo {...props} />
: <InstagramImage {...props} />
const InstagramImage = ({images}) =>
<img
width={images.low_resolution.width}
height={images.low_resoluti... |
src/components/Search/Search.js | muidea/magicSite | import React from 'react'
import PropTypes from 'prop-types'
import ReactDOM from 'react-dom'
import { Input, Select, Button, Icon } from 'antd'
import styles from './Search.less'
class Search extends React.Component {
state = {
clearVisible: false,
selectValue: (this.props.select && this.props.selectProps) ... |
services/ui/src/components/Environment/index.js | amazeeio/lagoon | import React from 'react';
import Link from 'next/link';
import moment from 'moment';
import giturlparse from 'git-url-parse';
import { Mutation } from 'react-apollo';
import DeleteEnvironmentMutation from 'lib/mutation/DeleteEnvironment';
import DeleteConfirm from 'components/DeleteConfirm';
import { bp, color } from ... |
analysis/demonhunterhavoc/src/modules/talents/EssenceBreak.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import Enemies from 'parser/shared/modules/Enemies';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
import SPELLS from 'common/SPELLS';
import { formatThous... |
src/routes/user/UserFilter.js | hhj679/mybition-web | import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import { FilterItem } from '../../components'
import { Form, Button, Row, Col, DatePicker, Input, Cascader, Switch } from 'antd'
import city from '../../utils/city'
const Search = Input.Search
const { RangePicker } = DatePicker
c... |
packages/material-ui-icons/src/Subject.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Subject = props =>
<SvgIcon {...props}>
<path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z" />
</SvgIcon>;
Subject = pure(Subject);
Subject.muiName = 'SvgIcon';
export default Subj... |
src/app.js | lzbgt/kitematic | require.main.paths.splice(0, 0, process.env.NODE_PATH);
import remote from 'remote';
var Menu = remote.require('menu');
import React from 'react';
import SetupStore from './stores/SetupStore';
import ipc from 'ipc';
import machine from './utils/DockerMachineUtil';
import metrics from './utils/MetricsUtil';
import templ... |
src/utils/CustomPropTypes.js | pandoraui/react-bootstrap | import React from 'react';
import warning from 'react/lib/warning';
import childrenToArray from './childrenToArray';
const ANONYMOUS = '<<anonymous>>';
/**
* Create chain-able isRequired validator
*
* Largely copied directly from:
* https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.