path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
server/sonar-web/src/main/js/components/ui/CoverageRating.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info 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, o... |
app/containers/Root.js | echohubio/hubber | // @flow
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { hot } from 'react-hot-loader';
import { ConnectedRouter } from 'react-router-redux';
import Routes from '../routes';
type Props = {
store: {},
history: {}
};
class Root extends Component<Props> { // eslint-disable-... |
test/dummy/client/components/posts/record-title.js | factore/tenon | import React from 'react';
module.exports = ({ record }) => {
let publishText;
if (record.formatted_publish_at) {
publishText = <span>Published on {record.formatted_publish_at}</span>;
} else {
publishText = <span>Not published.</span>;
}
return (
<div>
<p className="record__title">
... |
src/components/app/app.js | ebabel-eu/ebabel-home | // React
import React, { Component } from 'react';
// Internal dependencies.
import Header from '../nav/header/header';
import Nav from '../nav/nav';
import Footer from '../footer/footer';
import './app.scss';
export default class App extends Component {
render() {
return (
<div className='container'>
... |
server/server.js | mahfuzsust/mernt | import Express from 'express';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import path from 'path';
// Webpack Requirements
import webpack from 'webpack';
import config from '../webpack.config.dev';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from '... |
src/svg-icons/action/find-in-page.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFindInPage = (props) => (
<SvgIcon {...props}>
<path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5... |
src/js/components/Pages/Form.js | appdev-academy/appdev.academy-react | import React from 'react'
import { Link } from 'react-router'
import Textarea from 'react-textarea-autosize'
import ClassNames from 'classnames'
import videoPlugin from '../../plugins/video'
import ErrorsList from '../ErrorsList'
import BlueButton from '../Buttons/Blue'
import GreenButton from '../Buttons/Green'
// S... |
src/components/Tile/components/TitleRow.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import { Grid } from '../../Grid';
const TitleRow = ({ children, action }) => {
if (!action) return children;
return (
<Grid className="slds-has-flexi-truncate" align="spread">
{children}
<div className="slds-shrink-none">
{ac... |
docs/app/Examples/collections/Form/States/FormExampleFieldError.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Checkbox, Form, Input, Select } from 'semantic-ui-react'
const options = [
{ text: 'Male', value: 'male' },
{ text: 'Female', value: 'female' },
]
const FormExampleFieldError = () => (
<Form>
<Form.Group widths='equal'>
<Form.Input label='First name' placeholder='Fir... |
src/components/home/About.js | psongpin/Personal-Website-v2 | import React from 'react'
import { Container, Row, Col } from 'reactstrap'
import Link from 'gatsby-link'
import divider from '../../styles/Assets/Divider.svg'
import frontend from '../../styles/Assets/frontend.svg'
import wordpressDev from '../../styles/Assets/wordpressdev.svg'
import communityBuilder from '../../sty... |
scripts/utils/connectToStores.js | gaearon/flux-react-router-example | import React, { Component } from 'react';
import shallowEqual from 'react-pure-render/shallowEqual';
/**
* Exports a higher-order component that connects the component to stores.
* This higher-order component is most easily used as an ES7 decorator.
* Decorators are just a syntax sugar over wrapping class in a func... |
src/stories/Welcome.js | amsb/storybook_styled-components_example | import React from 'react';
const styles = {
main: {
margin: 15,
maxWidth: 600,
lineHeight: 1.4,
fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif',
},
logo: {
width: 200,
},
link: {
color: '#1474f3',
textDecoration: 'none',
borderBottom: '1px ... |
src/components/LengthScene.js | spcoder/movietrivia | import React, { Component } from 'react';
import Scene from './Scene.js';
import Button from './Button.js';
import { connect } from 'react-redux';
import { actionCreators } from './GameState';
class LengthScene extends Component {
setNumberOfQuestions(number) {
return () => {
this.props.dispatch(actionCrea... |
src/website/app/demos/Dialog/DialogBody/examples/basic.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import { mineralTheme } from '../../../../../../library/themes';
import {
DialogBody,
DialogHeader,
DialogTitle
} from '../../../../../../library/Dialog';
import Text from '../../../../../../library/Text';
import DemoLayout from '../../common/DemoLayout';
import Dialog from ... |
src/docs/Example.js | eliaslopezgt/ps-react-eli | import React from 'react';
import PropTypes from 'prop-types';
import CodeExample from './CodeExample';
class Example extends React.Component {
constructor(props) {
super(props);
this.state = { showCode: false };
}
toggleCode = event => {
event.preventDefault();
this.setState(prevState => {
... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | raptor1989/MobileHeader | 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'));
|
Example/List.js | testshallpass/react-native-dropdownalert | import React from 'react';
import {StyleSheet, Text, Pressable, FlatList} from 'react-native';
const Button = ({
item = {title: '', type: '', color: '#202020'},
onSelect = () => {},
}) => {
const text = item.title ? item.title : item.type;
return (
<Pressable
style={[styles.button, {borderColor: item... |
src/demos/kepler.gl/1-basic-keplergl/src/main.js | uber-common/vis-academy | // Copyright (c) 2018 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | zhijiansha123/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;
|
app/index.js | AlienStream/experimental-frontend | import React from 'react';
import ReactDOM from 'react-dom'
import { compose, createStore, combineReducers, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import { Router, Route, browserHistory, IndexRoute} from 'react-router'
import { syncHistoryWithStore, routerReducer, routerMiddleware, push} ... |
src/index.js | namelos/react-demo | import React, { Component } from 'react';
import { render } from 'react-dom';
import { Paper, Slider, Tabs, Tab, FlatButton } from 'material-ui';
import routes from './routes';
import reset from './utils/normalize';
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
import App from './c... |
docs/src/examples/elements/Step/Types/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
import ShorthandExample from 'docs/src/components/ComponentDoc/ShorthandExample'
const StepTypesExamples = () => (
<ExampleSection t... |
src/svg-icons/action/alarm-off.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmOff = (props) => (
<SvgIcon {...props}>
<path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6... |
src/components/Logo/Logo.js | DelvarWorld/some-game | import React, { Component } from 'react';
import THREE from 'three';
import { Text } from '../';
const topScale = new THREE.Vector3( 1, 1, 0.5 ).multiplyScalar( 1.6 );
const middlePosition = new THREE.Vector3( 1.6, 0, 0 );
const middleScale = new THREE.Vector3( 1, 1, 0.5 ).multiplyScalar( 0.6 );
const bottomPosition... |
clients/libs/webpage/src/lib/ux/pluggable-widget/overlay.js | nossas/bonde-client | import React from 'react'
/*import PropTypes from 'prop-types'*/
const overlayStyle = {
position: 'absolute',
top: '0',
right: '0',
bottom: '0',
left: '0',
fontWeight: 'bold',
borderWidth: '6px',
opacity: '.82',
backgroundColor: '#222222',
fontSize: '1.8rem'
}
class Overlay extends React.Component... |
src/Containers/Sobre.js | pedrobertao/CorridaGeneciadorBertao | import React from 'react';
import { withRouter, Link } from "react-router-dom";
import { Button, MenuItem, Nav, Navbar, NavItem, NavDropdown, Grid, Row, Col, Jumbotron } from 'react-bootstrap';
import Header from '../ComponentsFixed/Header';
import backgroundImg from '../Images/background-img.jpg';
const styles = {
... |
AngularJS_Full_Project_GULP/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | marziyeah/Medhacks_admin | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/components/app/form/Form.js | teamNOne/showdown | import React from 'react';
export default class Form extends React.Component {
render() {
return (
<div className='container'>
<div className='row flipInX animated'>
<div className='col-sm-8'>
<div className='panel panel-default'>
... |
app_learn/src/containers/Tab1/refreshablePlainListViewDemo.js | liuboshuo/react-native | /**
* Created by liushuo on 17/4/24.
*/
import React, { Component } from 'react';
import {
View,
Text,
Image,
StyleSheet,
TouchableOpacity
} from 'react-native';
import NavigationBar from '../../component/navBarCommon'
import SheetDetailContainer from './test'
import HttpTool from '../../common/ht... |
app/assets/scripts/components/radio.js | energy-data/market-opportunities | import React from 'react'
const Radio = React.createClass({
propTypes: {
layerId: React.PropTypes.string,
value: React.PropTypes.string,
selected: React.PropTypes.array,
updateLayerFilter: React.PropTypes.func
},
render: function () {
const { value, selected, layerId } = this.props
retu... |
client/views/room/contextualBar/KeyboardShortcuts/KeyboardShortcuts.js | VoiSmart/Rocket.Chat | import React from 'react';
import VerticalBar from '../../../../components/VerticalBar';
import { useTranslation } from '../../../../contexts/TranslationContext';
import ShortcutSection from './ShortcutSection';
const KeyboardShortcuts = ({ handleClose }) => {
const t = useTranslation();
return (
<>
<Vertical... |
stories/LINEButton.js | uraway/react-social-sharebuttons | import React from 'react';
import { text, select } from '@storybook/addon-knobs';
import { LINEButton } from '../dist/index.es.js'
export default {
title: 'LINEButton',
};
const imgOptions = {
'20x20': '20x20',
'30x30': '30x30',
'36x60': '36x60',
'40x40': '40x40',
'82x20': '82x20',
};
export const Basic ... |
src/components/main/cart/CartProduct.js | BayShubar/react_shop | import React from 'react'
import DeleteFromCart from '../buttons/DeleteFromCart'
class CartProduct extends React.Component{
render(){
const product = this.props.product;
return(
<div style={style.deteilHolder}>
<p style={style.cartText}>{ product.name }</p> <p style={style.cartText}>${ product.price }... |
src/InputBase.js | chilts/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import FormGroup from './FormGroup';
import Glyphicon from './Glyphicon';
class InputBase extends React.Component {
getInputDOMNode() {
return React.findDOMNode(this.refs.input);
}
getValue() {
if (this.props.type === 'static') {
retu... |
app/assets/scripts/components/loading-screen.js | AMT-Autoridade/amt | 'use strict';
import React from 'react';
import { startYear, endYear } from '../config';
export default function LoadingScreen () {
return (
<div id='intro-wrapper' className='loading-screen'>
<div id='intro' className='container-wrapper content-wrapper'>
<section>
<h2 id='intro-logo'><a... |
src/js/components/gsbpm/details/subs-by-phase.js | UNECE/Model-Explorer | import React from 'react'
import { Link } from 'react-router'
import { sparqlConnect} from 'sparql-connect'
import { linkGSBPMSub } from '../routes'
/**
* Builds the query that retrives all the subprocesses for a GSBPM phase
*/
//TODO we retrieve twice the same information, see GSBPM description query.
//There might... |
src/svg-icons/hardware/toys.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareToys = (props) => (
<SvgIcon {...props}>
<path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2... |
imports/ui/components/InitiatePayment/InitiatePayment.js | jamiebones/Journal_Publication | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import { Row, Col, FormGroup, ControlLabel, Panel , Form ,
FormControl, Button , Label , Well , Image , Table , Jumbotron} from 'react-bootstrap';
import { Bert } from 'meteor/themeteorchef:bert';
import validate from ... |
src/frontend/src/components/counters/InitCount.js | ziroby/dmassist | import React from 'react';
import './InitCount.css';
function InitCount(props) {
return (
<div className="InitCount">
init: {props.init}
</div>
);
}
export default InitCount;
|
app/js/Routes.js | theappbusiness/tab-hq | 'use strict';
import React from 'react';
import {Router, Route } from 'react-router';
import createHashHistory from 'history/lib/createHashHistory'
const history = createHashHistory({ queryKey: false })
import Api from './utils/Api';
import Login from './components/authentication/Login';
import App from './App';
Api... |
src/svg-icons/communication/vpn-key.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationVpnKey = (props) => (
<SvgIcon {...props}>
<path d="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 ... |
dev/js/index.js | celsom3/Cosecha-SMS | import 'babel-polyfill';
import React from 'react';
import ReactDOM from "react-dom";
import {Provider} from 'react-redux';
import {createStore, applyMiddleware} from 'redux';
import thunk from 'redux-thunk';
import promise from 'redux-promise';
import createLogger from 'redux-logger';
import allReducers from './reduce... |
packages/ringcentral-widgets-docs/src/app/pages/Styles/Dropdown/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import SettingsIcon from 'ringcentral-widgets/assets/images/Settings.svg';
import MeetingIcon from 'ringcentral-widgets/assets/images/Meeting.svg';
import ContactIcon from 'ringcentral-widgets/assets/images/Contact.svg'... |
src/containers/tool/MailBox/MailLists.js | mydearxym/mastani | import React from 'react'
import NotificationList from './NotificationList'
import SysNotificationList from './SysNotificationList'
import MentionList from './MentionList'
const MailLists = ({ activeRaw, pagedMentions }) => {
switch (activeRaw) {
case 'notifications':
return <NotificationList data={[]} />... |
app/javascript/mastodon/features/mutes/index.js | mimumemo/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 PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
src/components/views/delegateProfile/components/SocialBar.js | LiskHunt/LiskHunt | import React, { Component } from 'react';
import ContentLabel from './ContentLabel';
import twitter_available from '../img/twitter-available.png';
import twitter_unavailable from '../img/twitter-unavailable.png';
import reddit_available from '../img/reddit-available.png';
import reddit_unavailable from '../img/reddit... |
components/articleTemplate.js | halfatheist/halfatheist.github.io | import _ from 'lodash';
import React from 'react'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
import moment from 'moment';
import Header from './header';
import Footer from './footer';
import Social fro... |
src/media/js/addon/containers/submit.js | diox/marketplace-content-tools | import React from 'react';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import {messageChange, submit} from '../actions/submit';
import AddonSubnav from '../components/subnav';
import AddonUpload from '../components/upload';
import {Page} from '../../site/components/page';
export cl... |
examples/complete-todo-app/src/components/container/FilterLink.js | mgmarlow/Redux-Samples | import React from 'react';
import { connect } from 'react-redux';
import Link from '../presentation/Link';
const setVisibilityFilter = (filter) => {
return {
type: 'SET_VISIBILITY_FILTER',
filter
};
};
const mapStateToProps = (state, ownProps) => {
return {
active: ownProps.filter === state.visibil... |
src/containers/organizations/components/OrganizationDomainsSectionComponent.js | kryptnostic/gallery | import React from 'react';
import Immutable from 'immutable';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import StyledFlexContainerStacked from '../../../components/flex/StyledFlexContainerStacked';
im... |
stories/components/form/formSelect/index.js | sethbergman/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import FormSelect from 'shared/components/form/formSelect/formSelect';
storiesOf('shared/components/form/formSelect', module)
.add(
'Default', () => (
<FormSelect
prompt="Se... |
app/components/Home.js | tw00089923/kcr_bom | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './Home.css';
export default class Home extends Component {
render() {
return (
<div>
<div className={styles.leftcontainer}>
</div>
<div className={styles.container}>... |
src/components/ReplOutputTranspile.js | boneskull/Mancy | import React from 'react';
import {EOL} from 'os';
import ReplCommon from '../common/ReplCommon';
import ReplConstants from '../constants/ReplConstants';
import _ from 'lodash';
export default class ReplOutputTranspile extends React.Component {
constructor(props) {
super(props);
this.state = {
collapse... |
client/_App/App.js | AnnotatedJS/meteor-react-start-app | import React from 'react';
import ReactDOM from 'react-dom';
import { Routes } from './Routes.js';
import { AppHeader } from './AppHeader/AppHeader';
import { AppSideLeft } from './AppSideLeft/AppSideLeft';
import { AppSideRight } from './AppSideRight/AppSideRight';
import { AppFooter } from './AppFooter/AppFooter';
... |
app/components/Commissioned/photos/CommissionedPhotos.js | 1Green/projectAout | import React from 'react';
import Slider from 'react-slick';
import Transition from 'react-addons-css-transition-group';
import { withRouter } from 'react-router';
export const PhotoCarousel = withRouter(
React.createClass({
render() {
const { photos } = this.props;
var settings = {
... |
shared/index.js | sammusic27/react-redux | import React from 'react';
export default class AppView extends React.Component {
render() {
return (
<div id="app-view">
<h1>Todos</h1>
<hr />
{this.props.children}
</div>
);
}
}
|
src/svg-icons/action/open-in-new.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpenInNew = (props) => (
<SvgIcon {...props}>
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/>
</SvgIcon>
);... |
2-alpha/src/components/Header.js | saturninoharris/primer-design | import React from 'react'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import { updateCurrentStudentID, nextExercise } from '../actions'
import { getCurrentStudentID, getCurrentStudentProfile, getAvailableExercisesList } from '../selectors'
import { P } from './Text'
import { Hi... |
components/frontend/src/report/ReportTitle.js | ICTU/quality-time | import React from 'react';
import { Grid, Icon, Menu } from 'semantic-ui-react';
import { Tab } from '../semantic_ui_react_wrappers';
import { Comment } from '../fields/Comment';
import { StringInput } from '../fields/StringInput';
import { FocusableTab } from '../widgets/FocusableTab';
import { HeaderWithDetails } fro... |
src/components/homepage/buttons.js | LegalCheck/main | import React from 'react'
const HomepageButtons = ({dispatch}) => (
<div className="buttonContainer">
<button className="startButton" onClick={() => dispatch({type: 'START_QUIZ'})}>START!</button>
</div>
)
export default HomepageButtons
|
client/lib/components/shared/books/inputs/Title.js | noxee/reddit-fantasy | import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
export default class extends Component {
constructor(props, context) {
super(props, context);
this.handleChange = this.handleChange.bind(this);
this.getTitle = this.getTitle.bind(this);
this.isValid... |
13. ReactJS Fundamentals - Feb 2019/05. Higher Order Components/Warning/warning/src/components/BindingForm/BindingForm.js | zrusev/SoftwareUniversity2016 | import React, { Component } from 'react';
class BindingForm extends Component {
handleChange(e) {
console.log(`${e.target.name} => ${e.target.value}`);
this.setState = ({
[e.target.name]: e.target.value
})
}
render() {
return (
<div>
... |
src/svg-icons/content/report.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReport = (props) => (
<SvgIcon {...props}>
<path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3... |
src/svg-icons/action/perm-data-setting.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermDataSetting = (props) => (
<SvgIcon {...props}>
<path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.0... |
stories/layouts/page.stories.js | LN-Zap/zap-desktop | import React from 'react'
import { storiesOf } from '@storybook/react'
import { MainContent, Sidebar } from 'components/UI'
import { Window, Content } from '../helpers'
storiesOf('Layouts', module).addWithChapters('Page', {
subtitle: 'The outer most application wrapper.',
info: `Pages can have optional sidebars on... |
src/components/Select.js | Hylozoic/hylo-redux | import React from 'react'
import { KeyControlledItemList } from './KeyControlledList'
import cx from 'classnames'
const { array, bool, func, object, string } = React.PropTypes
export default class Select extends React.Component {
static propTypes = {
choices: array.isRequired,
onChange: func.isRequired,
... |
src/client/components/stage/timeline-helpers.js | fk1blow/repeak | import React from 'react';
require('./timeline.scss');
export default class TimelineHelpers extends React.Component {
render() {
return (
<div className="timeline-helpers">
<ol className="timeline-position cf">
{this.props.timelineList.map((item, idx) => {
return <li key={id... |
src/interface/layout/NavigationBar/LoadingBar/index.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import './LoadingBar.scss';
class LoadingBar extends React.PureComponent {
static propTypes = {
progress: PropTypes.number,
chunks: PropTypes.number,
};
static defaultProps = {
progress: 0,
chunks: 12,
};
constructor(props) {
... |
mdbreact/components/Jumbotron.js | ryanwashburne/react-skeleton | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class Jumbotron extends React.Component {
render() {
let closeButton;
const {
className,
children,
fluid,
...attributes } = this.props;
const classes = classNames(
'jumbotro... |
lib/ui/components/RequestLogs/RequestRow.js | 500tech/mimic | import React from 'react';
import styled from 'styled-components';
import find from 'lodash/find';
import isString from 'lodash/isString';
import isNull from 'lodash/isNull';
import isUndefined from 'lodash/isUndefined';
import get from 'lodash/get';
import API from 'api';
import UIState from 'ui/states/UIState';
impor... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-router-dom/4.1.1/es/Link.js | JamieMason/npm-cache-benchmark | 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 = {... |
test/regressions/tests/ListSubheader/InsetListSubheader.js | dsslimshaddy/material-ui | // @flow
import React from 'react';
import { ListSubheader } from 'material-ui/List';
export default function InsetListSubheader() {
return <ListSubheader inset>Title</ListSubheader>;
}
|
packages/material/src/components/Main.js | wq/wq.app | import React from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles(() => ({
main: {
flex: '1',
display: 'flex',
overflowY: 'hidden'
}
}));
export default function Main({ children }) {
const classes = us... |
app/addons/replication/components/remoteexample.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... |
packages/strapi-admin/files/public/app/components/PluginHeaderTitle/index.js | skelpook/strapi | /**
*
* PluginHeaderTitle
*
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import styles from './styles.scss';
class PluginHeaderTitle extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<div className={styles.pluginHeaderTitl... |
dva/wd/src/components/Form/ZCode.js | imuntil/React | import React from 'react';
import PropTypes from 'prop-types'
import { delay } from '../../services/tools-fun'
import styles from './ZCode.css';
class ZCode extends React.Component {
constructor(props) {
super(props)
this.state = {
limit: props.limit || 60
}
}
componentWillReceiveProps(nextProp... |
packages/rmw-shell/src/providers/Firebase/Lists/with.js | TarikHuber/react-most-wanted | import Context from './Context'
import React from 'react'
const withContainer = (Component) => {
const ChildComponent = (props) => {
return (
<Context.Consumer>
{(value) => {
return <Component {...value} {...props} />
}}
</Context.Consumer>
)
}
return ChildComponent... |
src/scripts/components/EditableText/RenameButton.js | AbrahamTewa/timeline | // ******************** NodeJS packages ********************
import React from 'react';
import PropTypes from 'prop-types';
// ******************** Component ********************
function RenameButton({onClick}) {
return (<a className="rename-button"
href="#"
onClick={onClick}>
... |
src/components/seo.js | nprail/blog | /**
* SEO component that queries for data with
* Gatsby's useStaticQuery React hook
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { useStaticQuery, graphql } from 'gatsby'
function SEO({ descripti... |
src/components/HouseholdNotes/index.js | cernanb/personal-chef-react-app | import React from 'react';
import { List } from 'semantic-ui-react';
import PropTypes from 'prop-types';
import HouseholdNoteItem from './HouseholdNoteItem';
const HouseholdNotes = ({ notes }) => (
<List data-testid="household-notes">
{notes.map(note => (
<HouseholdNoteItem key={note.id} note={note} />
... |
source/components/Loading.js | mikey1384/twin-kle | import PropTypes from 'prop-types';
import React from 'react';
import Spinner from 'components/Spinner';
import { css } from 'emotion';
Loading.propTypes = {
className: PropTypes.string,
innerStyle: PropTypes.object,
style: PropTypes.object,
text: PropTypes.string
};
export default function Loading({
classN... |
client/src/containers/Register.js | jeffersonsteelflex69/mytv | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Register from '../components/Register';
const mapDispatchToProps = (dispatch) => {
return {
registerUser: (userPool, email, password) => {
console.log(userPool, email, password);
userPool.signUp(email, password, [], null, ... |
example/deep-route-nesting/template.js | iansinnott/react-static-webpack-plugin | import React from 'react';
const Html = (props) => (
<html lang='en'>
<head>
<title>{props.title}</title>
</head>
<body>
<div id='root' dangerouslySetInnerHTML={{ __html: props.body }} />
<script src='/app.js' />
</body>
</html>
);
export default Html;
|
src/svg-icons/action/get-app.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGetApp = (props) => (
<SvgIcon {...props}>
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/>
</SvgIcon>
);
ActionGetApp = pure(ActionGetApp);
ActionGetApp.displayName = 'ActionGetApp';
ActionGetApp.... |
src/components/ResourceSelectControl/index.js | afoninsky/cerebral-bolierplate | import React from 'react'
import _ from 'lodash'
import { Decorator as cerebral } from 'cerebral-react'
import DropDownMenu from 'material-ui/lib/drop-down-menu'
// style="position: relative; display: inline-block; height: 48px; font-size: 15px; outline: none; width: 192px;"
@cerebral({
selected: ['selected'],
sph... |
src/index.js | RafaelDelboni/todo-react-redux | /* eslint-disable import/default */
import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { AppContainer } from 'react-hot-loader';
import Root from './containers/Root';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tel... |
src/views/chore/EditTask.js | anysome/objective | /**
* Created by Layman(http://github.com/anysome) on 16/3/19.
*/
import React from 'react';
import {StyleSheet, ScrollView, View, Text, TouchableOpacity, Alert} from 'react-native';
import Button from 'react-native-button';
import {analytics, styles, colors, airloy, api, L, toast, hang} from '../../app';
import uti... |
turismo_client/src/components/root/rootLogin.js | leiverandres/turismo-risaralda | import React, { Component } from 'react';
import { Button, Form, Message, Container, Header } from 'semantic-ui-react';
import { Redirect } from 'react-router-dom';
import Auth from '../../utils/auth';
export default class RootLogin extends Component {
constructor(props) {
super(props);
this.state = {
... |
src/app/routes/forms/jcrop/components/OptionToggleBtn.js | backpackcoder/world-in-flames | import React from 'react'
import classnames from 'classnames'
export default (props)=> {
return <div className="switch">
<label>
<input type="checkbox" checked={props.active}
onChange={ props.onToggle }/>
<span className="lever" />
{props.label}
... |
src/stories/loremipsumAsReact.js | zeroasterisk/react-iframe-resizer-super | import React from 'react';
export default (
<div style={{ color: 'green' }}>
<h1>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</h1>
<p>Vivamus consequat nisl diam. Vestibulum porttitor tempor neque vitae condimentum. Fusce lorem tellus, egestas vitae luctus bibendum, consectetur at sapien. Suspendisse urn... |
agents/stories/LogOut.js | root-systems/cobuy | import React from 'react'
import { storiesOf } from '@storybook/react'
import { LogOut } from 'dogstack-agents/components'
const actions = {
authentication: { logOut: () => {} }
}
storiesOf('agents.LogOut', module)
.add('basic', () => (
<LogOut actions={actions} />
))
|
node_modules/enzyme/src/Utils.js | vallihe/wizarddemo | /* eslint no-use-before-define:0 */
import isEqual from 'lodash/isEqual';
import React from 'react';
import is from 'object-is';
import uuid from 'uuid';
import entries from 'object.entries';
import assign from 'object.assign';
import functionName from 'function.prototype.name';
import {
isDOMComponent,
findDOMNode... |
app/javascript/mastodon/components/timeline_hint.js | masto-donte-com-br/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
const TimelineHint = ({ resource, url }) => (
<div className='timeline-hint'>
<strong><FormattedMessage id='timeline_hint.remote_resource_not_displayed' defaultMessage='{resource} from other servers are ... |
node_modules/_rc-select@6.9.3@rc-select/es/util.js | ligangwolai/blog | import React from 'react';
export function getValuePropValue(child) {
var props = child.props;
if ('value' in props) {
return props.value;
}
if (child.key) {
return child.key;
}
if (child.type && child.type.isSelectOptGroup && props.label) {
return props.label;
}
throw new Error('Need at le... |
src/components/Logo.js | pavelsuraba/react-devstack | import React from 'react';
import styled from 'styled-components';
const LogoWrapper = styled.div`
svg {
width: ${props => props.large ? '92' : '66'}px;
height: ${props => props.large ? '82' : '59'}px;
}
`;
export default (props) => (
<LogoWrapper {...props}>
<svg width="66" height... |
app/js/components/pages/user.js | raphaelameaume/react-node-starter | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import UserItem from '../modules/userItem';
import * as actions from '../../actions/user';
@connect(state => ({
user: state.user
}))
export default class User {
render... |
hub-ui/src/components/svg/SvgConnector.js | lchase/hub | import React, { Component } from 'react';
export default class SvgConnector extends Component {
constructor() {
super(...arguments);
this.state = {
endPointsEnabled: true
}
}
renderEndpoints() {
var results = [];
if (this.state.endPointsEnabled) {
results.push()
}
}
hand... |
src/components/leftMenu.js | gunterh/foreman | import React from 'react';
import {Link} from 'react-router';
const LeftMenu = (props) => {
const renderCategory = (category) => {
return (
<li key={category.id}>
<div>{category.name}</div>
<div>{category.categories.map(renderCategory) }</div>
</li>
... |
docs/src/Routes.js | JimiHFord/react-bootstrap | import React from 'react';
import Root from './Root';
import HomePage from './HomePage';
import IntroductionPage from './IntroductionPage';
import GettingStartedPage from './GettingStartedPage';
import ComponentsPage from './ComponentsPage';
import SupportPage from './SupportPage';
import NotFoundPage from './NotFound... |
docs/app/Examples/elements/Button/States/ButtonExampleActive.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleActive = () => (
<Button active>Active</Button>
)
export default ButtonExampleActive
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.