path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/BaseStylesWrapper.js | chaoticbackup/chaoticbackup.github.io | import React from 'react';
import { Outlet, Link } from 'react-router-dom';
import API from './SpreadsheetData';
import { Donate } from './Snippets';
export default function Base() {
// Configuration for the language and background
// Images managed in css file
const language = "ENG";
const bkgrnd = "05";
... |
src/Parser/DemonHunter/Vengeance/CONFIG.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { Mamtooth } from 'CONTRIBUTORS';
import SPECS from 'common/SPECS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import Warning from 'common/Alert/Warning';
import CombatLogParser from './CombatLogParser';
import ... |
app/javascript/mastodon/features/following/index.js | riku6460/chikuwagoddon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import LoadingIndicator from '../../components/loading... |
src/Tntfleague.js | moreginger/react-tntfleague | import React from 'react';
import ReactDOM from 'react-dom';
import { LeagueActions } from './actions/LeagueActions';
import League from './components/League';
LeagueActions.load();
ReactDOM.render(<League />, document.getElementById('league'));
|
src/svg-icons/hardware/cast-connected.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareCastConnected = (props) => (
<SvgIcon {...props}>
<path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 ... |
react/Alert/Alert.demo.js | seek-oss/seek-style-guide | import React from 'react';
import PropTypes from 'prop-types';
import { Alert, Card, Section } from 'seek-style-guide/react';
import { TONE } from '../private/tone';
import { LEVEL } from '../private/level';
import * as sketch from './Alert.sketch';
const Container = ({ component: DemoComponent, componentProps }) => (... |
website/src/components/Hero.js | callstack/linaria | /* @flow */
import { styled } from '@linaria/react';
import React from 'react';
import { media } from '../styles/utils';
import Container from './Container';
export default function Hero() {
return (
<HeroContainer>
<Container>
<Row>
<LeftColumn>
<Heading>Zero-Runtime CSS in ... |
js/src/ui/QrCode/qrCode.example.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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 Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
app/boards/motec-d153/components/modes/distance-lap.js | fermio/motorsport-display | import React from 'react';
import _ from 'lodash';
import numberSplitter from '../../libraries/number-splitter';
const DistanceLap = React.createClass({
propTypes: {
dash: React.PropTypes.object.isRequired,
fuel: React.PropTypes.object.isRequired,
game: React.PropTypes.object.isRequired
... |
renderer/components/Icon/Eye.js | LN-Zap/zap-desktop | import React from 'react'
const SvgEye = props => (
<svg
className="eye_svg__feather eye_svg__feather-eye"
fill="none"
height="1em"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
viewBox="0 0 24 24"
width="1em"
{...props}
>
<path d="M1... |
examples/counter/containers/CounterApp.js | pascience/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'redux/react';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp extend... |
components/ProgressView/index.js | samuelngs/px |
import React, { Component } from 'react';
import { View, StyleSheet, ActivityIndicator } from 'react-native';
export default class ProgressView extends Component {
static defaultProps = {
style: {},
}
static propTypes = {
style: React.PropTypes.object,
}
render() {
const { style } = this.prop... |
frontend/src/components/threads-list/thread/details/compact.js | 1905410/Misago | import React from 'react';
import Category from 'misago/components/threads-list/thread/category'; // jshint ignore:line
export default class extends React.Component {
getPath() {
let top = this.props.categories[this.props.thread.top_category];
let bottom = this.props.categories[this.props.thread.category];
... |
client/components/contact.js | nizarayari/PersonalWebsite | import React, { Component } from 'react';
export default class Contact extends Component {
render(){
return (
<div className='contact-lockup'>
<h3 id='contact'> contact </h3>
<div className='social-icons'>
<a href="mailto:nizarayari17@gmail.com?Subject=contact" target="_top">... |
app/javascript/components/TypesDeChampEditor/components/TypeDeChampCarteOptions.js | sgmap/tps | import React from 'react';
import PropTypes from 'prop-types';
function TypeDeChampCarteOptions({ isVisible, children }) {
if (isVisible) {
return (
<div className="cell">
<label>Utilisation de la cartographie</label>
<div className="carte-options">{children}</div>
</div>
);
}
... |
packages/mineral-ui-icons/src/IconLoop.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconLoop(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
UI/ToolTip/BottomRight.js | Datasilk/Dedicate | import React from 'react';
import {Animated, Easing} from 'react-native';
import Text from 'text/Text';
import {Svg, Path} from 'react-native-svg';
import AppStyles from 'dedicate/AppStyles';
export default class ToolTipBottomRight extends React.Component {
constructor(props){
super(props);
this.s... |
packages/react/src/components/pages/Error404/index.js | massgov/mayflower | /**
* Error404 module.
* @module @massds/mayflower-react/Error404
* @requires module:@massds/mayflower-assets/scss/04-templates/narrow-template
* @requires module:@massds/mayflower-assets/scss/03-organisms/error-page
*/
import React from 'react';
import PropTypes from 'prop-types';
import NarrowTemplate from 'Mayf... |
examples/js/custom/delete-button/default-custom-delete-button.js | AllenFang/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-alert: 0 */
/* eslint no-console: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn, DeleteButton } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for... |
docs/src/examples/elements/Image/Variations/ImageExampleCentered.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Segment, Image } from 'semantic-ui-react'
const src1 = '/images/wireframe/image.png'
const src2 = '/images/wireframe/image-text.png'
const ImageExampleCentered = () => (
<Segment>
<Image src={src1} size='medium' centered />
<p>
Te eum doming eirmod, nominati pertinac... |
src/renderer/component/application.js | hakuginn220/mammoth | import React from 'react'
export default function Application(props) {
return (
<ul>
<li>name: {props.name}</li>
<li>website: {props.website}</li>
</ul>
)
}
|
client/components/header.js | pradel/octon | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Router from 'next/router';
import styled from 'styled-components';
import AppBar from 'material-ui/AppBar';
import Toolbar from 'material-ui/Toolbar';
import IconButton from 'material-ui/IconButton';
import Menu, { MenuItem } from 'mat... |
admin/client/App/screens/Home/components/ListTile.js | giovanniRodighiero/cms | import React from 'react';
import { Link } from 'react-router';
/**
* Displays information about a list and lets you create a new one.
*/
var ListTile = React.createClass({
propTypes: {
count: React.PropTypes.string,
hideCreateButton: React.PropTypes.bool,
href: React.PropTypes.string,
label: React.PropType... |
src/index.js | feralclaw/moe | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import 'normalize.css';
import Root from './apps/Root';
import './css/style.less';
const renderApp = (Component) => {
render(
<AppContainer><Component /></AppContainer>,
document.getElem... |
src/admin/src/components/controls/renderers/render_image.js | jgretz/zen-express | import React from 'react';
export const renderImage = (data, field) =>
(
<img src={data} alt={field.name} />
);
|
src/components/authors/AuthorBooksPage.js | alxeg/flibooks-web-react | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as flibooksActions from '../../actions/flibooksActions';
import Checkbox from 'material-ui/Checkbox';
import {List, ListItem} from 'material-ui/List';
import RaisedBut... |
src/components/icons/MoreVertIcon.js | InsideSalesOfficial/insidesales-components | import React from 'react';
const MoreVertIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24">
{props.title && <title>{props.title}</title>}
<path d="M0 0h24v24H0z" fill="none" />
<path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2... |
com/jessewarden/contacts/contactClasses/NewImageView.js | JesterXL/react-bootstrap-express-cassandra-contacts | import React from 'react';
import ReactDOM from 'react-dom';
import _ from 'lodash';
import EventBus from '../EventBus';
import ContactsModel from '../models/ContactsModel';
class NewImageView extends React.Component
{
constructor(props)
{
super(props);
this.state = {
contact: ContactsModel.instance.getNewCon... |
app/js/pages/Logout.js | arcsecw/auto_writing | import React from 'react';
import {
Container,
Input,
ButtonToolbar,
Tabs,
Item,
Icon,
Table,
} from 'amazeui-react';
import { myConfig } from '../components/config.js';
import { logout } from '../components/Call';
import { browserHistory, Router, Route, Link, withRouter } from 'react-router'
var Logout ... |
src/native/nativeBaseComponents/footer.js | naveedaheer/react-native-doctor-app | import React, { Component } from 'react';
import { Text } from 'react-native';
import { Footer, FooterTab, Button, Icon } from 'native-base';
export default class FooterComponents extends Component {
render() {
return (
<Footer >
<FooterTab>
<Button active>
... |
src/App.js | hostables/musicquiz | import React from 'react'
import {compose, lifecycle, withState} from 'recompose'
import {
BrowserRouter as Router,
Route,
Switch
} from 'react-router-dom'
import auth from './auth'
import NotFound from './components/FourOhFour'
import JoinGame from './components/JoinGame'
import ManageGame from './components/... |
app/containers/MainPage/index.js | boogunote/mevoco-client | /**
*
* Main.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
// Import the CSS reset, which HtmlWebpackPlugin transfers to the build folder
import 'sanitize.css/sanitize.css'... |
app/addons/verifyinstall/components/VerifyInstallButton.js | michellephung/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/routes/about/index.js | lassegit/gitdude.com | import React from 'react';
import Layout from '../../components/Layout';
import Page from '../../components/Page';
const style = {
maxWidth: '768px',
margin: 'auto',
padding: '0 0 40px 0',
};
export default {
path: '/about',
async action(component) {
const data = await require.ensure([], require => re... |
components/AppConfetti.js | Meadowcottage/meadowcottagexyz | import React from 'react'
import Confetti from 'react-confetti'
const date = new Date()
var day = date.getDate()
var month = date.getMonth()
export default class AppConfetti extends React.Component {
render () {
// If my birthday, add confetti
if ((day + '-' + month) === '9-7') {
return <Confetti />
... |
src/app/container/upload-page.js | all3dp/printing-engine-client | import React from 'react'
import {connect} from 'react-redux'
import unzip from 'lodash/unzip'
import compact from 'lodash/compact'
import {withRouter} from 'react-router'
import compose from 'recompose/compose'
import withProps from 'recompose/withProps'
import withHandlers from 'recompose/withHandlers'
import interse... |
app/javascript/mastodon/features/home_timeline/components/column_settings.js | pixiv/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
import SettingText from '../../../components/se... |
web-app/src/components/OnBoard/Fase2/ObservationsContainer.js | oSoc17/code9000 | import React, { Component } from 'react';
import _ from 'lodash';
import { Redirect } from 'react-router-dom';
import Observations from '../../Observations/Observations';
import picture1 from './pictures/fase2_picture1.jpg';
import picture2 from './pictures/fase2_picture2.jpg';
const OBSERVATIONS = [
{
id: 1,
... |
components/RadioButtonGroup.js | hellobrian/carbon-components-react | import PropTypes from 'prop-types';
import React from 'react';
import RadioButton from './RadioButton';
import warning from 'warning';
class RadioButtonGroup extends React.Component {
static propTypes = {
children: PropTypes.node,
className: PropTypes.string,
defaultSelected: PropTypes.oneOfType([PropTyp... |
app/components/Category/Category.js | dmitru/redux-bootstrap-starter-kit |
import React from 'react'
import { Label, Row, Col, Glyphicon } from 'react-bootstrap'
import Spinner from '../Spinner'
import styles from './Category.scss'
const Category = ({ name, isSaving, isSelected, onClick }) => (
<div onClick={onClick} className={styles.entryContainer}>
<Row>
<Col xs={2} style={... |
src/components/Table/Row.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
const Row = React.forwardRef((props, ref) => {
const {
children,
className,
sticky,
variation,
style,
...rest
} = props;
const rowStyle = sticky ? { ...Row.STICKY_SCROLLED_STYLE, ...style } : styl... |
front-end/src/components/TopTen.js | AuthEceSoftEng/npm-miner | import React from 'react'
import { Link } from 'react-router-dom';
import NumberFormat from 'react-number-format';
const TopTen = (props) => (
<div className="card">
<header className="card-header has-text-centered">
<p className="card-header-title">
{props.title}
</p>
... |
MobileApp/node_modules/react-native-elements/src/grid/Row.js | VowelWeb/CoinTradePros.com | import PropTypes from 'prop-types';
import React from 'react';
import { View, StyleSheet, TouchableOpacity } from 'react-native';
const Row = props => {
const { containerStyle, size, onPress, activeOpacity } = props;
const styles = StyleSheet.create({
container: {
flex: size ? size : containerStyle && c... |
app/components/dashboardproject/keys.js | ritishgumber/dashboard-ui | /**
* Created by Darkstar on 12/21/2016.
*/
/**
* Created by Darkstar on 12/2/2016.
*/
'use strict';
import React from 'react';
import {connect} from 'react-redux';
import {genClientKey, genMasterKey} from '../../actions';
import {FormGroup, InputGroup, FormControl, Clearfix} from 'react-bootstrap';
import Help fro... |
client/app/scripts/charts/nodes-chart-edges.js | dilgerma/scope | import React from 'react';
import { connect } from 'react-redux';
import { Map as makeMap } from 'immutable';
import { hasSelectedNode as hasSelectedNodeFn } from '../utils/topology-utils';
import EdgeContainer from './edge-container';
class NodesChartEdges extends React.Component {
render() {
const { hasSelect... |
code_search/src/ui/src/index.js | kubeflow/examples | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/components/control-bar/FullscreenToggle.js | video-react/video-react | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import classNames from 'classnames';
const propTypes = {
actions: PropTypes.object,
player: PropTypes.object,
className: PropTypes.string
};
export default class FullscreenToggle extends Component {
constructor(props, context) {
... |
src/routes/investor/Draws.js | medevelopment/updatemeadmin | import React, { Component } from 'react';
import s from './Investor.css';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import Link from '../../components/Link';
class Draws extends Component {
constructor(props) {
super(props);
this.state = {
draw: props.Draw,
loading: true
... |
examples/01 Dustbin/Multiple Targets/Container.js | zetkin/react-dnd | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend, { NativeTypes } from 'react-dnd/modules/backends/HTML5';
import Dustbin from './Dustbin';
import Box from './Box';
import ItemTypes from './ItemTypes';
import update from 'react/lib/update';
@DragDropContext(HTM... |
webApp/web_client/components/NoBroadcast.js | deliquescentlicorice/silent-disco | import React from 'react';
import Card from '../../node_modules/material-ui/lib/card/card';
import CardText from '../../node_modules/material-ui/lib/card/card-text';
class NoBroadcast extends React.Component {
render() {
return (
<Card>
<CardText>
Broadcasting requires a modern, standards... |
src/svg-icons/communication/rss-feed.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationRssFeed = (props) => (
<SvgIcon {...props}>
<circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17... |
react-components/src/library/components/signup/teacher_registration_complete.js | concord-consortium/rigse | import React from 'react'
export default class TeacherRegistrationComplete extends React.Component {
componentDidMount () {
ga('send', 'event', 'User Registration', 'Form', 'Final Step Completed - Teacher')
}
render () {
let successMessage = this.props.anonymous
? <p>We're sending you an email wit... |
packages/material-ui-icons/src/Reply.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Reply = props =>
<SvgIcon {...props}>
<path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z" />
</SvgIcon>;
Reply = pure(Reply);
Reply.muiName = 'SvgIcon';
export default Reply;
|
docs/src/app/pages/components/InlineEdit/Page.js | GetAmbassador/react-ions | import React from 'react'
import PropsList from 'private/modules/PropsList'
import docs from '!!docgen!react-ions/lib/components/InlineEdit/InlineEdit'
import CodeExample from 'private/modules/CodeExample'
import ExampleInlineEditDefault from './ExampleInlineEditDefault'
import exampleInlineEditDefaultCode from '!raw!.... |
src/components/SaveButton.js | mjec/rc-niceties | import React from 'react';
import { Button } from 'react-bootstrap';
const SaveButton = (props) => (
<div className="button">
<Button
bsStyle="primary"
bsSize="large"
disabled={props.noSave === true}
onClick={props.onClick}
>
Save
... |
frontend/src/Components/Menu/SortMenu.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Menu from 'Components/Menu/Menu';
import ToolbarMenuButton from 'Components/Menu/ToolbarMenuButton';
import { icons } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
function SortMenu(props) {
const {
className,
c... |
src/client/modules/indeed/pages/PostJob/JobTypeSelector.js | dunika/job-admin | import React from 'react';
const jobTypes = [
{ value: '2', label: 'Full Time' },
{ value: '189', label: 'Volunteer' },
{ value: '192', label: 'Temporary' },
{ value: '193', label: 'Permanent' },
{ value: '314', label: 'Freelance' },
{ value: '315', label: 'Internship' },
{ value: '340', label: 'Apprenti... |
wrappers/toml.js | RossAD/MyWebsite | import React from 'react'
import toml from 'toml-js'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (... |
app/components/about/About.js | jendela/jendela | import React from 'react'
import Team from './Team'
import FAQ from './FAQ'
class About extends React.Component {
render() {
const styles = {
info: {
background: "#f2faff",
paddingTop: "25px",
paddingBottom: "25px"
}
}
... |
src/internal/ClearFix.js | pradel/material-ui | import React from 'react';
import BeforeAfterWrapper from './BeforeAfterWrapper';
const styles = {
before: {
content: "' '",
display: 'table',
},
after: {
content: "' '",
clear: 'both',
display: 'table',
},
};
const ClearFix = ({style, children, ...other}) => (
<BeforeAfterWrapper
{.... |
src/components/Header/Header.js | resendefreitas/avidade | import React from 'react';
import './Header.less';
class Header extends React.Component {
render() {
return (
<div className="Header navbar navbar-default container">
<nav className="container-fluid">
<div className="Header__bar navbar-header">
<button type="button" classNam... |
src/server/frontend/render.js | jaeh/este | import DocumentTitle from 'react-document-title';
import Html from './html.react';
import Promise from 'bluebird';
import React from 'react';
import Router from 'react-router';
import config from '../config';
import immutable from 'immutable';
import initialState from '../initialstate';
import routes from '../../client... |
imports/ui/components/footer/Footer.js | hwillson/shopify-hosted-payments | import React from 'react';
import { Meteor } from 'meteor/meteor';
const Footer = () => (
<div className="main__footer">
<div role="contentinfo" aria-label="Footer">
<p className="copyright-text">
All rights reserved
{Meteor.settings.public.paymentPage.companyName}
</p>
</di... |
src/svg-icons/notification/do-not-disturb.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturb = (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 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13... |
src/components/handlebars/original/HandlebarsOriginal.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './HandlebarsOriginal.svg'
/** HandlebarsOriginal */
function HandlebarsOriginal({ width, height, className }) {
return (
<SVGDeviconInline
className={'HandlebarsOri... |
app/javascript/mastodon/features/ui/components/mute_modal.js | abcang/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Toggle from 'react-toggle';
import Button from '../../../components/button';
import { closeModal } from '../../../actions/modal';
import... |
src/js/components/icons/base/CloudComputer.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
demo/src/index.js | shop-ui/shop-ui-cart | import React from 'react'
import ReactDOM from 'react-dom'
import {OverlaidCart} from '../../lib/index';
import './index.css';
class App extends React.Component {
state = {
isOpen: false
}
render() {
return (
<div className="Demo">
<button onClick={()=> this.showCart()}>Show Cart</button... |
src/docs/ComponentPage.js | dryzhkov/ps-react-dr | import React from 'react';
import PropTypes from 'prop-types';
import Example from './Example';
import Props from './Props';
const ComponentPage = ({component}) => {
const {name, description, props, examples} = component;
return (
<div className="componentpage">
<h2>{name}</h2>
<p>{description}</p... |
app/main.js | nickromney/devops-docker-ci | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware, compose } from 'redux'
import reducer from './reducers'
import App from './components/App'
// ---------------------------------------------------------------------------
// Redux... |
src/containers/login-page/LoginPage.js | CyberThugs/JavaScript-Applications-Team-Project | import React, { Component } from 'react';
import { connect } from 'react-redux';
class LoginPage extends Component {
render() {
return (
<div className="container">
<div className="row">
<div className="col-md-8 col-md-offset-3">
<for... |
internals/templates/containers/HomePage/index.js | mxstbr/react-boilerplate | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
export default function HomePage() {
return (
<h1>
<FormattedMessage {...messages.header} />
</h1>
)... |
components/Form/InputRange/InputRange.story.js | NGMarmaduke/bloom | import React from 'react';
import { storiesOf, action } from '@storybook/react';
import { withKnobs, number } from '@storybook/addon-knobs';
import InputRange from './InputRange';
import transformStepValues from './transformStepValues';
import InputRangeWithHistogram from './InputRangeWithHistogram';
const stories = s... |
src/client.js | JeremyJonas/react-redux-universal-hot-example | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
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 cre... |
src/Parser/Shaman/Elemental/Modules/Talents/Ascendance.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import StatisticBox, { STA... |
client/index.js | enspiral-dev-academy/grads | import 'bulma'
// https://dev.to/letsbsocial1/requestanimationframe--polyfill-in-react-16-2ce
import 'core-js/es6/map'
import 'core-js/es6/set'
import React from 'react'
import {render} from 'react-dom'
import {BrowserRouter as Router} from 'react-router-dom'
import {Provider} from 'react-redux'
import {createStore, ap... |
react/features/no-audio-signal/middleware.js | gpolitis/jitsi-meet | // @flow
import React from 'react';
import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from '../base/app';
import { CONFERENCE_JOINED } from '../base/conference';
import {
formatDeviceLabel,
setAudioInputDevice
} from '../base/devices';
import JitsiMeetJS, { JitsiConferenceEvents } from '../base/lib-jitsi-meet';
imp... |
src/components/common/SimpleEditor/Component/utils/createColorMarkButton.js | anztrax/simple-image-server-frontend | import React from 'react';
import { SketchPicker } from 'react-color';
export default function createColorMarkButton(type,text) {
return class ColorMarkButton extends React.Component {
static get markType(){
return type;
}
constructor(props) {
super(props);
this.state = {
color... |
Projets/JS/React/Projet 3 BAR/myRecipeBox/src/components/Card.js | thib123/TPJ | import React from 'react';
class Card extends React.Component {
render() {
const ingredients = this.props.details.ingredients.split(',').map((item, key) => <li key={key}>{item}</li>);
const instructions = this.props.details.instructions.split('\n').map((item, key) => <li key={key}>{item}</li>);
return (
... |
docs/src/app/components/pages/components/DropDownMenu/ExampleSimple.js | kittyjumbalaya/material-components-web | import React from 'react';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
const styles = {
customWidth: {
width: 200,
},
};
export default class DropDownMenuSimpleExample extends React.Component {
constructor(props) {
super(props);
this.state = {va... |
app/packs/src/admin/AdminHome.js | ComPlat/chemotion_ELN | import React from 'react';
import ReactDOM from 'react-dom';
import { Grid, Row, Col, Nav, NavItem } from 'react-bootstrap';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import AdminNavigation from './AdminNavigation';
import Notifications from '../components/Notifica... |
docs/src/components/Demo/EditorConvertToMarkdown/index.js | michalko/draft-wyswig | /* @flow */
import React, { Component } from 'react';
import { convertToRaw } from 'draft-js';
import { Editor } from 'react-draft-wysiwyg';
import draftToMarkdown from 'draftjs-to-markdown';
import Codemirror from 'react-codemirror';
const content = {"entityMap":{},"blocks":[{"key":"637gr","text":"Initialized from c... |
src/svg-icons/action/settings-input-hdmi.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputHdmi = (props) => (
<SvgIcon {...props}>
<path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"/>
</SvgIcon>
);
ActionSettingsInputHd... |
src/utils/bungie/transfer.js | MrRandol/littleLight | import React from 'react';
import { LLException } from '../errorHandler';
import * as Message from '../message';
import * as Request from './request';
import * as BUNGIE from './static';
var _ = require('underscore');
export function equipItem(item, membershipType, destGuardian) {
Message.debug("equipping item " ... |
app/containers/Root.js | fakob/electron-test-v003 | // @flow
import React from 'react';
import { Provider } from 'react-redux';
import App from '.././components/App';
type RootType = {
store: {},
history: {}
};
export default function Root({ store, history }: RootType) {
return (
<Provider store={store}>
<App history={history} />
</Provider>
);
}... |
oversee/static/src/js/screen/index.js | bpsagar/oversee | import React from 'react'
import { render } from 'react-dom'
import Screen from './components/Screen'
render(
<Screen />,
document.getElementById('screen')
)
document.body.addEventListener('click', () => {
var element = document.body
var requestMethod = (
element.requestFullScreen ||
element.webkitRe... |
test/integration/css-fixtures/bad-custom-configuration-arr-5/pages/_app.js | zeit/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
src/components/Table/TableRow/TableRow.stories.js | auth0-extensions/auth0-extension-ui | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import TableRow from './';
storiesOf('TableRow', module)
.add('default view', () => (
<TableRow>
This is the TableRow children.
</TableRow>
));
|
NavigatorDemo/index.ios.js | HarrisLee/React-Native-Express | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import MyScene from './MyScene';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Navigator
} from 'react-native';
export default class NavigatorDemo extends Component {
render()... |
src/components/shared-components/commentsLabel/CommentsLabel.js | ummahusla/Hacker-Reader | import React from 'react';
import { Label } from 'react-bootstrap';
import { Link } from 'react-router';
import './CommentsLabel.css';
const CommentsLabel = (props) => {
if (typeof props.comments !== 'undefined' && props.comments.length !== 1) {
return <Label bsStyle="success"><Link className="label-comments-lin... |
platform/ui/src/components/measurementTable/MeasurementTable.js | OHIF/Viewers | import './MeasurementTable.styl';
import React, { Component } from 'react';
import { withTranslation } from '../../contextProviders';
import { Icon } from './../../elements/Icon';
import { MeasurementTableItem } from './MeasurementTableItem.js';
import { OverlayTrigger } from './../overlayTrigger';
import PropTypes f... |
src/Main/FightSelectorHeader.js | enragednuke/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Toggle from 'react-toggle';
import { getFightId } from 'selectors/url/report';
import { getReport } from 'selectors/report';
import { getFightById } from 'selectors/fight';
import getFightName from 'common/getF... |
src/svg-icons/maps/local-see.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalSee = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5... |
src/js/components/icons/base/CloudSoftware.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
javascript/components/manual-transfer-batch.js | kdoran/moriana-react | import React from 'react'
import ClickOutHandler from 'react-onclickout'
import h, {setCursorAtEnd} from 'utils/helpers'
export default class ManualTransferBatch extends React.Component {
state = { edits: {} }
constructor (props) {
super(props)
const edits = {}
props.transactions.forEach((t, i) => {
... |
src/components/video_detail.js | mateusrdgs/ReactTraining | import React, { Component } from 'react';
const VideoDetail = ({video}) => {
if(!video) {
return (
<div>Loading...</div>
);
}
const videoTitle = video.snippet.title;
const videoDescription = video.snippet.description;
const videoUrl = video.id.videoId;
const url = `https://www.youtube.com/emb... |
public/js/components/DetailsComplementaryInformation.js | Vabrins/CadernetaDoIdoso | import React from 'react';
import $ from 'jquery';
import { Link } from 'react-router-dom';
class DetailsComplementaryInformation extends React.Component {
constructor (props) {
super(props);
this.state = {
some_family_mem_fri_said_that_are_get_forg_2_7:'',
forgetfulness_is_getting_worse_in_la... |
scenes/VRScene.js | zuhairp/LearningSpace | import 'aframe';
import {Entity, Scene} from 'aframe-react';
import React from 'react';
import VRMountainScene from './VRMountainScene'
import VRSecheltScene from './VRSecheltScene'
import VRBasilicaScene from './VRBasilicaScene'
class VRScene extends React.Component {
constructor(props){
super(props);
thi... |
examples/src/components/CustomSingleValue.js | StephenGrider/react-select | import React from 'react';
import Gravatar from 'react-gravatar';
var SingleValue = React.createClass({
propTypes: {
placeholder: React.PropTypes.string,
value: React.PropTypes.object
},
render () {
var obj = this.props.value;
var size = 15;
var gravatarStyle = {
borderRadius: 3,
display: 'inline-bl... |
styleguide/sections/Blocks.js | chrisspang/loggins | import React, { Component } from 'react';
import Section from '../components/Section';
import Btn from 'components/Btn/Btn';
import PhotoHero from 'components/Blocks/PhotoHero';
import PHH from 'components/Blocks/PhotoHero.css';
import PlainHero from 'components/Blocks/PlainHero';
import PLH from 'components/Blocks/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.