path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
React Native/Demos/douApp/iOS_views/book/book_detail.js
AngryLi/note
/** * Created by fulihui2 on 16/9/8. */ import React from 'react'; import { View, StyleSheet, Text, ListView, Image, TouchableOpacity, } from 'react-native'; import Util from './../common/util'; import MyWebView from './../common/webview'; export default class BookDetail extends React.Comp...
src/routes/error/index.js
MarynaHapon/Data-root-react
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import ErrorPage from './Err...
app/js/views/Section.js
refugeetech/project_interactivemap
import React from 'react' import { compose, mapProps } from 'recompose' import { Link } from 'react-router' import NavBar from './NavBar' const enhance = compose( mapProps(({ sections, params, ...props }) => ({ section: sections[params.sectionId], ...props })), mapProps(({ section, readPosts, ...props })...
www/src/javascript/client.js
ecesena/oscars2016
import polyfill from 'babel/polyfill'; // eslint-disable-line no-unused-vars import _ from 'lodash'; import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router'; import ga from 'react-ga'; import app from './app'; import navigateAction from './actions/navigate'; import {provideContex...
js/components/pages/SearchPage.react.js
cs2340-titans/RoastWeb
/** * Created by andy on 3/6/16. */ import React, { Component } from 'react'; import { Link } from 'react-router'; import SearchCard from '../SearchCard.react'; class SearchPage extends Component { render() { return ( <SearchCard /> ); } } export default SearchPage;
src/svg-icons/notification/ondemand-video.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationOndemandVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z"/> </SvgIc...
src/parser/paladin/retribution/modules/core/azeritetraits/DivineRight.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import {formatNumber, formatPercentage} from 'common/format'; import {calculateAzeriteEffects} from 'common/stats'; import SPELLS from 'common/SPELLS'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; const...
src/svg-icons/navigation/apps.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationApps = (props) => ( <SvgIcon {...props}> <path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"/> </SvgIcon> ...
examples/query-params/app.js
aastey/react-router
import React from 'react' 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.props.params let { query } = thi...
app/pages/welcome/components/slideOne.js
builtwithluv/ZenFocus
import React from 'react'; import classNames from 'classnames'; import { openNewWindow } from 'utils/windows.util'; import logo from 'assets/images/logo.png'; import builtwithluv from 'assets/images/builtwithluv.png'; const imageStyles = classNames('mx-auto'); const buttonStyles = classNames('bg-none', 'border-none'...
containers/RecorderRoot.js
ronanamsterdam/nitrorecorder
'use strict'; import React, { Component } from 'react'; import { Provider } from 'react-redux'; import DevTools from './DevTools'; import Recorder from '../components/core/Recorder'; import configureScenarioRecorderStore from '../store/configureScenarioRecorderStore'; export default class RecorderRoot extends Comp...
f2e/src/js/compoents/app/app.js
NyaaFinder/nyaacat
// 一个组件是一个模块,自己带有自己的样式 import React from 'react'; import AppActions from'../../actions/AppActions'; import AppStore from'../../stores/AppStore'; import Socket from 'socket.io-client'; import Dialog from '../dialog/dialog.jsx'; import Login from '../dialog/login.jsx'; import Foot from '../foot/foot.jsx'; import Head fro...
app/components/D3Map/map-overlay.js
shanzhaicity/frontend-demo
import React from 'react'; // import MapCountryBordersLayer from './map-country-borders-layer'; import { CircleMarker, Popup } from 'react-leaflet'; import { PieChart, Pie, Tooltip } from 'recharts'; import { greenA700, greenA400, greenA200, amber900, amber400, amber700, cyan500 } from 'material-ui/styles/colors'; impo...
node_modules/react-bootstrap/es/MediaListItem.js
ProjectSunday/rooibus
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/components/Tabs/Tabs.js
XuHaoJun/tiamat
import React from 'react'; import { connect } from 'react-redux'; import AppBar from '@material-ui/core/AppBar'; import Tabs from '@material-ui/core/Tabs'; const ReponsiveTabs = props => { const { browser, AppBarProps, ...other } = props; if (browser.lessThan.medium) { return ( <AppBar position="static"...
src/Parser/Warlock/Destruction/Modules/Items/Legendaries/FeretoryOfSouls.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import { formatNumber } from 'common/format'; import SoulShardTracker from '../../SoulShards/SoulShardTracker'; const ...
ajax/libs/react-instantsearch/4.0.0-beta.1/Dom.js
sashberd/cdnjs
/*! ReactInstantSearch 4.0.0-beta.1 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof ...
examples/real-world/containers/DevTools.js
doerme/redux
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w"> <LogMonitor /> ...
components/ballDownTop.js
yeso126/Mapapp
import React, { Component } from 'react'; import { View, StyleSheet, Animated, Dimensions, TouchableWithoutFeedback, } from 'react-native'; import { observer, inject } from 'mobx-react'; const {width, height} = Dimensions.get('window'); @inject('gameStore') @observer export default class Ball extends Compo...
examples/official-storybook/stories/addon-backgrounds.stories.js
storybooks/react-storybook
import React from 'react'; import BaseButton from '../components/BaseButton'; export default { title: 'Addons/Backgrounds', parameters: { backgrounds: [ { name: 'white', value: '#ffffff' }, { name: 'light', value: '#eeeeee' }, { name: 'gray', value: '#cccccc' }, { name: 'dark', value:...
src/components/Settings/Vendor/Vendor.js
AaronHartigan/DudeTruck
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Vendor.css'; class Vendor extends React.Component { static contextTypes = { fetch: PropTypes.func.isRequired, }; static propTypes = { settings: PropTypes.shape...
src/Parser/Druid/Balance/Modules/Features/Checklist.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import Wrapper from 'common/Wrapper'; import SpellLink from 'common/SpellLink'; import CoreChecklist, { Rule, Requirement } from 'Parser/Core/Modules/Features/Checklist'; import { PreparationRule } from 'Parser/Core/Module...
src/components/capture.js
jorgerobles/LaserWeb4
// Copyright 2016 Todd Fleming // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is dist...
docs/src/examples/collections/Table/Variations/TableExampleFullWidth.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button, Checkbox, Icon, Table } from 'semantic-ui-react' const TableExampleFullWidth = () => ( <Table celled compact definition> <Table.Header fullWidth> <Table.Row> <Table.HeaderCell /> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>R...
client/pages/examples/threejs/device-orientation-controls/index.js
fdesjardins/webgl
import React from 'react' import * as THREE from 'three' import { BufferGeometryUtils } from 'three/examples/jsm/utils/BufferGeometryUtils.js' import { DeviceOrientationControls } from 'three/examples/jsm/controls/DeviceOrientationControls.js' import Example from '-/components/example' import notes from './readme.md' ...
src/Button.js
xsistens/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,...
fixtures/kitchensink/template/src/features/syntax/DefaultParameters.js
d3ce1t/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(id = 0) { return [ { id: id + 1, name...
js/components/anatomy/index.js
Rebaiahmed/Alchaaer
import React, { Component } from 'react'; import { StatusBar } from 'react-native'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Text, H3, Button, Icon, Footer, FooterTab, Left, Right, Body } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles fro...
pootle/static/js/editor/components/UnitSource.js
evernote/zing
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import cx from 'classnames'; import React from 'react'; i...
app/imports/ui/client/components/misc/NavItem/index.js
valcol/ScrumNinja
import React, { Component } from 'react'; import { Link, IndexLink, withRouter } from 'react-router'; import { Session } from 'meteor/session'; class NavItem extends Component { render () { Object.keys(Session.keys).forEach(function(key){ Session.set(key, undefined); }); Session.keys = {}; const { route...
Veo/node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
JGMorgan/Veo
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
examples/NavigationPlayground/js/StacksInTabs.js
kkamperschroer/react-navigation
/** * @flow */ import React from 'react'; import { Button, ScrollView, } from 'react-native'; import { StackNavigator, TabNavigator, } from 'react-navigation'; import Ionicons from 'react-native-vector-icons/Ionicons'; import SampleText from './SampleText'; const MyNavScreen = ({ navigation, banner }) => (...
src/svg-icons/editor/space-bar.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorSpaceBar = (props) => ( <SvgIcon {...props}> <path d="M18 9v4H6V9H4v6h16V9z"/> </SvgIcon> ); EditorSpaceBar = pure(EditorSpaceBar); EditorSpaceBar.displayName = 'EditorSpaceBar'; export default EditorS...
app/packs/src/components/search/AutoCompleteInput.js
ComPlat/chemotion_ELN
import React from 'react'; import ReactDOM from 'react-dom'; import {FormGroup,InputGroup,FormControl, Overlay, ListGroup, ListGroupItem} from 'react-bootstrap'; import debounce from 'es6-promise-debounce'; import { isString } from 'lodash'; import KeyboardActions from '../actions/KeyboardActions'; import KeyboardSt...
src/svg-icons/av/replay-10.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay10 = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.1 11H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0 .6-.1....
app/javascript/mastodon/features/blocks/index.js
TheInventrix/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import PropType...
src/svg-icons/action/cached.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCached = (props) => ( <SvgIcon {...props}> <path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97....
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/tree-select/index.js
bhathiya/test
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
webapp/src/components/Base.js
darkamenosa/tblog
import React from 'react' import PropTypes from 'prop-types' import assign from 'object-assign' import margins from './util/margins' import padding from './util/padding' import config from './config' const Base = (props) => { const { tagName, baseStyle, style, m, mt, mr, mb, ml, mx, my, p, pt, pr...
src/encoded/static/components/cart/share.js
ENCODE-DCC/encoded
/** * Components to display the Share Cart modal. */ // node_modules import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import url from 'url'; // libs/ui import { Modal, ModalHeader, ModalBody, ModalFooter } from '../../libs/ui/modal'; // components import { useMoun...
src/svg-icons/action/flip-to-back.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlipToBack = (props) => ( <SvgIcon {...props}> <path d="M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h-2v2h2v-2zm6-12v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4h2v-2h-2...
src/js/components/UserCreate/UserCreate.js
TheoZimm/SaltyDashboard
import React from 'react'; import Box from 'grommet/components/Box'; import {RoleAwareComponent} from 'react-router-role-authorization'; import Heading from 'grommet/components/Heading'; import {browserHistory} from 'react-router'; import axios from 'axios'; class UserCreate extends RoleAwareComponent { constructo...
AnyTPAC/DemoReactJS/src/MECTplugins.js
MECTsrl/mect_apps
import React, { Component } from 'react'; import './MECTplugins.css'; class MECTdate extends Component { constructor(props) { super(props); this.updateData = this.updateData.bind(this); this.state = { value : "YYYY-MM-DD" }; } componentDidMount() { this.updateInt...
src/svg-icons/av/video-call.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideoCall = (props) => ( <SvgIcon {...props}> <path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM14 13h-3v3H9v-3H6v-2h3V8h2v3h3v2z"/> </SvgIcon> )...
geonode/contrib/monitoring/frontend/src/components/atoms/hover-paper/index.js
kartoza/geonode
import React from 'react'; import PropTypes from 'prop-types'; import Paper from 'material-ui/Paper'; class HoverPaper extends React.Component { static propTypes = { children: PropTypes.node, style: PropTypes.object, onClick: PropTypes.func, } constructor(props) { super(props); this.state ...
examples/admin/components/MessageBar.js
minwe/amazeui-react
import React from 'react'; import { Icon, } from 'amazeui-react'; const MessageBar = React.createClass({ render() { const { className, ...props } = this.props; return ( <div {...props} className={`adm-msg-bar ${className}`} > {this.props.children} ...
src/ScrollSource.js
browniefed/react-scroll-monitor
import React from 'react'; import ReactDOM from 'react-dom'; import createChainedFunction from './utils/createChainedFunction'; import getUniqueId from "./utils/getUniqueId"; import Handler from "./handler"; import pluck from "lodash/collection/pluck"; export default function Source(collect) { return function d...
src/react.js
skevy/redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, Connector, provide, connect } = createAll(React);
fields/types/password/PasswordColumn.js
lastjune/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var PasswordColumn = React.createClass({ displayName: 'PasswordColumn', propTypes: { col: React.PropTypes.object, data: React.PropType...
src/index.js
cle1994/react-frontend-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './components/App'; const rootElem = document.getElementById('root'); const render = (Component) => { const container = ( <AppContainer> <Component /> </AppContainer> ); ...
src/routes/Post/components/Post.js
Ealon/react-redux-starter-kit
import React, { Component } from 'react'; class Post extends Component { render() { return ( <div> Post </div> ); } } export default Post;
styleguide/screens/Patterns/Dropdown/Dropdown.js
rdjpalmer/bloom
import React, { Component } from 'react'; import cx from 'classnames'; import dedent from 'dedent'; import Dropdown, { HORIZONTAL_ATTACHMENTS } from '../../../../components/Dropdown/Dropdown'; import Specimen from '../../../components/Specimen/Specimen'; import { H, T, D, A, C, Bq, Note, List, Placeholder } from '../....
lib/Popper/Popper.js
folio-org/stripes-components
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import PopperJS from 'popper.js'; import css from './Popper.css'; export const AVAILABLE_PLACEMENTS = [ 'bottom', 'top', 'left', 'right', 'top-start', 'top-end', 'bottom-start', 'bottom-end', 'left-start'...
examples/data-fetch/pages/index.js
BlancheXu/test
import React from 'react' import Link from 'next/link' import fetch from 'isomorphic-unfetch' function Index (props) { return ( <div> <p>Next.js has {props.stars} ⭐️</p> <Link href='/preact'> <a>How about preact?</a> </Link> </div> ) } Index.getInitialProps = async () => { cons...
examples/js/selection/externally-managed-selection.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
js/components/grid.js
marclebel/squaro
import React from 'react'; import Circle from './circle'; import Square from './square'; class Grid extends React.Component { constructor(props) { super(props); this.state = {userClicks : Array.apply(null, Array(props.data.length)).map(Number.prototype.valueOf,0)}; } handleCircleClick(ci...
src/components/helpers/difficulty.stories.js
cognostics/serlo-abc
import React from 'react'; import { Text, View } from 'react-native'; import { storiesOf } from '@storybook/react-native'; import withDifficulty from './difficulty'; const C = ({ label, difficulty }) => ( <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> <Text> {label}: {difficult...
src/svg-icons/av/queue-play-next.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvQueuePlayNext = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h2v-2H3V5h18v8h2V5c0-1.11-.9-2-2-2zm-8 7V7h-2v3H8v2h3v3h2v-3h3v-2h-3zm11 8l-4.5 4.5L18 21l3-3-3-3...
client/utils/index.js
andersem/react-redux-starter-kit
import React from 'react'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; export function createConstants (...constants) { return constants.reduce((acc, constant) => { acc[constant] = constant; return acc; }, {}); } export function createReducer (initialState, reducerMap) { ...
node_modules/react-bootstrap/es/Modal.js
rblin081/drafting-client
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
docs/src/sections/PushSection.js
lzcmaro/react-ratchet
import React from 'react'; import Samples from '../Samples' import ReactPlayground from '../ReactPlayground' export default function PushSection() { return ( <div> {/* Popovers */} <ReactPlayground id="push" title='Push' desc='' codeText={Samples.Push} /> </div> ); };
node_modules/react-router/es6/Route.js
NathanBWaters/jb_club
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var func = _React$PropTypes.func; /** * A <Route> is use...
src/Main/Layout/NavigationBar.js
enragednuke/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { getFightId, getPlayerName } from 'selectors/url/report'; import { getReport } from 'selectors/report'; import { getFightById } from 'selectors/fight'; import GithubLo...
packages/react/src/components/organisms/FooterSlim/index.js
massgov/mayflower
/** * FooterSlim module. * @module @massds/mayflower-react/FooterSlim * @requires module:@massds/mayflower-assets/scss/03-organisms/footer-slim * @requires module:@massds/mayflower-assets/scss/01-atoms/svg-icons * @requires module:@massds/mayflower-assets/scss/01-atoms/svg-loc-icons */ import React from 'react'; ...
demo/src/containers/Tabs.js
ilxanlar/cathode
import React from 'react'; import { Tabs } from '../../../src'; const triggers = ['mouseOver', 'focus', 'click']; // excluded `always` const placements = ['left', 'top', 'bottom', 'right']; const tooltipContent = ( <div> This is a Tooltip </div> ); export default () => ( <div> <h2>Tab</h2> <Tabs ca...
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
rkaneriya/react-router
import React from 'react' class Assignments extends React.Component { render() { return ( <div> <h3>Assignments</h3> {this.props.children || <p>Choose an assignment from the sidebar.</p>} </div> ) } } export default Assignments
src/generators/ReactComponent.js
live-js/drum
/* @flow weak */ import {LiveGenerator} from '../app/LiveGenerator' type PropTypes = { itemName: String; } export class ReactComponent extends LiveGenerator { static namespace = 'live'; props:PropTypes; className: string; componentFilePath: string; constructor(props, env) { super(...arguments) } ...
src/components/gradients/s-gradient.js
mapbox/react-colorpickr
import React from 'react'; import PropTypes from 'prop-types'; import themeable from 'react-themeable'; import { autokey } from '../../autokey'; function SGradient({ theme, active, opacityLow, opacityHigh }) { const themer = autokey(themeable(theme)); if (!active) return <noscript />; return ( <> <div ...
docs/src/examples/elements/Segment/Types/SegmentExampleRaised.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleRaised = () => ( <Segment raised>Pellentesque habitant morbi tristique senectus.</Segment> ) export default SegmentExampleRaised
client/src/components/PublicationStatus/PublicationStatus.js
takeflight/wagtail
import PropTypes from 'prop-types'; import React from 'react'; /** * Displays the publication status of a page in a pill. */ const PublicationStatus = ({ status }) => ( <span className={`o-pill c-status${status.live ? ' c-status--live' : ''}`}> {status.status} </span> ); PublicationStatus.propTypes = { st...
src/shared/components/App/App.js
brettsnaidero/bsd
import React from 'react'; import { Switch, Route } from 'react-router'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import Helmet from 'react-helmet'; import { CodeSplit } from 'code-split-component'; import './sass/style.scss'; // Pages import Home from './Home/home'; import Blog from ...
src/BreadcrumbItem.js
mmartche/boilerplate-shop
import classNames from 'classnames'; import React from 'react'; import warning from 'warning'; import SafeAnchor from './SafeAnchor'; const BreadcrumbItem = React.createClass({ propTypes: { /** * If set to true, renders `span` instead of `a` */ active: React.PropTypes.bool, /** * HTML id ...
imports/ui/components/surveyForm/Score.js
ctagroup/home-app
import React from 'react'; import { evaluateOperand } from '/imports/api/surveys/computations'; import Text from './Text'; export default class Score extends Text { render() { const { score, text } = this.props.item; let value = evaluateOperand(score, this.props.formState) || 0; return this.props.debugM...
app/routes.js
logful/logful-web
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import { Layout, System, Login, ListApp, CreateApp, AppInfo, ClientUser, LogFile, Control, CrashAnalyze, NotFound } from 'containers'; export default function routes(store) { const requireAuth =...
src/js/components/icons/base/Baby.js
odedre/grommet-final
/** * @description Baby SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @prope...
src/TaskRunnerComponent.js
TheEvilCorp/OverReact
import React, { Component } from 'react'; import { Input } from 'react-bootstrap'; export default class ServerComponent extends Component { shouldComponentUpdate = (nextProps, nextState) => { return this.props !== nextProps; }; render() { return ( <div className='radio-sections'> <p>Choos...
client/src/components/dashboard/common/MessageBox.js
FCC-Alumni/alumni-network
import propTypes from 'prop-types'; import React from 'react'; import styled from 'styled-components'; class MessageBox extends React.Component { state = { hidden: false } handleClick = (e) => { this.setState({ hidden: true }); } render() { const { header, message, dismissable, type, hide } = t...
node_modules/react-router/es6/IndexRoute.js
andrit/VideoListReact
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
app/addons/documents/index-results/components/queryoptions/AdditionalParams.js
apache/couchdb-fauxton
// 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 writing, software // distributed un...
src/containers/layout/navbar/logo-item.js
vFujin/HearthLounge
import React from 'react'; import LogoSVG from "../../../components/logo"; import {Link} from "react-router-dom"; const LogoItem = () => { const alphaStyles = { opacity: .4, color: "grey", position: "absolute", }; return ( <li className="nav__list--item logo"> <Link to="/" className="logo-...
docs/src/app/components/pages/components/Paper/ExampleCircle.js
pradel/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; const style = { height: 100, width: 100, margin: 20, textAlign: 'center', display: 'inline-block', }; const PaperExampleCircle = () => ( <div> <Paper style={style} zDepth={1} circle={true} /> <Paper style={style} zDepth={2} circle={...
app/components/Header.js
danjamin/react-fluxlike-mail-demo
import React from 'react'; import {LinkTo} from 'fl-router'; export default React.createClass({ displayName: 'Header', propTypes: { activeURL: React.PropTypes.string.isRequired }, render: function () { return ( <ul className='navbar'> <li className='navbar-item'> <h3>Flux-like...
src/components/Loader/index.js
blurbyte/hack-the-news
import React from 'react'; import styled from 'styled-components'; import Loading from './Loading'; const Wrapper = styled.div` width: 100%; display: flex; justify-content: center; margin-top: 0.6rem; `; const Loader = () => { return ( <Wrapper> <Loading>Loading...</Loading> </Wrapper> ); }...
docs/app/Examples/elements/Input/Types/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const InputTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Input' description='A stan...
src/components/dumb/MunkirjatApp.js
janimattiellonen/munkirjat-v4
import React from 'react'; import Router, {RouteHandler} from 'react-router'; import { connect } from 'react-redux'; import StatisticsView from './StatisticsView'; import Menubar from '../dumb/Menubar'; export default class MunkirjatApp extends React.Component { constructor(props) { super(props); } ...
app/index.js
enotsimon/home
// @flow import ReactDOM from 'react-dom' import React from 'react' import { HashRouter, Switch, Route } from 'react-router-dom' import SamplesCollecton from 'experimental/components/samples_collection' import 'bootstrap/dist/css/bootstrap.min.css' import 'assets/css/main.css' import { Sample } from 'experimental/comp...
geonode/contrib/monitoring/frontend/src/components/organisms/error-detail/index.js
simod/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Tabs, Tab } from 'material-ui/Tabs'; import HoverPaper from '../../atoms/hover-paper'; import styles from './styles'; import actions from './actions'; const mapStateToProps = (state) => ({ errorDetails: st...
src/Calendar.js
atondelier/react-moment-datepicker
"use strict"; import momentPropTypes from 'react-moment-proptypes'; import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import Month from './Month.js'; import './Calendar.css'; class Calendar extends React.Component { static propTypes = { defaultDate: momen...
node_modules/react-router/es6/Link.js
captify-iolenchenko/leaderboard
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 = {...
app/utils/injectSaga.js
Dattaya/react-boilerplate-object
import React from 'react'; import PropTypes from 'prop-types'; import hoistNonReactStatics from 'hoist-non-react-statics'; import getInjectors from './sagaInjectors'; /** * Dynamically injects a saga, passes component's props as saga arguments * * @param {string} key A key of the saga * @param {function} saga A r...
src/routes/Case/Case.js
ExtraGains/XLBS
import React from 'react' import { Tabs } from 'antd' import ImgModal from './ImgModal' import './Case.less' const TabPane = Tabs.TabPane class Case extends React.Component { constructor (props) { super(props) this.state = { visible: false } this._imgs = this.getImgs() } handleChange = (e)...
tests/utils/TestInput.js
bitgaming/formsy-react
import React from 'react'; import Formsy from './../..'; const defaultProps = { mixins: [Formsy.Mixin], getDefaultProps() { return { type: 'text' }; }, updateValue(event) { this.setValue(event.target[this.props.type === 'checkbox' ? 'checked' : 'value']); }, render() { return <input type={this....
docs/src/ComponentsPage.js
mmarcant/react-bootstrap
import React from 'react'; import AutoAffix from 'react-overlays/lib/AutoAffix'; import Waypoint from 'react-waypoint'; import Nav from '../../src/Nav'; import NavItem from '../../src/NavItem'; import Anchor from './Anchor'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter fro...
common/components/NotFound.js
BostonGlobe/elections-2017
import React from 'react' import svgs from './../utils/svgs.js' import Navigation from './Navigation.js' import Footer from './../components/Footer.js' import Promo from './../components/Promo.js' const NotFound = () => ( <div> <header className='header' key='header'> <a href='#content' className='skip-to-main'...
src/components/GithubButton/GithubButton.js
SQ1Labs/SQ1_LandingPage
import React from 'react'; const GithubButton = (props) => { const {user, repo, type, width, height, count, large} = props; let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`; if (count) src += '&count=true'; if (large) src += '&size=large'; return ( <iframe src=...
docs/src/app/components/pages/components/Drawer/Page.js
w01fgang/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import drawerReadmeText from './README'; import DrawerSimpleExample from './Exam...
react/react-app/src/index.js
narekye/code
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import caller from './helpers/caller'; import clocks from './clock/clock' "use strict"; // class Square extends React.Component { // // constructor() { // // super(); // // this.state = { // // value: null...
src/svg-icons/action/settings-bluetooth.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsBluetooth = (props) => ( <SvgIcon {...props}> <path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4....
src/blog/index.js
markmiro/react-static-boilerplate
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React from 'react'; export default class { render() { return ( <div> <h1>Blog</h1> <p>Coming soon.</p> </div> ); } };
index.android.js
OUCHUNYU/Ralli
/** * Sample React Native App * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class Ralli extends Component { render() { return ( <View style={styles.container}> <Text style={styl...