path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
final/webapp/src/components/Dashboard/Status/Status.js | wasong/cmpt433 | import React from 'react'
import Radium from 'radium'
const styles = {
root: {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
width: 10,
height: 10,
borderRadius: '50%',
},
error: {
backgroundColor: 'red',
},
success: {
backgroundColor: 'green',
},
}
const... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js | RobzDoom/frame_trap | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
modules/gob-web/modules/student-picker/student-list.js | hawkrives/gobbldygook | // @flow
import React from 'react'
import fuzzysearch from 'fuzzysearch'
import styled from 'styled-components'
import {Card} from '../../components/card'
import {PlainList} from '../../components/list'
import StudentListItem from './student-list-item'
import {type SORT_BY_ENUM} from './types'
import {Map} from 'immut... |
ajax/libs/react-select/1.0.0-rc.9/react-select.es.js | nolsherry/cdnjs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import AutosizeInput from 'react-input-autosize';
import classNames from 'classnames';
function arrowRenderer(_ref) {
var onMouseDown = _ref.onMouseDown;
return React.createElement('span', {
className: ... |
fields/types/cloudinaryimage/CloudinaryImageColumn.js | tony2cssc/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
var CloudinaryImageColumn ... |
src/js/pages/Home.js | amalbose/axa-media | import React from 'react';
var path = require('path')
var utils = require("../controllers/utils")
const {FileService} = require('../controllers/fileservice')
import Header from '../components/Header'
import Footer from '../components/Footer'
import MediaList from '../components/MediaList'
import store from '../store... |
frontend/src/components/eois/cells/applicationCnIdCell.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import Typography from 'material-ui/Typography';
import TableCell from './tableCell';
const ApplicationCnIdCell = (props) => {
const { id } = props;
return (<TableCell first limited>
<Typography
color="accent"
>
<u>{id}</u>
</Ty... |
anubis/frontend/src/components/TokenField/token_list.js | cmspsgp31/anubis | // Copyright © 2016, Ugo Pozo
// 2016, Câmara Municipal de São Paulo
// token_list.js - a list of tokens in a TokenField.
// This file is part of Anubis.
// Anubis is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free S... |
src/Image/index.android.js | Fineighbor/ui-kit | import React from 'react'
import styled from 'styled-components/native'
import { Image as RNImage } from 'react-native'
import NativeImage from 'react-native-fast-image'
import base, { attrs, filtered } from './base'
import defaultProps from './defaultProps'
import { filterProps, mapProps } from '../utils/Misc'
const ... |
src/Parser/Paladin/Retribution/Modules/Items/Tier21_2set.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import GetDamageBonus ... |
node_modules/@shoutem/animation/src/animations/ZoomOut.js | tausifmuzaffar/bisApp | import React, { Component } from 'react';
import { Animated, View } from 'react-native';
import { DriverShape } from '../drivers/DriverShape';
/*
* ZoomOut Component adds zoom out effect to its children components.
* Connect it to driver and pass the input range to animate it.
* e.g.:
* ...
* const driver = new Sc... |
packages/material-ui-icons/src/FormatColorFill.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12zM5.21 10L10 5.21 14.79 10H5.21zM19... |
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js | guiquanz/actor-platform | import React from 'react';
import classNames from 'classnames';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import AvatarItem from 'components/common/AvatarItem.react';
class RecentSectionItem extends React.Component {
static propTypes = {
di... |
src/svg-icons/file/cloud-upload.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudUpload = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.... |
src/icons/SocialYahoo.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class SocialYahoo extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M384.6,68.4c-11.3,0-22.5-0.8-32.6-4.4l-96,160L160,64c-10.1,3.6-20.7,4.4-32,4.4c-11.1,0-22.1-0.9-32-4.4l128,212.7V448
... |
src/app/components/item/SingleComponentItemView.js | maullerz/eve-react | import React from 'react'
import './ItemView.css'
import Helper from './../../helpers'
const SingleComponentItemView = props => {
const {typeID, quantity, name, prices} = props;
return <li>
<div className="opacity05 h-opacity-1"
style={{userSelect: 'none', display: 'flex', justifyContent: 'space-betwe... |
app/components/Tabs.js | Cu7ious/Twitch-App | import React from 'react'
import Tab from '../components/Tab'
class Tabs extends React.Component {
render () {
let p = this.props;
return (
<div className="app-tabs">
<ul className="tabs">
{
p.items.map((el, idx) => {
return(
<Tab
... |
pootle/static/js/auth/index.js | Jobava/pootle | /*
* 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.
*/
'use strict';
import FluxComponent from 'flummox/componen... |
src/utils/CustomPropTypes.js | collinwu/react-bootstrap | import React from 'react';
const ANONYMOUS = '<<anonymous>>';
const CustomPropTypes = {
isRequiredForA11y(propType){
return function(props, propName, componentName){
if (props[propName] === null) {
return new Error(
'The prop `' + propName + '` is required to make ' + componentName + ' ... |
src/components/pages/organize/EditView.js | yiweimatou/yibinghoutai | import React from 'react'
import { Field } from 'redux-form'
import { MenuItem, RaisedButton } from 'material-ui'
import TextField from '../../ReduxForm/TextField'
import SelectField from '../../ReduxForm/SelectField'
import ImageUpload from '../../ImageUpload'
const styles = {
form:{
display:'flex',
... |
examples/with-reason-relay/pages/_app.js | azukaru/next.js | import React from 'react'
import App from 'next/app'
const isStatusCodeOk = (res) => {
try {
return `${res.statusCode}`.startsWith('2')
} catch (e) {
return true
}
}
class MyApp extends App {
static async getInitialProps({ Component, ctx }) {
let pageProps = {}
if (Component.getInitialProps) ... |
src/client/assets/js/components/Dialogue.js | me-box/platform-sdk | import React, { Component } from 'react';
import {NODE_EDITOR_PADDING, PALETTE_WIDTH, TOOLBAR_HEIGHT} from 'constants/ViewConstants';
import Toolbar from 'react-md/lib/Toolbars';
import './styles/dialogue.scss';
import Button from 'react-md/lib/Buttons';
class Dialogue extends React.Component {
render(){
const... |
src/scenes/App/scenes/DemoOverview/components/DemoDownloadButton/index.js | jsza/tempus-website | import React from 'react'
import Button from 'react-bootstrap/lib/Button'
import {TEMPUS_PERMISSIONS} from 'root/utils/loginData'
const DemoDownloadButton = ({data, onClickUpload, uploading, uploadingError}) => {
if (!data) {
return null
}
const demoInfo = data.get('demo_info').toJS()
const {deleted, exp... |
client/src/Welcome/Welcome.js | Fasand/youtube-monitor | import React from 'react';
class Welcome extends React.Component {
constructor (props) {
super(props);
this.state = {
username: '',
channel: '',
api: ''
};
// Bind handlers to this
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind... |
docs/app/Examples/elements/List/Variations/ListExampleHorizontalBulleted.js | vageeshb/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleHorizontalBulleted = () => (
<List bulleted horizontal link>
<List.Item as='a'>Terms and Conditions</List.Item>
<List.Item as='a'>Privacy Policy</List.Item>
<List.Item as='a'>Contact Us</List.Item>
</List>
)
export def... |
react-dev/components/page.js | DeryLiu/DeryLiu.github.io | import React from 'react';
import Paper from 'material-ui/Paper';
import Remarkable from 'remarkable';
import DOMPurify from 'dompurify'; //Prevents XSS when using dangerouslySetInnerHTML
//Dynamic Page Component, this is what works with the Jekyll-React plugin. If you don't want your page crawled by the Search Engin... |
src/components/shared/Svgs.js | tutorcruncher/socket-frontend | import React from 'react'
// this is the svg for map icon straight from
// https://github.com/encharm/Font-Awesome-SVG-PNG/blob/master/black/svg/times.svg
export const Cross = () => (
<svg className="tcs-svg tcs-close" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
<path d="M1490 1322q0 40-28 68l-13... |
components/PortfolioModal.js | mariosandoz/mariosandoz.github.io | import React from 'react';
class PortfolioModal extends React.Component{
render(){
return (
<div className="portfolio-modal modal fade" id={this.props.portID} tabIndex="-1" role="dialog" aria-hidden="true">
<div className="modal-content">
<div className="close-modal" data-dism... |
client/components/SearchBar.js | escape-hatch/escapehatch | import React from 'react';
import { browserHistory } from 'react-router';
import base64url from 'base64-url';
module.exports = () =>
(
<div className="row">
<div className="col-lg-3" />
<div id="formDiv" className="col-lg-6">
<form id="search" className="input-group" onSubmit={handleSubmit}>
... |
js/App.js | tausifmuzaffar/bisApp |
import React, { Component } from 'react';
import { StyleSheet } from 'react-native';
import CodePush from 'react-native-code-push';
import { Container, Content, Text, View } from 'native-base';
import Modal from 'react-native-modalbox';
import AppNavigator from './AppNavigator';
import ProgressBar from './components... |
server/sonar-web/src/main/js/apps/settings/components/inputs/PropertySetInput.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/view/visitingLandmarks.js | VisitingLandmarks/visitingLandmarks | import React from 'react';
import PropTypes from 'prop-types';
import MainMap from './mainMap';
import MainMenu from './mainMenu';
import Navigator from './navigator';
import ConversionLocationVisit from './dialog/conversionLocationVisit';
import {connect} from 'react-redux';
import {logoutThunk} from '../redux/acti... |
projects/react-antui/src/page/saas/basic/log.js | jackkunfu/try | import React from 'react';
import Operate from '../../operate'
import { opComponent } from '../../operate'
import SelfTable from '../../part/table'
import { Table } from 'antd'
export default class SaLog extends Operate {
constructor(){
super();
this.state = {
// tableData: ... |
client/src/components/Details/ReputationHeader.js | demisto/alfred | import './ReputationHeader.less'
import { REPUTATION_RESULT } from '../../utils/constants';
import classNames from 'classnames';
import React from 'react';
export function ReputationHeader({ indicatorName, isPrivate, result }) {
let headerMessage = `Could not determine the ${indicatorName} reputation.`;
let header... |
src/Portal.js | johanneshilden/react-bootstrap | import React from 'react';
import CustomPropTypes from './utils/CustomPropTypes';
import { OverlayMixin } from './OverlayMixin';
let Portal = React.createClass({
displayName: 'Portal',
propTypes: {
/**
* The DOM Node that the Component will render it's children into
*/
container: CustomPropType... |
app/jsx/grading/dataRow.js | venturehive/canvas-lms | /*
* Copyright (C) 2014 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
src/app/screens/Authentication/screens/Registration/index.js | docgecko/react-alt-firebase-starter | /*! React Alt Firebase Starter */
import React from 'react';
import { Route } from 'react-router';
import Registration from './components/Registration';
export default (
<Route name="register" path="/getstarted" handler={Registration}/>
);
|
src/pages/Editor/containers/HeaderContainer/components/EditorHeader/EditorHeader.js | caspg/datamaps.co | import React from 'react'
import PropTypes from 'prop-types'
import { editorHeaderZIndex } from '@src/styles/variables'
import { grey100, grey300 } from '@src/styles/colors'
import Navbar from '@src/components/Navbar'
import MailChimpPopup from '@src/components/MailChimpPopup'
import HamburgerMenu from '@src/componen... |
app/components/Intro.js | EstebanFuentealba/t13 | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
PixelRatio,
Image,
View,
} from 'react-native';
import AppIntro from 'react-native-app-intro';
const styles = StyleSheet.create({
slide: {
backgroundColor: '#282828'
},
column: {
flex: 1,
flexDirection: 'col... |
frontend/app_v2/src/common/icons/StopCircle.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
function StopCircle({ styling }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" className={styling}>
<path d="M48 9.497c-20.704.356-38.866 17.244-38.5 38.5.355 20.703 17.244 38.865 38.5 38.5 20.704-.357 38.868-17.244 38.5-... |
node_modules/react-bootstrap/src/Interpolate.js | gitoneman/react-soc | // https://www.npmjs.org/package/react-interpolate-component
// TODO: Drop this in favor of es6 string interpolation
import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
import assign from './utils/Object.assign';
const REGEXP = /\%\((.+?)\)s/;
const Interpolate = React.cre... |
app/scripts/components/map-visualization.js | SF-Housing-Visualization/mids-sf-housing-visualization | import React from 'react';
import d3 from 'd3';
import L from 'leaflet';
import { Map, Marker, Popup, TileLayer } from 'react-leaflet';
import _ from 'underscore';
import SelectionActions from './selection-actions';
import SelectionStore from './selection-store';
import GeographyStore from './geography-store';
import G... |
src/components/App/NoMatch.js | mattwelson/gzclp | import React from 'react'
const NoMatch = ({ location }) =>
<div className="error--404 has-text-centered">
<h1 className="title is-1">404</h1>
<h2 className="subtitle is-2">Page not found</h2>
<p>The page you were looking for does not exist!</p>
</div>
export default NoMatch
|
docs/src/app/components/pages/components/SvgIcon/ExampleIcons.js | ArcanisCz/material-ui | import React from 'react';
import ActionHome from 'material-ui/svg-icons/action/home';
import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff';
import FileCloudDownload from 'material-ui/svg-icons/file/cloud-download';
import HardwareVideogameAsset from 'material-ui/svg-icons/hardware/videogame-as... |
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | JohnGeorgiadis/x-formation-test-sample | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
app/javascript/components/RoundMap/Map/FlightPaths/FlightPath.js | skyderby/skyderby | import React from 'react'
import PropTypes from 'prop-types'
import Trajectory from './Trajectory'
import Marker from './Marker'
import {
afterExitColor,
windowStartColor,
windowEndColor
} from 'components/RoundMap/constants'
const FlightPath = props => {
const { color, points, afterExitPoint, startPoint, en... |
extensions/dicom-segmentation/src/components/BrushRadius/BrushRadius.js | OHIF/Viewers | import React from 'react';
import PropTypes from 'prop-types';
import { Range } from '@ohif/ui';
import './BrushRadius.css';
const BrushRadius = ({ value, onChange, min, max, step }) => (
<div className="dcmseg-brush-radius">
<label htmlFor="dcmseg-brush-radius">Brush Radius</label>
<Range
value={valu... |
examples/redirect-using-index/app.js | upraised/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
{this.props.children}
</div>
);
}
});
var Index = React.createClass({
render () {
return (
<div>
<h1>You should not se... |
test/integration/scss-fixtures/valid-and-invalid-global/pages/_app.js | flybayer/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.scss'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
docs-ui/components/externalLink.stories.js | beeftornado/sentry | import React from 'react';
import {withInfo} from '@storybook/addon-info';
import ExternalLink from 'app/components/links/externalLink';
export default {
title: 'Core/Links/ExternalLink',
};
export const Default = withInfo(
'A normal anchor that opens URL in a new tab accounting for \'target="_blank"\' vulns'
)(... |
server/sonar-web/src/main/js/components/charts/donut-chart.js | joansmith/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
docs/src/PageHeader.js | xsistens/react-bootstrap | import React from 'react';
const PageHeader = React.createClass({
render() {
return (
<div className='bs-docs-header' id='content'>
<div className='container'>
<h1>{this.props.title}</h1>
<p>{this.props.subTitle}</p>
</div>
</div>
);
}
});
export default Pag... |
client/common/Image/index.js | JohannesAnd/SKWebsite | import React from 'react';
import { connect } from '@cerebral/react';
import { sequences } from 'cerebral';
import ImageHandler from '../ImageHandler';
const dependencies = {
imageClicked: sequences`app.imageClicked`,
};
function Image(props) {
if (!props.path) return false;
const path = props.path.substring(... |
components/TopTracked/TopTrackedList.js | cruzj6/ucgames-native-ios | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { compose, lifecycle } from 'recompose';
import {
View,
ListView,
} from 'react-native';
import Shapes from '../../shapes';
import TopTrackedCell from './topTrackedCell';
import { selectors } from '../../red... |
analysis/warlockdestruction/src/modules/talents/SoulFire.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import SPELLS from 'common/SPELLS';
import { formatThousands, formatNumber, formatPercentage } from 'common/format';
import Statistic from 'parser/ui/Statistic';
import BoringSpe... |
fields/components/columns/IdColumn.js | Pop-Code/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
list: React.PropTypes.obje... |
imports/ui/Wx.js | baiyalong/score | import React, { Component } from 'react';
const page = {
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center'
}
export default class Wx extends Component {
render() {
return (
<div style={page}>
<img src="weixinarrow.png" ... |
static/scripts/components/ProductItem.js | minhuaF/bcb-koa2 | import React from 'react';
import { Link } from 'react-router';
import Footer from './Footer.js';
import ProjectListUtil from '../utils/ProjectListUtil.js';
const ProductListItem = React.createClass({
render: function(){
return(
<li className="white dropdown">
<header>
... |
src/views/components/head/noscript.js | michaelBenin/react-ssr-spa | import React from 'react';
import PropTypes from 'prop-types';
export default function Noscript({ innerHtml }) {
if (!innerHtml) {
return null;
}
return <noscript dangerouslySetInnerHTML={{ __html: innerHtml }} />; // eslint-disable-line react/no-danger, max-len
}
Noscript.propTypes = {
innerHtml: PropTyp... |
src/ui/atom/EditableText/index.js | jkubos/tickator-ide | import React from 'react'
import {observer} from 'mobx-react'
import styles from './style.less'
import {UiState} from '~/src/business/UiState'
import {Modals} from '~/src/business/Modals'
@observer
export class EditableText extends React.Component {
static contextTypes = {
uiState: React.PropTypes.instanceOf(... |
src/components/trends/common/XAxisTicks.js | tidepool-org/viz | import _ from 'lodash';
import { range } from 'd3-array';
import PropTypes from 'prop-types';
import React from 'react';
import * as datetime from '../../../utils/datetime';
import styles from './XAxisTicks.css';
const XAxisTicks = (props) => {
const { data, margins, tickLength, xScale } = props;
return (
<g... |
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/no-options/index.js | wpexpertsio/WP-Secure-Maintainance | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
/**
* The internal dependencies.
*/
import Field from 'fields/components/field';
import withSetup from 'fields/decorators/with-setup';
/**
* Render a notice to inform the user that the field doesn't have
* any opt... |
RNAdMobBanner.js | aparedes/react-native-admob | import React from 'react';
import {
NativeModules,
requireNativeComponent,
View,
NativeEventEmitter,
} from 'react-native';
const RNBanner = requireNativeComponent('RNAdMob', AdMobBanner);
export default class AdMobBanner extends React.Component {
constructor() {
super();
this.onSizeChange = this.o... |
12-delayed-result/src/NewTodo.js | dtanzer/react-basic-examples | import React from 'react';
import { connect } from 'react-redux';
import NewTodoActions from './NewTodoActions';
export class NewTodo extends React.Component {
render() {
return (
<div>
<input type="text" value={this.props.newText} onChange={this.props.inputTextChanged} />
<input type="sub... |
src/js/bottomnavigation/index.js | HBM/md-components | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
export class BottomNavigation extends React.Component {
static propTypes = {
scrollDuration: PropTypes.number
}
static defaultProps = {
scrollDuration: 800
}
state = {
scrolling: false
}
onScro... |
src/components/Markdown/TableCell.js | jonahjoughin/blog.jough.in | import React from 'react';
const TableCell = ({children,type,align}) => {
const sharedStyle = "pv2 ph3 b--light-gray ba sans-serif near-black"+align;
if (type === 'header') {
return (<th className = {sharedStyle+" fw6"}>{children}</th>);
}
return (<td className = {sharedStyle}>{children}</td>);
};
export d... |
src/index.js | Yuyz0112/WoWAnalyzer | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import './static/bootstrap/css/bootstrap.css';
import App from './Main/App';
import registerServiceWorker from './registerServiceWorker';
render(
<Router history={browserHistory}>
<Rout... |
app/components/PostWrapper/components/ReadNext/index.js | jakubrohleder/aurelius | import React from 'react'
import styles from './styles'
import { include as includes } from 'underscore.string'
import find from 'lodash/find'
import PostPreview from '../PostPreview'
export default function ReadNext (props) {
const { pages, post } = props
const { readNext } = post
let nextPost
if (readNext) {... |
app/components/Footer.js | morinted/openrooms | import React from 'react'
import { Row, Col } from 'react-bootstrap'
import { t } from '../i18n'
export default class Footer extends React.Component {
render () {
const footerLines =
t('footer-content')
.split('\n')
.map((x, i) => (<div key={i}>{ x }</div>))
return (
<footer classN... |
src/utils/render.js | ecliptic/fusion-drive | import {safeStringify} from '../utils/strings'
import React from 'react'
import ReactDOM from 'react-dom/server'
export function renderComponent(Component, props, staticHtml = false) {
const render = staticHtml ? ReactDOM.renderToStaticMarkup : ReactDOM.renderToString
const html = render(React.createElement(Compon... |
src/utils/childrenValueInputValidation.js | modulexcite/react-bootstrap | import React from 'react';
import { singlePropFrom } from './CustomPropTypes';
const propList = ['children', 'value'];
const typeList = [React.PropTypes.number, React.PropTypes.string];
export default function valueValidation(props, propName, componentName) {
let error = singlePropFrom(propList)(props, propName, co... |
client/src/components/audio/Container.js | DjLeChuck/recalbox-manager | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import { grep, translatableConf, save } from '../../api';
import { promisifyData, cancelPromises } from '../../utils';
import Audio from './Audio';
class AudioContainer extends Component {
static ... |
front/client/containers/Root/index.js | gazayas/tebukuro | import React from 'react'
import { Provider } from 'react-redux'
import { Router, Route, IndexRoute } from 'react-router'
import RouteUrls from '../../constants/RouteUrls'
import App from '../App'
import Top from '../../components/Top'
import CommunityList from '../CommunityList'
import CreateCommunityForm from '../Com... |
src/component/Tab.js | chengfh11/react | import React, { Component } from 'react';
import styled, { css } from 'styled-components';
const Button = styled.button `
border-radius: 3px;
padding: 0.25em 1em;
margin: 0 1em;
background: transparent;
color: palevioletred;
border: 2px solid palevioletred;
${props => props.primary && css`
background: palevi... |
es/components/PlaylistManager/SearchResults/NoSearchResults.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import Typography from "@material-ui/core/es/Typography";
import NoResultsIcon from "@material-ui/icons/es/Search";
var enhance = translate();
var _ref2 =
/*#... |
src/client.js | shaunstanislaus/react-redux-universal-hot-example | /**
* 这就是切入点客户端,就像server.js的切入点对于服务器.
*/
import 'babel/polyfill';
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import Location from 'react-router/lib/Location';
import queryString from 'query-string';
import createStore from './redux/create';
import ApiClient from './helper... |
src/containers/Root.js | nchaulet/bitbucket-team-pullrequests | import React from 'react';
import {createStore, combineReducers, applyMiddleware} from "redux";
import {Provider} from "react-redux";
import thunk from "redux-thunk";
import * as reducers from '../reducers/index';
import App from './App';
const reducer = combineReducers(reducers);
const finalCreateStore = applyMiddle... |
modules/RouteUtils.js | andreftavares/react-router | import React from 'react'
import warning from 'warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName, p... |
src/react-code-prettify.js | ateev/react-code-prettify | import React from 'react';
import prettify from 'code-prettify';
import {TomorrowNight} from './styles';
class Code extends React.Component {
render() {
const codeData = prettify.prettyPrintOne(this.props.codeString, this.props.language);
const codeClassName = this.props.language !== undefined ? `l... |
examples/wfst/app.js | jjmulenex/sdk | /** Demonstrate working with WFS-T
*
* Uses a tracts layer served from GeoServer to
* do WFS-T stuff.
*
*/
import {createStore, combineReducers, applyMiddleware} from 'redux';
import thunkMiddleware from 'redux-thunk';
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-... |
src/svg-icons/maps/navigation.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsNavigation = (props) => (
<SvgIcon {...props}>
<path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/>
</SvgIcon>
);
MapsNavigation = pure(MapsNavigation);
MapsNavigation.displayName = 'MapsNavigation';
... |
react-flux-mui/js/material-ui/src/svg-icons/action/home.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHome = (props) => (
<SvgIcon {...props}>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
</SvgIcon>
);
ActionHome = pure(ActionHome);
ActionHome.displayName = 'ActionHome';
ActionHome.muiName = 'SvgIcon... |
src/parser/hunter/marksmanship/modules/features/SpellsAndTalents.js | sMteX/WoWAnalyzer | import React from 'react';
import StatisticsListBox from 'interface/others/StatisticsListBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import Analyzer from 'parser/core/Analyzer';
import LoneWolf from '../spells/LoneWolf';
import Volley from '../talents/Volley';
import PiercingShot from '../ta... |
src/svg-icons/notification/disc-full.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDiscFull = (props) => (
<SvgIcon {...props}>
<path d="M20 16h2v-2h-2v2zm0-9v5h2V7h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/>
... |
src/components/modal/Mask.js | heifade/quark-ui | /**
* Mask Component
* @author ryan.bian
*/
import React from 'react';
import PropTypes from 'prop-types';
import styles from './Modal.css';
const Mask = ({ visible, children }) => (
<div className={styles[`mask${visible ? '--visible' : ''}`]}>
{children}
</div>
);
Mask.defaultProps = {
visible: false,
}... |
acceptance/src/pages/AvatarPage.js | Autodesk/hig | import React from 'react';
import Avatar, { AVAILABLE_SIZES } from '@hig/avatar';
import Spacer from '@hig/spacer';
import ThemeRepeater from '../components/ThemeRepeater';
const people = [
{ name: "Aoo Bar" },
{ name: "G E" },
{ name: "K G" },
{ name: "N G" },
{ name: "R G" },
{ name: "V G" },
{ name: ... |
App/Components/ChannelDetail/Videos/index.js | okmttdhr/YoutuVote | // @flow
import React from 'react';
import { View, Text } from 'react-native';
import styles from './style';
import type {TDefaultChannel} from '../../../types/';
import {Panel} from './Panel';
import {Loading} from '../../Loading/';
type TVideos = {
channel: TDefaultChannel;
}
export const Videos = (
{channel}:... |
examples/demo4.js | chinayangzhan913/react-grid-gallery | import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import Gallery from '../src/Gallery';
class Demo4 extends React.Component {
constructor(props){
super(props);
this.state = {
images: this.props.images
};
}
setCustomTags (i... |
app/containers/HomePage/index.js | commanderking/alliancechemistry | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { makeSelectRepos, mak... |
components/BookingRequestPreview/BookingRequestPreview.js | NGMarmaduke/bloom | import PropTypes from 'prop-types';
import React from 'react';
import FittedImage from '../FittedImage/FittedImage';
import moment from '../../utils/moment/moment';
import LeftRight from '../LeftRight/LeftRight';
import css from './BookingRequestPreview.css';
import Icon from '../Icon/Icon';
const BookingRequestPrevi... |
src/components/widgets/A_Container/index.js | humaniq/humaniq-pwa-website | import React from 'react';
import * as T from "prop-types";
import './styles.scss';
import {cssClassName} from 'utils'
const cn = cssClassName('A_Container')
const A_Container = ({mix, children, type}) =>(
<div className={cn({type}, [mix])}>{children}</div>
)
A_Container.propTypes = {
type: T.oneOf([
'video-h... |
client/node_modules/react-redux/es/components/Context.js | Dans-labs/dariah | import React from 'react';
export var ReactReduxContext = React.createContext(null);
export default ReactReduxContext; |
src/GiftedAvatar.js | Karkin/react-native-gifted-chat | /*
** This component will be published in a separate package
*/
import React from 'react';
import {
Image,
Text,
TouchableOpacity,
View,
} from 'react-native';
// TODO
// 3 words name initials
// handle only alpha numeric chars
export default class GiftedAvatar extends React.Component {
setAvatarColor() {
... |
src/routes/Home/components/HomeView.js | tmslav/project1 | import React from 'react'
import './HomeView.scss'
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux'
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import { ControlLabel, FormControl, HelpBlock, FormGroup, Checkbox,Radio, ... |
src/main.js | CosX/React-pip-boy | import React from 'react';
import Page from './es6/component.js';
import 'normalize-css';
import './less/main.less';
React.render(<Page />, document.getElementById('app'));
|
src/Actions.js | pluralcom/react-native-gifted-chat | import PropTypes from 'prop-types';
import React from 'react';
import {
StyleSheet,
Text,
TouchableOpacity,
View,
ViewPropTypes,
} from 'react-native';
export default class Actions extends React.Component {
constructor(props) {
super(props);
this.onActionsPress = this.onActionsPress.bind(this);
}... |
client/index.js | williaumwu/mern-sample | /**
* Client entry point
*/
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './App';
import { configureStore } from './store';
import firebase from 'firebase';
import { verifyAuth } from './modules/App/AppActions';
const config = {
api... |
lexiconSearch/client/lexiconSearchApp.js | vistadataproject/nonClinicalRPCs | import React from 'react';
import ReactDOM from 'react-dom';
import SearchForm from './searchForm';
export default class LexiconSearchApp extends React.Component {
render () {
return (
<div id="lexiconSearchApp">
<SearchForm />
</div>
);
}
} |
analysis/paladinholy/src/modules/beacons/BeaconHealingDone.js | anom0ly/WoWAnalyzer | import { Trans } from '@lingui/macro';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import HealingValue from 'parser/shared/modules/HealingValue';
import HealingDone from 'parser/shared/modules/throughput/HealingDone';
import Panel from 'parser/ui/Panel';
import React from 'react';
import BeaconHe... |
test/index.js | lahmatiy/component-inspector | import '../src/api-adapter/react.js'; // NOTE: should be first to ensure React dev API to be attached
import './getComponentNameByNode.js';
import './old.js';
import React from 'react';
console.log('React version', React.version);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.