path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
.storybook/Animate_.stories.js | constelation/monorepo | import React from 'react'
import raf from 'raf'
import { storiesOf, action } from '@kadira/storybook'
import View from '../packages/View'
import Text from '../packages/Text'
import Style_ from '../packages/Style_'
import Animate_ from '../packages/Animate_'
import Event_ from '../packages/Event_'
const stories = stori... |
src/PageItem.js | cgvarela/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.Pr... |
src/UserManagement/index.js | bolshchikov-public/wazzapp | import React from 'react';
import PropTypes from 'prop-types';
import './UserManagement.css';
import ProfileImage from '../ProfileImage';
import Logout from '../Logout';
const UserManagement = ({ onLogout }, { currentUser }) => {
return (
<div className="user-management-container">
<ProfileImage user={curr... |
packages/react-vis/src/sunburst/index.js | uber/react-vis | // Copyright (c) 2016 - 2017 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... |
project/react/src/components_common/ScrollToTop/index.js | FFF-team/generator-earth | import { withRouter } from 'react-router-dom'
import React from 'react';
//需要保留滚动位置的页面
const LISTS = ['/site'];
class ScrollToTop extends React.PureComponent {
componentDidUpdate(prevProps) {
//当前路由path
let newPathName = this.props.location.pathname;
//长列表页面 保留滚动位置
if (LISTS.inde... |
app/MnmSections.js | alvaromb/mnm | import React from 'react'
import { StyleSheet } from 'react-native'
import { NavigatorWrapper } from 'react-native-navigator-wrapper'
import mnmRouteMapper, { AboutUsButton } from './MnmRouteMapper'
import MnmNewsList from './MnmNewsList'
export function MnmSectionPortada({openMenu}) {
return (
<NavigatorWrapp... |
client/components/flash/FlashMessage.js | andela-fmustapha/document-management | import React from 'react';
import classnames from 'classnames';
/**
*
*
* @class FlashMessage
* @extends {React.Component}
*/
class FlashMessage extends React.Component {
/**
* Creates an instance of FlashMessage.
* @param {any} props
*
* @memberof FlashMessage
*/
constructor(props) {
super... |
spec/support/setup.mocha.js | FlammableHairnet/HireOrbit | import jsdom from 'jsdom';
import jquery from 'jquery';
import TestUtils from 'react-addons-test-utils';
import ReactDOM from 'react-dom';
import chai, { expect } from 'chai';
import React from 'react';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import reducers from '../../client/reduc... |
client/main.js | ZeHiro/kresus | import React from 'react';
import ReactDOM from 'react-dom';
import {
BrowserRouter,
Route,
Switch,
Link,
Redirect,
useRouteMatch,
useParams,
useLocation
} from 'react-router-dom';
import { connect, Provider } from 'react-redux';
import throttle from 'lodash.throttle';
import { ToastCont... |
app/components/OfferHelp.js | blooprint/output | import React from 'react'
import styles from './OfferHelp.css'
export default function OfferHelp(){
return(
<h1 className={styles.offerHelp}>PRESS: <span className={styles.q}>?</span></h1>
)
}
|
analysis/warriorarms/src/modules/core/Dots/RendUptime.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import { SpellLink } from 'interface';
import StatisticListBoxItem from 'parser/ui/StatisticListBoxItem';
imp... |
src/components/Sidebar/TimeFilters/index.js | opentraffic/analyst-ui | import React from 'react'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import { Segment, Radio, Divider } from 'semantic-ui-react'
import dc from 'dc'
import crossfilter from 'crossfilter2'
import { createChart } from './chart'
import { setRefSpeedComparisonEnabled, setRefSpeedEnabled } from... |
common/constants.js | blockstack/blockstack-site | import React from 'react'
import {
NavIconTechWhitepapers,
NavIconTechOverview,
NavIconTechGithub,
NavIconTechDocs,
NavIconCommunityDiscord,
NavIconCommunityForum,
NavIconCommunityEvents,
NavIconAboutTokenOffering,
NavIconAboutRoadmap,
NavIconAboutCompany,
NavIconAboutCareers,
NavIconCommunityBl... |
app/jsx/external_apps/components/AddExternalToolButton.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... |
app/packs/src/components/common/SvgWithPopover.js | ComPlat/chemotion_ELN | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { OverlayTrigger, Popover } from 'react-bootstrap';
import SVG from 'react-inlinesvg';
export default class SvgWithPopover extends Component {
constructor(props) {
super(props);
this.renderPreview = this.renderPreview.bind(t... |
classic/src/scenes/wbfa/generated/FARSquare.pro.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faSquare } from '@fortawesome/pro-regular-svg-icons/faSquare'
export default class FARSquare extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faSquare} />)
}
}
|
node_modules/enzyme/src/Utils.js | pavlosvos/krifominima | /* 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... |
src/components/theme-giraffe/footer.js | MoveOnOrg/mop-frontend | import React from 'react'
import { Link } from 'react-router'
import PropTypes from 'prop-types'
import {
Nav,
Logo,
Text as FooterText,
Social,
PACFinePrint,
MoFooter
} from 'GiraffeUI/footer'
import CaretRightSvg from 'GiraffeUI/svgs/caret-right.svg'
import DocumentSvg from 'GiraffeUI/svgs/document-add.... |
renderer/components/Icon/Zap.js | LN-Zap/zap-desktop | import React from 'react'
const SvgZap = props => (
<svg height="1em" viewBox="0 0 12 24" width="1em" {...props}>
<path
d="M6.548 9.639h3.71l-6.974 10.81 1.753-7.363h-3.98l7.201-10.63-1.71 7.183z"
fill="none"
stroke="currentColor"
/>
</svg>
)
export default SvgZap
|
src/index.js | Ianpig/mobile-select | import React from 'react';
import ReactDOM from 'react-dom';
import Application from './container/Application.jsx';
// import App from './components/app';
ReactDOM.render(
<div>
<Application />
</div>
,
document.getElementById('root')
);
|
src/index.js | reactivepod/fido-web | import 'normalize.css/normalize.css';
import 'ladda/dist/ladda.min.css';
import 'react-star-rating/dist/css/react-star-rating.min.css';
import './fido.css';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import App from './containers/App';
import * as storage fro... |
js/jqwidgets/demos/react/app/grid/grouping/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
import JqxInput from '../../../jqwidgets-react/react_jqxinput.js';
class App extends React.Component {
componentDidMou... |
monkey/monkey_island/cc/ui/src/components/ui-components/inline-selection/BackButton.js | guardicore/monkey | import {Button, Col, Row} from 'react-bootstrap';
import React from 'react';
import PropTypes from 'prop-types';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
import {faCaretLeft} from '@fortawesome/free-solid-svg-icons/faCaretLeft';
export default function backButton(props) {
return (
<Row>
... |
src/components/Header/Bar/index.js | andresgutgon/test-newr | import React, { Component } from 'react';
import styles from './styles/index.css';
class Bar extends Component {
render() {
const { editing, onToggle } = this.props;
const btnClass = editing ? styles.buttonActive : styles.button;
return (
<div className={styles.bar}>
<button className={bt... |
react-flux-mui/js/material-ui/src/svg-icons/image/exposure-plus-1.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposurePlus1 = (props) => (
<SvgIcon {...props}>
<path d="M10 7H8v4H4v2h4v4h2v-4h4v-2h-4V7zm10 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z"/>
</SvgIcon>
);
ImageExposurePlus1 = pure(ImageExposurePlus1);
ImageEx... |
test/helpers/shallowRenderHelper.js | romaintailhurat/devdas | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
actor-apps/app-web/src/app/components/Login.react.js | daodaoliang/actor-platform | import _ from 'lodash';
import React from 'react';
import classNames from 'classnames';
import { Styles, RaisedButton, TextField } from 'material-ui';
import { AuthSteps } from 'constants/ActorAppConstants';
import Banner from 'components/common/Banner.react';
import LoginActionCreators from 'actions/LoginActionCre... |
wp-content/plugins/liveblog/src/react/Editor/blocks/CodeBlock.js | MinnPost/minnpost-wordpress | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Button from '../Button';
import HTMLInput from '../../components/HTMLInput';
class CodeBlock extends Component {
constructor(props) {
super(props);
const { code, title } = props.getMetadata();
this.placeholder = 'Insert... |
client/components/UserAutoComplete/UserAutoComplete.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import UserAutoComplete from '.';
export default {
title: 'components/UserAutoComplete',
component: UserAutoComplete,
};
export const Example = () => <UserAutoComplete />;
|
client/components/Sale.js | JessicaNeary/store-front | import React from 'react'
import ProductGallery from './ProductGallery'
import { products } from '../../products.js'
const Sale = props => {
const content = products.filter(function (product) {
return product.onSale
})
return (
<div className='Sale'>
<h1>Sale</h1>
<ProductGallery products={... |
src/components/PlayerPage/PlayerPage.js | RetroGameNight/rgn-ui | /*
* Retro Game Night
* Copyright (c) 2015 Sasha Fahrenkopf, Cameron White
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react' // eslint-disable-line no-unused-vars
import flux from '../../flux/flux'
import... |
src/components/CarList.js | brianyamasaki/rideshare | import _ from 'lodash';
import React, { Component } from 'react';
import { ListView } from 'react-native';
import { connect } from 'react-redux';
import { carsFetch } from '../actions/CarActions';
import CarListItem from './CarListItem';
import { FullScreen } from './common';
class CarList extends Component {
compon... |
app/src/routes/Home/components/HomeView.js | Graren/Web2_You2 | import React from 'react'
import './HomeView.scss'
import { Row, Col, Jumbotron } from 'react-bootstrap'
export const HomeView = (props) => {
if (props.user) {
return (
<div className="container">
<Jumbotron>
<h1>Introducing You2</h1>
</Jumbotron>
</div>
... |
src/svg-icons/action/rowing.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRowing = (props) => (
<SvgIcon {...props}>
<path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-... |
example/src/screens/transitions/sharedElementTransitions/Masonry/Masonry.js | inalist/react-native-navigation | import React from 'react';
import {StyleSheet, View, Text, PixelRatio, FlatList, Image, TouchableHighlight} from 'react-native';
import {Navigation, SharedElementTransition} from 'react-native-navigation';
import images from './images';
const ROW_HEIGHT = 650;
const COLS = 2;
class Masonry extends React.Component {
... |
src/components/icons/PlaybookIcon.js | austinknight/ui-components | import React from 'react';
const PlaybookIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 100 100">
{props.title && <title>{props.title}</title>}
<path d="M44.92,53.67a2,2,0,0,0,2,2.77,4,4,0,0,0,3.65-2.77,2,2,0,0,0-2-2.77A4,4,0,0,0,44.92,53.67Z"/>
<path ... |
src/containers/Kids/Kids.js | polinazolotukhina/redux-movieDB | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators} from 'redux';
import * as actions from '../../actions/moviesActions';
import List from '../../components/List';
class Kids extends React.Component {
constructor(props){
super(prop... |
src/index.js | janryWang/immutability-skinable-component | import utils from './utils';
import React from 'react';
const {IBDecorator,extend,getProto,types,toArray,flatten,intersection,hasOwnProp,union,deepExtend} = utils;
const {isFunc,isStr,isObj} = types;
const EVENT_CONSTRUCTOR = 'EVENT_CONSTRUCTOR';
const haveSkin = function (val) { return this.indexOf(val) !== -1};
c... |
src/application/components/JsonDoc/ModelDescription.js | movio/apidoc-ui | // @flow
import React from 'react';
import H2 from 'components/H2';
import Markdown from 'components/Markdown';
import type { Service } from 'generated/version/ServiceType';
import * as utils from 'utils';
import styles from 'application/components/JsonDoc/json-doc.css';
const ModelDescription = ({
baseModel,
s... |
stories/containers/settingspage.stories.js | LN-Zap/zap-desktop | import React from 'react'
import { storiesOf } from '@storybook/react'
import ChangePasswordDialog from 'components/Settings/Security/ChangePasswordDialog'
import PasswordPromptDialog from 'components/Settings/Security/PasswordPromptDialog'
import SetPasswordDialog from 'components/Settings/Security/SetPasswordDialog'
... |
src/common/GankTabNav.js | panyz/GankAndPanyz | import React from 'react';
import {TabNavigator} from 'react-navigation';
import AndroidTabPage from '../pages/AndroidTabPage';
import iOSTabPage from '../pages/iOSTabPage';
import FrontEndTabPage from '../pages/FrontEndTabPage';
const GankTab = TabNavigator({
Android: {screen:AndroidTabPage,navigationOptions:{
... |
src/components/character.js | wantplus/pili-web | import React, { Component } from 'react';
import { render } from 'react-dom';
// import Feature from './feature';
import { PAGE_FEATURE_LIST } from '../constants/pageData';
class Character extends Component {
render() {
let pageFeatureArray = PAGE_FEATURE_LIST;
let pageFeatureList = pageFeatureAr... |
src/parser/paladin/protection/CHANGELOG.js | FaideWW/WoWAnalyzer | import React from 'react';
import { emallson } from 'CONTRIBUTORS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('11 November 2018'),
contributors: [emallson],
changes: <>Added <SpellLink id={SPELLS.LIGHT_OF_THE_PROTECTOR.id} /> / <SpellL... |
WeatherData.js | tugberka/tubi-weather | import React, { Component } from 'react';
import { AppRegistry, Text, View, ListView, Button } from 'react-native';
import ApiKeys from './ApiKeys'
function WeatherData() {
this.wList = [];
this.sendWeatherRequest = function(lat, long) {
var apiKey = ApiKeys.WeatherComKey();
var urlRoot = 'http://api.wun... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | danhunsaker/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
stories/reactNotifications/threeTypes.js | EcutDavid/my-react-storybook | import React from 'react';
import ReactNotifications from '@davidguan/react-notifications';
const MOCK_NOTIFICATIONS = [{
type: 'info',
message: 'Hello'
}, {
type: 'warning',
message: 'Hi'
}, {
type: 'error',
message: 'Oooops'
}];
export default class Component extends React.Component {
constructor() {
... |
client/src/containers/AdminRoute.js | ziel5122/autograde | import React from 'react';
import { connect } from 'react-redux';
import { Redirect, Route, withRouter } from 'react-router-dom';
const AuthRoute = ({ Component, admin, ...rest }) => (
<Route
{...rest}
render={props => (
admin ? <Component {...props} /> : <Redirect to="/login" />
)}
/>
);
const ... |
src/contentscript/tinymce/tinymcebhdialog.js | emfmesquita/beyondhelp | import C from "../../Constants";
import ConfigStorageService from "../../services/storage/ConfigStorageService";
import MessageService from "../../services/MessageService";
import Opt from "../../Options";
import React from 'react';
import ReactDOM from 'react-dom';
import TinyMCEApp from "./TinyMCEApp";
// disables s... |
src/svg-icons/device/battery-50.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery50 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z"/><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ... |
desktop-application/node_modules/material-ui/src/styles/theme-decorator.js | santosh-surya/pcb-cnc-machine | import React from 'react';
export default (customTheme) => {
return function(Component) {
return React.createClass({
childContextTypes: {
muiTheme: React.PropTypes.object,
},
getChildContext() {
return {
muiTheme: customTheme,
};
},
render() {
... |
pages/blog/test-article-one.js | Princeton-SSI/organization-website | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Test Article 1</h1>
<p>Co... |
site/demos/producthunt/src/components/Header.js | appbaseio/reactivesearch | import React from 'react';
import { DataSearch } from '@appbaseio/reactivesearch';
import Navbar, { title, navbarContent } from '../styles/Navbar';
import Flex, { FlexChild } from '../styles/Flex';
import { dataSearchContainer } from '../styles/Container';
const Header = () => (
<Navbar>
<Flex alignCenter responsi... |
app/libs/S5RefreshableListView.js | JohnKim/react-native-boilerplate | /**
* @providesModule S5RefreshableListView
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableHighlight,
Platform
} from 'react-native';
import GiftedListView from 'react-native-gifted-listview';
import GiftedSpinner from 'react-native-gifted-spinner';
export default clas... |
src/components/Header/Header.js | maximhoffman/beginnertuts | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import withStyles from 'isomorp... |
client/src/blocks/Button.js | mbb70/hera2 | import React from 'react';
import { cx } from 'emotion';
import Button from 'reactstrap/lib/Button';
import styles from '../styles';
const className = styles.css({
borderRadius: 0,
'.btn-neutral': {
backgroundColor: 'rgb(192, 192, 192)',
},
});
export default props => (
<Button {...props} className={cx(cl... |
HTML/前端/my-react-app-spring-boot-yao/src/index.js | xiaoxiaoyao/PythonApplication1 | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
function Square(props) {
return (
<button className="square" onClick={props.onClick}>
{props.value}
</button>
);
}
class Board extends React.Component {
renderSquare(i) {
return (
<Square
value={thi... |
src/routes/Devices/components/nodes/Merchant.js | KozlovDmitriy/Pos.Hierarchy.Net | import React from 'react'
import PropTypes from 'prop-types'
import { Group } from '@vx/group'
import Plus from './Plus'
import NodeLabel from './NodeLabel'
import CollapsedNode from './CollapsedNode'
class Merchant extends CollapsedNode {
static propTypes = {
node: PropTypes.object.isRequired,
errors: PropT... |
src/app/js/icons/TriangleBottom.js | AppSaloon/chrome-app_socket.io-tester | import React from 'react'
import TemplateIcon from './TemplateIcon'
const TriangleBottom = ({size, color, customStyle}) =>
<TemplateIcon
size={size}
color={color}
customStyle={customStyle}
viewBox="7 7 12 12"
>
<path
d="M12.646,14.646L7.707,9.707C7.318,9.318,... |
src/svg-icons/maps/near-me.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsNearMe = (props) => (
<SvgIcon {...props}>
<path d="M21 3L3 10.53v.98l6.84 2.65L12.48 21h.98L21 3z"/>
</SvgIcon>
);
MapsNearMe = pure(MapsNearMe);
MapsNearMe.displayName = 'MapsNearMe';
MapsNearMe.muiName... |
src/images/ZendrumLogo.svg.js | dkadrios/zendrum-stompblock-client | import React from 'react';
export default () => (
<svg viewBox="0 0 191.000000 400.000000">
<g transform="translate(0.000000,400.000000) scale(0.100000,-0.100000)"
fill="#fff" stroke="none">
<path d="M930 3979 c-106 -32 -162 -176 -107 -274 12 -21 42 -53 65 -69 36
-26 53 -31 100 -31 183 1 262 246 113 ... |
examples/flux-utils-todomvc/js/app.js | james4388/flux | /**
* Copyright (c) 2014, 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.
*
* @flow
*/
'use s... |
packages/arwes/src/Button/sandbox.js | romelperez/ui | import React from 'react';
import Button from './index';
export default () => (
<div style={{ padding: '20px' }}>
<Button animate disabled>
Non-punk
</Button>{' '}
<Button animate disabled layer="success">
Steampunk
</Button>{' '}
<Button animate>Cyberpunk</Button>{' '}
<Button an... |
client/desktop/app/components/teacher/classes/Classes.js | shanemcgraw/thumbroll | import React from 'react'
import ClassData from './ClassData/ClassData'
import {Route, RouteHandler, Link, Navigation} from 'react-router'
import api from '../../../utils/api';
import auth from '../../../utils/auth';
import {Button, Card, Row, Col} from 'react-materialize';
class Classes extends React.Component {
c... |
views/prompt.js | taraszerebecki/black-screen | import _ from 'lodash';
import React from 'react';
import Autocomplete from './autocomplete';
import DecorationToggle from './decoration_toggle';
// TODO: Make sure we only update the view when the model changes.
export default React.createClass({
getInitialState() {
return {
suggestions: [],
... |
src/components/DimensionValueSelect.js | schneckentempo/ClicksAndImpressions | import React from 'react'
import Select from 'react-select'
import styles from './DimensionValueSelect.css'
export default function DimensionValueSelect({ value, options, onChange }) {
return (
<div className={styles.selectDiv}>
<Select
name="selectField"
value={value}
options={opti... |
src/svg-icons/social/notifications-off.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotificationsOff = (props) => (
<SvgIcon {...props}>
<path d="M20 18.69L7.84 6.14 5.27 3.49 4 4.76l2.8 2.8v.01c-.52.99-.8 2.16-.8 3.42v5l-2 2v1h13.73l2 2L21 19.72l-1-1.03zM12 22c1.11 0 2-.89 2-2h-4c0 1.11... |
containers/page_paper.js | MonkingStand/MS-blog-site-v3.0 | import React from 'react';
import $ from 'jquery';
import CommonHeader from '../components/common_header';
import CommonNotice from '../components/common_notice';
import CommonTags from '../components/common_tags';
import CommonLatest from '../components/common_latest';
import CommonTimeline from ... |
src/containers/student/info.js | wunderg/PTC | import React from 'react';
import { Input } from 'react-materialize';
export default (props) => {
const onDateClick = () => {
$('.datepicker').pickadate({
selectMonths: true,
closeOnSelect: true,
selectYears: 15
});
$( ".datepicker" ).change(function(e) {
const student = props.da... |
node_modules/react-router/es/MemoryRouter.js | ge6285790/test | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
src/components/Header/Header.js | txwkx/book-room | import React from 'react';
import { Link, NavLink } from 'react-router-dom';
import styles from './header.scss';
const Header = ({ openBookForm }) => (
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class='book-btn'>
<button class='btn btn-danger' onClick={e => o... |
app/components/IndividualComicQuantityFilter.js | pdelac01/ComicShopper | /**
* Created by CharlieShi on 3/4/17.
*/
import React from 'react';
const FilterInput = (props) => {
const handleChange = props.handleChange;
//const handleChangeSelector = props.handleChangeSelector;
const inputValue = props.inputValue;
//const selectorValue = props.selectorValue;
return (
<inpu... |
src/components/login_page.js | satyamjha22/loginapp_react | import React from 'react';
const LoginPage = (props) => {
return (
<div className="container">
<form>
<label><h1>Member Login</h1></label>
<label><b>Username</b></label>
<input
type= "email"
value={props.login.username}
placeholder="AlexParrish@xyz.com"
onChange={(e) => ... |
Client/src/components/toolbar.js | MarcosBessega/vootodo | import React from 'react';
import IconMenu from 'material-ui/IconMenu';
import IconButton from 'material-ui/IconButton';
import FontIcon from 'material-ui/FontIcon';
import NavigationExpandMoreIcon from 'material-ui/svg-icons/navigation/expand-more';
import MenuItem from 'material-ui/MenuItem';
import DropDownMenu from... |
src/docs/ComponentPage.js | Mikhail2k15/ps-react-michael | 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>
... |
fixtures/kitchensink/template/src/features/syntax/AsyncAwait.js | d3ce1t/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
async function load() {
return [
{ id: 1, name: '1'... |
src/parser/hunter/shared/modules/talents/Trailblazer.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import { formatPercentage } from 'common/format';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
/**
* Trailblazer increases your movement speed by 30% whenever you have not attacke... |
app/javascript/mastodon/features/status/components/card.js | RobertRence/Mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import punycode from 'punycode';
import classnames from 'classnames';
const IDNA_PREFIX = 'xn--';
const decodeIDNA = domain => {
return domain
.split('.')
.map(part => part.indexOf(IDNA... |
src/app/modules/Friends/components/tables/PendingFriendRequestsTable.js | toxzilla/app | import React from 'react';
import {TOX_FRIEND_REQUEST_TYPE_INCOMING} from './../../../../../shared/tox';
import {Address} from './../../../../common/User';
import {
Button,
Icon,
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn,
Text,
Toolbar
} from './../../../../common/Us... |
src/components/DocsLink.js | mrholek/CoreUI-React | import PropTypes from 'prop-types'
import React from 'react'
import { CLink } from '@coreui/react'
const DocsLink = (props) => {
const { href, name, text, ...rest } = props
const _href = name ? `https://coreui.io/react/docs/components/${name}` : href
return (
<div className="float-end">
<CLink
... |
src/routes/content/index.js | GLExperiments/GLExperiments | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Content from './Content'... |
src/containers/App.js | hedgerh/thinkful-reflux-async | import React from 'react';
export default React.createClass({
render() {
return (
<div>
<p>Hello, world!</p>
</div>
);
}
});
|
src/muiThemeable.js | alitaheri/material-ui | import React from 'react';
import DefaultRawTheme from './styles/raw-themes/light-raw-theme';
import ThemeManager from './styles/theme-manager';
function getDisplayName(WrappedComponent) {
return WrappedComponent.displayName || WrappedComponent.name || 'Component';
}
export default function muiThemeable(WrappedComp... |
src/svg-icons/maps/local-laundry-service.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalLaundryService = (props) => (
<SvgIcon {...props}>
<path d="M9.17 16.83c1.56 1.56 4.1 1.56 5.66 0 1.56-1.56 1.56-4.1 0-5.66l-5.66 5.66zM18 2.01L6 2c-1.11 0-2 .89-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 ... |
Skins/VetoccitanT3/ReactSrc/Redux/equipeSlice.js | MAN-IN-WAN/Kob-Eye | import { createSlice } from '@reduxjs/toolkit';
import React from 'react';
import ReactDOM from 'react-dom';
export const equipeSlice = createSlice({
name: 'equipe',
initialState: {
fullData:{}
},
reducers: {
load: (state,action) => {
state.fullData[action.payload.type] = ac... |
src/templates/table.js | govau/service-manual | import PropTypes from 'prop-types';
import React from 'react';
const Table = ( page ) => {
const thead = <tr colSpan="2"><th scope="col"><h4>{ page.table[0][0] }</h4></th></tr>;
const rows = page.table.map((items, index) => {
if ( index > 0 ) {
const values = items.map(( item, index ) => {
return (
... |
packages/react-scripts/node_modules/case-sensitive-paths-webpack-plugin/demo/src/AppRoot.component.js | sThig/jabbascrypt | import React, { Component } from 'react';
export default class AppRoot extends Component {
// we can't use `connect` in this component, so must do naiively:
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
<div>
<h1>This is just an empty demo</h1>
... |
node_modules/react-bootstrap/es/Modal.js | caughtclean/but-thats-wrong-blog | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/js/components/deployments/deployment-report/deploymentstatus.js | michaelatmender/gui | import React from 'react';
import { TwoColumnData } from '../../common/configurationobject';
import { defaultColumnDataProps } from '../report';
import { deploymentDisplayStates, pauseMap } from '../../../constants/deploymentConstants';
import { groupDeploymentStats } from '../../../helpers';
export const DeploymentSt... |
src/components/social-cards.js | getinsomnia/insomnia.rest | import React from 'react';
import Helmet from 'react-helmet';
const SocialCards = ({ isBanner, title, summary, key }) =>
isBanner ? (
<Helmet key={key}>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@GetInsomnia" />
<meta name="twitter:title" cont... |
src/svg-icons/editor/insert-comment.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertComment = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
EditorInsertCom... |
client/Menu/Menu.js | GalkinDmitriy/evalotta | import React from 'react';
import classNames from 'classnames';
import './Menu.styl';
function Menu(props) {
const { items } = props;
const baseCls = 'menu';
return (
<div className={ baseCls }>
{ items.map( item => {
const itemCls = classNames(
`${baseCls}__item`,
{[`${baseCls}__item--active`]:... |
src/common/constants/components/Appbar.js | vassar-cogscilab/turing-machine | import React from 'react';
import {
ANIMATION_MAX_SPEED_FACTOR,
ANIMATION_MIN_SPEED_FACTOR,
DESKTOP_BREAK_POINT,
IPAD_BREAK_POINT,
BIG_PHONE_BREAK_POINT
} from '../GeneralAppSettings';
/*Drawer*/
import AddTest from 'material-ui/svg-icons/content/add-circle';
import RunAllTests from 'material-ui/svg-icons/av/play... |
src/modules/Home/components/SpeakeasyForm.js | hdngr/mantenuto | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { reduxForm, Field, propTypes } from 'redux-form';
import memoize from 'lru-memoize';
import { createValidator, required} from 'utils/validation';
const speakeasyValidation = memoize(10)(createValidator({
code: required,
}));
ex... |
page/ProductSearch.js | jimju/BNDemo | 'use strict'
import React, { Component } from 'react';
import {
Text,StyleSheet,View,ScrollView
} from 'react-native';
import TitleProductSearch from '../component/TitleProductSearch';
import ProductList from '../component/ProductList';
class ProductSearch extends React.Component {
render(){
return(
<Vie... |
react/PlusIcon/PlusIcon.js | seek-oss/seek-style-guide | import svgMarkup from './PlusIcon.svg';
import React from 'react';
import Icon from '../private/Icon/Icon';
export default function PlusIcon(props) {
return <Icon markup={svgMarkup} {...props} />;
}
PlusIcon.displayName = 'PlusIcon';
|
examples/dynamically-sized-source/target.js | gabrielbull/react-tether2 | import React, { Component } from 'react';
const style = {
background: '#fb8c00',
padding: '20px',
width: '100px',
height: '100px',
textAlign: 'center',
lineHeight: '100px',
color: 'white',
fontFamily: 'arial'
};
class Target extends Component {
render() {
return (
<div style={style}>
... |
src/index.js | SRosenshein/react-auth-client | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import reduxThunk from 'redux-thunk';
import { AUTH_USER } from './actions/types';
import ... |
app/boards/porsche-cup-gt3/components/pit-speed.js | fermio/motorsport-display | import React from 'react';
const PitSpeed = React.createClass({
propTypes: {
speed: React.PropTypes.number
},
shouldComponentUpdate: function(nextProps, nextState) {
return this.normalizeSpeed(this.props.speed) !== this.normalizeSpeed(nextProps.speed);
},
normalizeSpeed: function(... |
src/components/detailPage/detailPage.stories.spec.js | teamleadercrm/teamleader-ui | import React from 'react';
import DetailPage from './DetailPage';
import { TextBody } from '../typography';
import StatusLabel from '../statusLabel';
import Button from '../button';
export default {
component: DetailPage,
title: 'DetailPage',
};
export const Main = () => (
<DetailPage>
<DetailPage.Header
... |
src/Parser/ElementalShaman/Modules/Features/ProcTracker.js | Yuyz0112/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import CoreCooldownTracker, { BUILT_IN_SUMMARY_TYPES } from 'Parser/Core/Modules/CooldownTracker';
import Tab from 'Main/Tab';
import CooldownOverview from 'Main/CooldownOverview';
class ProcTracker extends CoreCooldownTracker {
static cooldownSpells ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.