path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
public/client/routes/editUser/components/officeAddressFields.js | Concorda/concorda-dashboard | 'use strict'
import React from 'react'
module.exports = {
render: function () {
return (
<div className="row">
<div className="col-xs-12 col-sm-6">
<input placeholder="office address" className="input-large"/>
</div>
<div className="col-xs-12 col-sm-6">
<input p... |
app/components/Time/index.js | rayrw/skygear-apitable | import React from 'react';
import moment from 'moment';
type TimeProps = {
children: any,
explicit: ?boolean
}
const Time = ({ children, explicit }: TimeProps) => (
<span>
{explicit ? moment(children).format('YYYY-MM-DD HH:mm:ss') : moment(children).fromNow()}
</span>
);
export default Time;
|
src/svg-icons/maps/my-location.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsMyLocation = (props) => (
<SvgIcon {...props}>
<path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.1... |
src/svg-icons/action/code.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCode = (props) => (
<SvgIcon {...props}>
<path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/>
</SvgIcon>
);
ActionCode = pure(ActionCode);
ActionCode.di... |
blueocean-material-icons/src/js/components/svg-icons/action/shopping-cart.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionShoppingCart = (props) => (
<SvgIcon {...props}>
<path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 ... |
src/components/SEO.js | dhruv-kumar-jha/react-static-complete-website | 'use strict';
import React from 'react';
import Meta from 'app/meta';
import { Helmet } from "react-helmet";
import _ from 'lodash';
const SEO = (props) => {
let content = _.find( Meta, { url: props.url || 'default' } );
if ( ! content ) {
content = _.find( Meta, { url: 'default' } );
}
return (
<... |
src/icons/font/AttachFileIcon.js | skystebnicki/chamel | import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from '../../FontIcon';
import ThemeService from '../../styles/ChamelThemeService';
/**
* AttachFile button
*
* @param props
* @param context
* @returns {ReactDOM}
* @constructor
*/
const AttachFileIcon = (props, context) => {
let t... |
spec/sections/ListSection.js | kmees/react-fabric | import React from 'react'
import List from '../../src/List'
import ListItem from '../../src/ListItem'
class ListSection extends React.Component {
constructor() {
super()
this.state = {
checked: false
}
}
_handleListItemChange() {
this.setState({
checked: !this.state.checked
})
... |
app/javascript/mastodon/features/compose/components/upload_form.js | 3846masa/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from '../../../components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
import UploadProgressContainer from '../containers/upload_progress_container';
imp... |
node_modules/react-bootstrap/es/MediaListItem.js | soniacq/LearningReact | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/svg-icons/image/vignette.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageVignette = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z"/>
</SvgIcon>... |
packages/material-ui-icons/src/CameraRear.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let CameraRear = 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-2 2... |
src/svg-icons/image/view-compact.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageViewCompact = (props) => (
<SvgIcon {...props}>
<path d="M3 19h6v-7H3v7zm7 0h12v-7H10v7zM3 5v6h19V5H3z"/>
</SvgIcon>
);
ImageViewCompact = pure(ImageViewCompact);
ImageViewCompact.displayName = 'ImageVie... |
src/parser/druid/balance/CONFIG.js | fyruna/WoWAnalyzer | import React from 'react';
import { Gebuz } from 'CONTRIBUTORS';
import retryingPromise from 'common/retryingPromise';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time mainta... |
src/components/layout/Title.js | zhoutk/material-admin | import React from 'react';
import PropTypes from 'prop-types';
import onlyUpdateForKeys from 'recompose/onlyUpdateForKeys';
import compose from 'recompose/compose';
import translate from '../../i18n/translate';
const Title = ({ defaultTitle, record, title, translate }) => {
if (!title) {
return <span>{defa... |
src/pages/works/erb-connect.js | mattmischuk/m1x | // @flow
import React from 'react'
import styled from 'styled-components'
import { Head } from '../../scenes/works'
const Container = styled.div``
const DisplayBody = styled.div`
font-size: 1rem;
font-weight: 500;
line-height: 1.4;
`
const ErbConnectTwentyEighteen = () => (
<Container className="flex flex-c... |
packages/material-ui-icons/src/DirectionsRun.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let DirectionsRun = props =>
<SvgIcon {...props}>
<path d="M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l-1... |
board/src/index.js | google-research/fool-me-twice | // Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
src/pages/UserProfile/ProfileForm.js | chaitanya1375/Myprojects | import React from 'react';
const ProfileForm = () => (
<div className="card">
<div className="header">
<h4 className="title">Edit Profile</h4>
</div>
<div className="content">
<form>
<div className="row">
<div className="col-md-5">
<div className="form-group">
... |
src/svg-icons/action/android.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAndroid = (props) => (
<SvgIcon {...props}>
<path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8... |
docs/src/app/components/pages/components/Stepper/VerticalNonLinearStepper.js | xmityaz/material-ui | import React from 'react';
import {
Step,
Stepper,
StepButton,
StepContent,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* A basic vertical non-linear implementation
*/
class VerticalNonLinear extends React.Component {... |
app/App.js | superhuahua/xunfengES | import React from 'react';
import { Layout, Menu, Icon, notification } from 'antd';
const { Content, Header, Footer } = Layout;
import { Link } from 'react-router';
import axios from 'axios';
import UploadPlugins from './components/UploadPlugins';
class App extends React.Component{
handleClick = (e) => {
... |
src/Button.js | HorizonXP/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
import ButtonInput from './ButtonInput';
const Button = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
active: React.PropTypes.bool,... |
src/docs/components/RadioButtonDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import RadioButton from 'grommet/components/RadioButton';
import FormField from 'grommet/components/FormField';
import DocsArticle from '../../components/DocsArticle';
import Code from '../../components/Code'... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | salvadorpla/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import ImmutablePropTypes from ... |
src/svg-icons/editor/border-clear.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderClear = (props) => (
<SvgIcon {...props}>
<path d="M7 5h2V3H7v2zm0 8h2v-2H7v2zm0 8h2v-2H7v2zm4-4h2v-2h-2v2zm0 4h2v-2h-2v2zm-8 0h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2V7H3v2zm0-4h2V3H3v2zm8 8h2v... |
src/layouts/PageLayout/PageLayout.js | filucian/funfunapp | import React from 'react'
import { IndexLink, Link } from 'react-router'
import PropTypes from 'prop-types'
import './PageLayout.scss'
export const PageLayout = ({ children }) => (
<div className='container text-center'>
<h1>React Redux Starter Kit</h1>
<IndexLink to='/' activeClassName='page-layout__nav-ite... |
components/input/Input.js | VACO-GitHub/vaco-components-library | import React from 'react';
import classnames from 'classnames';
import { themr } from 'react-css-themr';
import { INPUT } from '../identifiers.js';
import InjectedFontIcon from '../font_icon/FontIcon.js';
const factory = (FontIcon) => {
class Input extends React.Component {
static propTypes = {
children: R... |
app/packs/src/components/contextActions/ScanCodeButton.js | ComPlat/chemotion_ELN | import React from 'react';
import PropTypes from 'prop-types';
import {
Alert, Button, Modal, SplitButton,
FormGroup, FormControl, MenuItem
} from 'react-bootstrap';
import 'whatwg-fetch';
import Quagga from 'quagga';
import QrReader from 'react-qr-reader';
import UIActions from '../actions/UIActions';
import Utils... |
src/parser/deathknight/frost/modules/features/checklist/Component.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Checklist from 'parser/shared/modules/features/Checklist2';
import Rule from 'parser/shared/modules/features/Checklist2/Rule';
import Requirement from 'parser/shared/modul... |
test/test_helper.js | mukulikadey/SOEN341-Group1 | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
lib/connect-to-store.js | QianmiOpen/iflux-native | /**
* 随着es2015的发布,我们也要跟着时代的变化,全面进入es6时代
* 首先我们要解决的就是react的mixins的问题,因为es6没有对应的概念
* 但是,通过高阶函数的wrapper,我们仍可以很优雅的解决这个问题。
*/
import React from 'react';
/**
* connectToStore
*
* 通过高阶函数的封装使React的view和Immutable的数据层关联起来,并且可以感知到immutable的数据变化
* @param store immutable的数据中心
* @param reset 是否需要每次初始化的时候重置数据
*/
export de... |
src/index.js | pcwu/word-pusher | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import App from './App';
import Home from './components/... |
packages/react-router-website/modules/examples/Animation.js | justjavac/react-router-CN | import React from 'react'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
import {
BrowserRouter as Router,
Route,
Link,
Redirect
} from 'react-router-dom'
/* 请把以下的 css 代码和你其他的 css 放到一起
.fade-enter {
opacity: 0;
z-index: 1;
}
.fade-enter.fade-enter-active {
opacity: 1;
transiti... |
Cordial/app/components/auto-link-icon.js | AwesomePossum446/Cordial | import React from 'react';
import Autolinker from 'autolinker';
import { Linking } from 'react-native';
import TouchableIcon from './touchable-icon';
import { sanitizePhoneNumber } from '../utils/utils';
export default class AutolinkIcon extends React.Component {
constructor(props) {
super(props);
this.onPress =... |
components/Layout/Header.js | CharlesSanford/personal-site | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
src/parser/priest/holy/modules/talents/45/CosmicRipple.js | fyruna/WoWAnalyzer | import React from 'react';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import SPELLS from 'common/SPELLS/index';
import Analyzer from 'parser/core/Analyzer';
import ItemHealingDone from 'interface/others/ItemHealingDone';
// Example Log: /report/C2NGDav6KHgc8ZWd/28-Mythi... |
example/examples/CustomTiles.js | jiaminglu/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
} from 'react-native';
import MapView, { MAP_TYPES, PROVIDER_DEFAULT } from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 31.23295;
const LONGITUDE = 121.38... |
src/svg-icons/device/bluetooth.js | mmrtnz/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... |
app/index.js | ArunMichaelDsouza/tuneshuffle | // Tuneshuffle app client code
import React from 'react';
import ReactDOM from 'react-dom';
import constants from '../lib/constants';
import { createStore, applyMiddleware, compose } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import allReducers from './reducers/index';
impor... |
src/components/shared/Error.js | chatch/stellarexplorer | import React from 'react'
import Grid from 'react-bootstrap/lib/Grid'
import Row from 'react-bootstrap/lib/Row'
import {FormattedMessage} from 'react-intl'
const knownErrors = ['network']
class Error extends React.Component {
render() {
const id = this.props.match.params.id
return (
<Grid>
<Ro... |
HomeRange/app/pages/coupons/component/List_Item_Coupons.js | Onlyjson/yanShu_Project | /**
* @author: zhangyh-k@glondon.com
* @description:优惠券item
* @Date: 2017/10/9 上午10:56
*/
import React from 'react';
import { View ,Text,TouchableOpacity,Image ,StyleSheet } from 'react-native';
export default Coupons_Item = (props) => {
const {rowData,onPress} = props;
// slice(0, -1)
return (
... |
front/client/containers/CommunityForm/index.js | gazayas/tebukuro | import React from 'react'
import { connect } from 'react-redux'
import { createCommunity } from '../../actions/Community'
import CommunityForm from '../../components/CommunityForm'
const mapStateToProps = (state, ownProps) => {
return {
community: state.Community
}
}
const mapDispatchToProps = (dispatch) => {... |
src/stories/index.js | kleros/kleros-front | import React from 'react'
import { storiesOf } from '@storybook/react'
import StoryRouter from 'storybook-router'
import { Provider } from 'react-redux'
import store from '../bootstrap/store'
import Sidebar from '../Components/Sidebar'
import ShortProfile from '../Components/Sidebar/ShortProfile'
import MenuSidebar f... |
packages/test-studio/src/components/AuthorReferenceInput.js | VegaPublish/vega-studio | import React from 'react'
import PropTypes from 'prop-types'
import imageUrlBuilder from '@lyra/image-url'
import client from 'part:@lyra/base/client'
import Spinner from 'part:@lyra/components/loading/spinner'
import FormField from 'part:@lyra/components/formfields/default'
import {
PatchEvent,
set,
unset,
set... |
src/svg-icons/action/perm-camera-mic.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermCameraMic = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 ... |
src/utils/createContextWrapper.js | AlexKVal/react-bootstrap | import React from 'react';
/**
* Creates new trigger class that injects context into overlay.
*/
export default function createContextWrapper(Trigger, propName) {
return function (contextTypes) {
class ContextWrapper extends React.Component {
getChildContext() {
return this.props.context;
}... |
src/svg-icons/places/pool.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesPool = (props) => (
<SvgIcon {...props}>
<path d="M22 21c-1.11 0-1.73-.37-2.18-.64-.37-.22-.6-.36-1.15-.36-.56 0-.78.13-1.15.36-.46.27-1.07.64-2.18.64s-1.73-.37-2.18-.64c-.37-.22-.6-.36-1.15-.36-.56 0-.78... |
packages/contextApiPolyfill/DEV/App/Text.js | daniloster/react-experiments | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import BackgroundContext from './BackgroundContext';
export default class Text extends Component {
static propTypes = {
children: PropTypes.node.isRequired,
};
renderCount = 0;
render() {
const { children } = this.props;
... |
examples/query-params/app.js | BerkeleyTrue/react-router | import React from 'react'
import { render } from 'react-dom'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link } from 'react-router'
const history = useBasename(createHistory)({
basename: '/query-params'
})
class User extends React.Component {
render() {
let { userID } = this.p... |
src/routes/content/index.js | oozywaters/JOOR-react | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Content from './Content'... |
libs/utils/react.js | MeteDesign/MeteDesign | import React from 'react'
function firstChild(props) {
const childrenArray = React.Children.toArray(props.children);
return childrenArray[0] || null;
}
export {firstChild} |
src/components/posts_index.js | brenotx/simple-react-blog | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchPosts } from '../actions/index';
import { Link } from 'react-router';
class PostsIndex extends Component {
componentWillMount() {
this.props.fetchPosts();
}
renderPosts() {
return this.props.post... |
src/svg-icons/image/filter-4.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter4 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14... |
src/components/common/TouchableIcon.js | brianyamasaki/rideshare | import React from 'react';
import { TouchableOpacity } from 'react-native';
import IconFontAwesome from 'react-native-vector-icons/FontAwesome';
const TouchableIcon = (props) => {
return (
<TouchableOpacity
onPress={props.onPress}
style={[styles.containerStyleDft, props.containerStyle]}
>
... |
bootstrap-tests.js | borisyankov/react-sparklines | // bootstrap-tests.js - A tool for updating the test cases in __tests__/fixtures.js
//
// 1) Reads __tests__/fixtures.js and looks for a "dynamic part", which should be a list of fields
// belonging to that file's default export, enclosed in a pair of markers (see "signal" constants
// below).
// 2) Imports the sa... |
docs/src/app/components/pages/customization/InlineStyles.js | nathanmarks/material-ui | import React from 'react';
import Title from 'react-title-component';
import Checkbox from 'material-ui/Checkbox';
import CodeExample from '../../CodeExample';
import typography from 'material-ui/styles/typography';
class InlineStyles extends React.Component {
getStyles() {
return {
headline: {
fon... |
Project/node_modules/react-router/es/Router.js | IhtishamShah/GamifiedLearningApp | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
packages/react-server-website/components/Footer.js | lidawang/react-server | import React from 'react';
import wireUpGitHubButton from '../lib/github-button';
import wireUpSlackinButton from '../lib/slackin-button';
import './Footer.less';
export default class Footer extends React.Component {
render() {
return (
<footer>
<p>
<small>
<a href="https://www.redfin.com/">Redfin... |
chapter-12/express_server/src/pages/App.js | mocheng/react-and-redux | import React from 'react';
import {view as TopMenu} from '../components/TopMenu';
const App = ({children}) => {
return (
<div>
<TopMenu />
<div>{children}</div>
</div>
);
};
export default App;
|
src/components/common/Heading.js | dhruv-kumar-jha/productivity-frontend | 'use strict';
import React from 'react';
import { Icon } from 'antd';
const Heading = (props) => {
return (
<div className={`component__heading ${props.align || '' }`}>
<div className="icon">
<Icon type={ props.icon || 'book' } />
</div>
<div>
{ props.title &&
<h1>{ props.title }</h1>
}
... |
frontend/app/components/pages/admin/admin-link-details.js | LINKIWI/linkr | import copy from 'copy-to-clipboard';
import dottie from 'dottie';
import Helmet from 'react-helmet';
import humanize from 'humanize';
import LoadingHOC from 'react-loading-hoc';
import React from 'react';
import request from 'browser-request';
import Alert, {ALERT_TYPE_ERROR} from '../../alert';
import Authentication... |
src/containers/CalculatorPage.js | ecovirtual/dclv-calculator | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as actions from '../actions/calculatorActions';
import CalculatorForm from '../components/CalculatorForm';
export const CalculatorPage = (props) => {
return (
<Ca... |
src/components/ContactMe.js | RcrsvSquid/rcrsvsquid.github.io | import React from 'react';
import Link from 'gatsby-link';
import styled from 'styled-components';
import {BlueButton, Input, TextArea} from './index';
import {Center, Rounded, Thirds, ZDepth1} from './mixins';
export default ({handleSubmit, handleChange, state}) => (
<ContactStyle name="contact" onSubmit={handleS... |
src/parser/priest/holy/modules/checklist/Module.js | fyruna/WoWAnalyzer | import React from 'react';
import BaseChecklist from 'parser/shared/modules/features/Checklist/Module';
import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import Combatants from 'parser/shared/modules/Combatants';
import ManaValues from 'parser/shared/modules/ManaValues';
import PreparationRuleAnalyzer... |
UI-user-feed/user-feed/src/user-text-box.js | raviteja20/CodeAssessment | import React from 'react';
export default class UserTextBox extends React.Component{
render(){
return(
<form className="text-box" onSubmit ={this._onSubmit}>
<div className="text-box-fields">
<input placeholder="User Name:" ref={user => this._user = user} />
<textarea placeholder="Comment" ref=... |
src/components/Brand/Brand.js | Skoli-Code/DerangeonsLaChambre | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import Link from '../Link';
import {Logo} from '../Pictos';
import s from './Brand.css';
class Brand extends React.Component {
shouldComponentUpdate(){ return false; }
render(){
return (
<Link className={s.brand}... |
docs/src/stories/Readme.js | dowjones/react-dropdown-tree-select | import marked from 'marked'
import React from 'react'
import 'github-markdown-css/github-markdown.css'
import './utils/prism'
import Readme from '../../../README.md'
export default class Story extends React.Component {
componentDidMount() {
global.Prism && global.Prism.highlightAll()
}
render() {
ret... |
src/mui/field/ImageField.js | marmelab/admin-on-rest | import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash.get';
const styles = {
list: {
display: 'flex',
listStyleType: 'none',
},
image: {
margin: '0.5rem',
maxHeight: '10rem',
},
};
export const ImageField = ({ elStyle = {}, record, sourc... |
src/browser/fields/FieldsPage.js | skallet/este | // @flow
import React from 'react';
import buttonsMessages from '../../common/app/buttonsMessages';
import linksMessages from '../../common/app/linksMessages';
import { FormattedMessage } from 'react-intl';
import { compose } from 'ramda';
import { fields } from '../../common/lib/redux-fields';
import {
Box,
Button... |
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | ksivam/react-router | /*globals COURSES:true */
import React from 'react'
import { Link } from 'react-router'
class Sidebar extends React.Component {
render() {
let { assignments } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{assignments.map(assignment =>... |
src/components/TracksGrid/TracksGrid.js | hack-duke/hackduke-code-for-good-website | import React from 'react'
import TracksBox from 'components/TracksBox'
import {Grid, Row, Col} from 'react-bootstrap'
import classes from './TracksGrid.scss'
export const TracksGrid = () => (
<div>
<Grid className={classes.grid}>
<Row className='show-grid'>
<Col sm={6} md={6} className={classes.lef... |
src/index.js | folkrav/DiceMaster | // Libraries
import React from 'react';
import { render } from 'react-dom';
import { applyMiddleware, createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import { syncHistoryWithStore, routerReducer } from 'react-rou... |
src/svg-icons/notification/rv-hookup.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationRvHookup = (props) => (
<SvgIcon {...props}>
<path d="M20 17v-6c0-1.1-.9-2-2-2H7V7l-3 3 3 3v-2h4v3H4v3c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h8v-2h-2zm-9 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1... |
docs/app/Examples/collections/Breadcrumb/Types/BreadcrumbExample.js | jcarbo/stardust | import React from 'react'
import { Breadcrumb } from 'stardust'
const BreadcrumbExample = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider />
<Breadcrumb.Section link>Store</Breadcrumb.Section>
<Breadcrumb.Divider />
<Breadcrumb.Section active>T-Shirt</B... |
src/Root.js | vnglst/shortcut-trainer | import React from 'react'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import Routes from './Routes'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import reducer from './reducers'
// Required to fix warning for Material-UI elements
// See: https://git... |
packages/material-ui-icons/src/BorderStyle.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let BorderStyle = 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>;
Borde... |
src/svg-icons/editor/format-align-justify.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignJustify = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignJustify = pure(EditorFormatAl... |
src/routes/AccessLog/components/AccessFilterForm.js | altarit/cloudpolis-react | import React from 'react'
import {Field, reduxForm} from 'redux-form'
const validate = values => {
const errors = {}
if (!values.url) {
errors.url = 'Required'
} else if (values.url.length > 15) {
errors.url = 'Must be 15 characters or less'
}
if (!values.user) {
errors.user = 'Required'
} else... |
wrappers/md.js | caryfuk/architektka | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const post = this.props.route.page.data
return (
<div className="markdown">
... |
react/features/unsupported-browser/components/HideNotificationBarStyle.js | parisjulien/arkadin-jitsimeet | /* @flow */
import React, { Component } from 'react';
/**
* React component that represents HTML style element with CSS specific to
* unsupported mobile browser components.
*
* @private
* @returns {ReactElement}
*/
export default class HideNotificationBarStyles extends Component {
/**
* Implements Rea... |
src/components/home/Home.js | EKlevrai/courantderacines | import React, { Component } from 'react';
class Home extends Component {
render() {
return (
<div> This is the Home Component </div>
);
}
}
export default Home;
|
debugger/containers/EmulatorApp.js | RealScout/avr-emulator | import React from 'react';
import { bindActionCreators } from 'redux';
import { Connector } from 'react-redux';
import RegisterState from '../components/RegisterState';
import IOStore from '../components/IOStore';
import DebuggerButtons from '../components/DebuggerButtons';
import AssemblyProgram from '../components/As... |
src/component/main/about/index.js | sdmccoy/portfolio | import React from 'react';
import {Link} from 'react-router-dom';
import comingSoon from '../../../../assets/coming-soon.png';
import AboutCarousel from '../about-carousel';
import './_about.scss';
class About extends React.Component {
constructor(props){
super(props);
this.state = {
};
}
render()... |
definitions/npm/react-redux_v4.x.x/flow_v0.30.x-v0.52.x/test_Provider.js | davidohayon669/flow-typed | // @flow
import React from 'react'
import { Provider } from 'react-redux'
// $ExpectError
<Provider />; // missing store
|
js/jqwidgets/demos/react/app/calendar/rangeselection/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxCalendar from '../../../jqwidgets-react/react_jqxcalendar.js';
class App extends React.Component {
componentDidMount() {
this.refs.myCalendar.on('change', (event) => {
let selection = event.args.range;
let log =... |
src/js/components/Team.js | vbence86/project-bea | import React from 'react';
import { Row, Col } from './Helper';
export class TeamMember extends React.Component {
static propTypes = {
name: React.PropTypes.string.isRequired,
title: React.PropTypes.string,
imageUrl: React.PropTypes.string.isRequired,
};
render() {
const _style = {};
if (th... |
src/server.js | ACPK/react-starter-kit | /**
* 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 path from 'path';
import express from 'express';... |
src/Parser/DeathKnight/Unholy/Modules/Items/TaktheritrixsShoulderpads.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import Pets from 'Parser/Core/Modules/Pets';
import { formatNumber } from 'common/format';
import calculateEffectiveDama... |
src/routes/error/index.js | shaohuawang2015/goldbeans-admin | import React from 'react'
import { Icon } from 'antd'
import styles from './index.less'
const Error = () => <div className="content-inner">
<div className={styles.error}>
<Icon type="frown-o" />
<h1>404 Not Found</h1>
</div>
</div>
export default Error
|
src/client/client.js | dherault/Oso | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { ReduxRouter } from 'redux-router';
import Oso from './renderer/Oso';
import routes from '../routes';
import configureStore from '../state/configureStore';
import registerShortcuts from './registerShortcuts';... |
js/app.js | eburillo/relay-chat | import 'babel-polyfill';
import App from './components/App';
import AppHomeRoute from './routes/AppHomeRoute';
import React from 'react';
import ReactDOM from 'react-dom';
import Relay from 'react-relay';
ReactDOM.render(
<Relay.Renderer
environment={Relay.Store}
Container={App}
queryConfig={new AppHome... |
docs/src/app/components/pages/components/CircularProgress/ExampleSimple.js | andrejunges/material-ui | import React from 'react';
import CircularProgress from 'material-ui/CircularProgress';
const CircularProgressExampleSimple = () => (
<div>
<CircularProgress />
<CircularProgress size={60} thickness={7} />
<CircularProgress size={80} thickness={5} />
</div>
);
export default CircularProgressExampleSim... |
src/components/pages/cards/delete-card-button.js | beldur/colorful-learningcards | // @flow
import React from 'react'
import { Tooltip, FABButton, Icon } from 'react-mdl'
const CreateCardButton = ({ onClick }: { onClick: () => void}) => (
<div className="page-action-button delete-card">
<Tooltip label="Delete Card">
<FABButton colored ripple onClick={onClick}>
<Icon name="delete... |
src/components/header.js | Swan/Eggplants | import React, { Component } from 'react';
class Header extends Component {
render() {
return (
<div className="cover container-fluid">
<br/>
<h2>🍆 EGGPLANTS</h2>
<h3><i className="fa fa-music"></i> Beatmap Listing</h3>
<h4>Here, y... |
examples/components/Column.js | neilff/react-d3-examples | import React from 'react';
const Column = ({ children, className = '', style = {} }) => {
return (
<div className={ `col ${ className }` } style={{ ...styles.base, ...style }}>
{ children }
</div>
);
};
const styles = {
base: {},
};
export default Column;
|
src/components/idea-page/IdeaPage.js | CodeDraken/IdeaZone | import React from 'react';
import { Link } from 'react-router';
import moment from 'moment';
import ProjectInfo from './ProjectInfo';
import ExampleSlider from './ExampleSlider';
import TutorialSection from './TutorialSection';
// Individual idea page view
const IdeaPage = (props) => {
let {createdAt, description... |
src/components/SelectedBusStop.js | proiectus/bus-stop | import React, { Component } from 'react';
import ActiveLines from './ActiveLines';
import BusStopInfo from './BusStopInfo';
class SelectedBusStop extends Component {
render() {
return (
<div>
<BusStopInfo code="310" name="Avda Escaleritas 48" />
<ActiveLines />
</div>
)
}
}
exp... |
blueocean-material-icons/src/js/components/svg-icons/av/pause-circle-filled.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvPauseCircleFilled = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"/>
</SvgIcon>
);
AvPauseCircleFilled.displayName = 'AvPauseCircleFilled';
AvPaus... |
docs/app/Examples/elements/Divider/Types/DividerExampleVertical.js | clemensw/stardust | import React from 'react'
import { Grid, Segment, Divider } from 'semantic-ui-react'
const DividerExampleVertical = () => (
<Grid columns={3} relaxed>
<Grid.Column>
<Segment basic>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio.
</Segment>
</Grid.Column>
<Divider... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.