path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/image/flash-on.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlashOn = (props) => (
<SvgIcon {...props}>
<path d="M7 2v11h3v9l7-12h-4l4-8z"/>
</SvgIcon>
);
ImageFlashOn = pure(ImageFlashOn);
ImageFlashOn.displayName = 'ImageFlashOn';
ImageFlashOn.muiName = 'SvgIco... |
analysis/druidferal/src/modules/core/Snapshot.js | anom0ly/WoWAnalyzer | import { formatNumber, formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import { SpellLink } from 'interface';
import { SpellIcon } from 'interface';
import { TooltipElement } from 'interface';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import calculateEffectiveDamage ... |
assets/jqwidgets/demos/react/app/dragdrop/events/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDragDrop from '../../../jqwidgets-react/react_jqxdragdrop.js';
import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js';
class App extends React.Component {
componentDidMount() {
this.refs.DragDrop.on('dragStart', (event) => {... |
app/javascript/mastodon/features/report/components/status_check_box.js | 5thfloor/ichiji-social | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
import noop from 'lodash/noop';
import StatusContent from '../../../components/status_content';
import { MediaGallery, Video } from '../../ui/util/async-component... |
examples/todomvc/index.js | kennetpostigo/redux | import 'babel/polyfill';
import React from 'react';
import Root from './containers/Root';
import 'todomvc-app-css/index.css';
React.render(
<Root />,
document.getElementById('root')
);
|
docs/src/sections/ProgressBarSection.js | egauci/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function ProgressBarSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
2_route_redux_render/component/module/moduleContain.js | chkui/react-server-demo | import React from 'react'
import Loading from './loading'
import {connect} from '../../util/store'
import {moduleType} from './reducer'
const ModuleContain = connect((state, props)=>{
return{
type:state.moduleShow
}
})(props =>{
switch (props.type){
case moduleType.loading:
ret... |
app/javascript/mastodon/features/account_timeline/index.js | anon5r/mastonon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/timelines';
import ... |
src/components/ContactPage/ContactPage.js | ksevezich/DayOfBlueprint | import React from 'react'
import classes from './ContactPage.scss'
import AboutSection from 'components/AboutSection'
export const ContactPage = () => (
<div>
<div className={classes.about} >
<div className={'container text-center'}>
<h1 className={classes.header}> Contact Information...</h1>
... |
server/sonar-web/src/main/js/apps/web-api/components/WebApiApp.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/widgets/DataTable/RefContext.js | sussol/mobile | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
/**
* Context of values relating to focus and scrolling with refs.
*
* Provider is DataTable.js - see for details.
* Consumers are any editable cell and each row.
* Context shape:
* {
* getRefIndex,
* getCellRef,
* focusNextCell,
* adj... |
node_modules/react-router/es/Link.js | saniko/Universal-React | 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 = {... |
views/main.js | gvaldambrini/madam | import 'jquery';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap';
import 'bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css';
import 'bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css';
import 'bootstrap-datepicker';
import 'bootstrap-datepicker/dist/locales/bootstrap-datepicker.... |
local-cli/templates/HelloNavigation/components/KeyboardSpacer.js | Livyli/react-native | 'use strict';
/* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Platform,
View,
Keyboard,
LayoutAnimation,
UIManager,
} from 'react-native';
type Props = {
offset?: number,
}
type State = {
keyboardHeight: number
}
// Consider contributing this to the ... |
app-client/src/components/ContributorList.js | vikoperdomo/serverql | import React from 'react';
import { gql, graphql } from 'react-apollo';
import PropTypes from 'prop-types';
import Contributor from './Contributor';
const ContributorList = ({ data: { loading, error, getContributorFeed } }) => {
if (loading) {
return <p>Loading ...</p>;
}
if (error) {
return <p>{error.me... |
src/pages/about/index.js | jumpalottahigh/blog.georgi-yanev.com | import React from 'react'
import { Link } from 'gatsby'
import styled from 'styled-components'
import Layout from '../../components/structure/layout'
import AuthorMessage from '../../components/AuthorMessage'
const Section = styled.section``
const AboutPage = () => (
<Layout>
<Section>
<AuthorMessage type... |
examples/preact/src/components/Placeholder/Placeholder.js | styleguidist/react-styleguidist | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './Placeholder.css';
/**
* Image placeholders.
*/
export default class Placeholder extends Component {
static propTypes = {
type: PropTypes.oneOf([
'animal',
'bacon',
'beard',
'bear',
'cat',
'food',
'city',
... |
employees/client/components/employee_list.js | saitai0802/meteor-basic | import React, { Component } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import { Employees } from '../../imports/collections/employees';
import EmployeeDetail from './employee_detail';
const PER_PAGE = 20;
// funtional component
// const EmployeeList = (props) =>{}
// Class base compone... |
src/components/pages/CategoryPage.js | Iktwo/readable | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Posts from "../Posts";
import { withRouter } from 'react-router-dom';
import HeaderNav from "../HeaderNav";
import { connect } from 'react-redux';
const CategoryPageWithRouter = withRouter(props => <CategoryPage {...props}/>);
class ... |
src/components/lang-picker.js | FranckCo/Operation-Explorer | import React from 'react'
import { switchLang } from 'i18n'
export default function LangPicker({ location, lang }) {
/* HACK for bootstrap css rule .navbar-nav>li>a : we wrap non link elements
within a `a` tag with no `href` */
const fr = lang === 'fr' ?
'fr' :
<a href={location.pathname} onClick={switch... |
src/server/ssr.js | kriasoft/react-static-boilerplate | /**
* React Starter Kit for Firebase
* https://github.com/kriasoft/react-firebase-starter
* Copyright (c) 2015-present Kriasoft | MIT License
*/
import qs from 'query-string';
import serialize from 'serialize-javascript';
import React from 'react';
import ReactDOM from 'react-dom/server';
import { createMemoryHist... |
components/gpstracking/home.ios.js | akashnautiyal013/ImpactRun01 | 'use strict';
import React, { Component } from 'react';
var ReactNative = require('react-native');
var {
StyleSheet,
Text,
View,
Dimensions,
SwitchIOS,
TouchableHighlight,
AlertIOS,
AsyncStorage,
TouchableOpacity,
Image,
VibrationIOS,
DeviceEventEmitter
} = ReactNative;
import TimeFormatter fro... |
frontend/src/AddMovie/AddNewMovie/AddNewMovie.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import TextInput from 'Components/Form/TextInput';
import Icon from 'Components/Icon';
import Button from 'Components/Link/Button';
import Link from 'Components/Link/Link';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
i... |
demo/components/select/SelectOptions.js | ctco/rosemary-ui | import React from 'react';
import {Select} from '../../../src';
import OptionsTable from '../../helper/OptionsTable';
export default () => {
let propDescription = {
onChange: {
values: 'function',
description: 'Returning values for function'
},
search: {
... |
src/svg-icons/notification/wifi.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationWifi = (props) => (
<SvgIcon {...props}>
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9... |
src/routes/catalog/index.js | pustovitDmytro/maysternya | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
lts/deps/npm/docs/src/components/home/DarkBlock.js | enclose-io/compiler | import React from 'react'
import styled from 'styled-components'
import {Flex, Box} from 'rebass'
import {LinkButton} from '../Button'
const Container = styled(Flex)`
background-color: ${(props) => props.theme.colors.purpleBlack};
color: ${(props) => props.theme.colors.white};
`
const ContentWrapper = styled(Flex... |
app/components/LoadingIndicator/index.js | bluce1017/betterthangoodell | import React from 'react';
import styles from './styles.css';
function LoadingIndicator() {
return (
<div>
<div className={styles['sk-fading-circle']}>
<div className={styles.skCircle}></div>
<div className={styles['sk-circle2']}></div>
<div className={styles['sk-circle3']}></div>
... |
src/components/posts_index.js | Jcook894/Blog_App | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchPosts } from '../actions/index';
import { Link } from 'react-router';
class PostsIndex extends Component {
componentWillMount(){
this.props.fetchPosts();
console.log("Call an action creator!!!");
}
renderPosts... |
docs/src/components/index/Buttons.js | HsuTing/cat-components | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import radium from 'radium';
import Button from 'cat-components/lib/button';
import goToAnimation from 'cat-components/lib/goToAnimation';
@radium
@goToAnimation('#body')
export default class Buttons extends React.Component {
static propTy... |
web/__mocks__/tab-ads.js | gladly-team/tab | /* eslint-env jest */
import React from 'react'
const mockTabAds = jest.genMockFromModule('tab-ads')
mockTabAds.AdComponent = () => <div data-test-note="mock-ad-component" />
mockTabAds.getAvailableAdUnits = jest.fn(() => ({
leaderboard: {
// The long leaderboard ad.
adId: 'div-gpt-ad-1464385677836-0',
... |
examples/todomvc/containers/App.js | coderstudy/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App extends Component {
render() {
return (
<Provider redux={... |
assets/search-employee-view/components/TopActionComponent.js | janta-devs/nyumbani | import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Actions from '../../DataStore/Actions';
class TopActionComponent extends Component{
render() {
const floatStlye = {
float: 'right',
paddin... |
src/index.js | kettultim/cintacks | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import App from './components/App';
ReactDOM.render(
<BrowserRouter basename="/cintacks">
<App />
</BrowserRouter>,
document.getElementById('root'),
);
|
js/src/dapps/dappreg/ModalRegister/modalRegister.js | immartian/musicoin | // Copyright 2015, 2016 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 la... |
library_js/src/components/Admin/Site.js | HoldYourBreath/Library | import React from 'react';
import locationStore from '../../stores/LocationStore';
import Room from './Room';
import { observer } from 'mobx-react';
import { addRoom } from '../../lib/sites';
class Site extends React.Component {
constructor(props) {
super(props);
this.state = {
newRoomName: ''
}
... |
src/containers/AboutPageContainer.js | lamosty/lexi | import React, { Component } from 'react';
import AboutPage from '../components/AboutPage';
import { connect } from 'react-redux';
import { fetchPageIfNeeded } from '../actions';
import { bindActionCreators } from 'redux';
import { DEFAULT_PAGE } from '../reducers/pages';
const PAGE_NAME = 'about';
// Smart component
... |
src/js/pages/HomePage.js | pk8est/cdn-server-electron | import fs from 'fs';
import React, { Component } from 'react';
import electron, { ipcRenderer, remote} from 'electron';
import lineReader from 'line-reader';
import config, { APP_VERSION } from '../../server/config';
import update from '../backend/update';
const channel = "selected-save-file-path-directory";
const host... |
docs/app/Examples/collections/Table/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import States from './States'
import Types from './Types'
import Variations from './Variations'
const TableExamples = () => (
<div>
<Types />
<States />
<Variations />
</div>
)
export default TableExamples
|
data-browser-ui/public/app/components/tableComponents/td/relationTdComponent.js | CloudBoost/cloudboost | import React from 'react';
import ReactDOM from 'react-dom';
import Dialog from 'material-ui/Dialog';
//components
import SelectRelation from './relationComponents/selectRelation.js'
import ViewRelation from './relationComponents/viewRelation.js'
class RelationTd extends React.Component {
constructor(){
super()
... |
lib/ui/states/connector.js | 500tech/mimic | import React from 'react';
export const connectToState = (state, ComposedComponent) => {
class Wrapper extends React.Component {
componentDidMount() {
this._mounted = true;
state.subscribe(this.rerender);
}
componentWillUnmount() {
this._mounted = false;
state.unsubscribe(this.r... |
app/src/common/ListEmptyComponentWithButton.js | skunkmb/Ablo | import React, { Component } from 'react';
import { View, ViewPropTypes } from 'react-native';
import PropTypes from 'prop-types';
import ListEmptyComponent from '../common/ListEmptyComponent.js';
import Button from '../common/Button.js';
import { darkTheme } from '../themes.js';
let styles = darkTheme.styleSheet;
exp... |
node_modules/react-icons/md/vpn-key.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdVpnKey = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m11.6 23.4c1.8 0 3.4-1.6 3.4-3.4s-1.6-3.4-3.4-3.4-3.2 1.6-3.2 3.4 1.4 3.4 3.2 3.4z m9.5-6.8h17.3v6.8h-3.4v6.6h-6.6v-6.6h-7.3c-1.3 3.9-5.1 6.6-9.5 6.6-5.5 0-10-4.5-10-1... |
src/components/activity-indicator.js | raulmatei/raulmatei.com | import React from 'react'
import {getRandomInt} from '../utils'
const ActivityIndicatorWrapper = ({children}) => (
<div className='post post-loading'>
{children}
</div>
)
const ActivityIndicatorLeft = () => (
<div className='post-left gradient'> </div>
)
const ActivityIndicatorRight = ({children}) => ... |
app/components/App.js | Heatequation/react-router-redux-todo | import React from 'react';
import { NavLink, Route, Switch, Redirect } from 'react-router-dom';
import About from './About';
import TodoScreen from './TodoScreen';
import styles from '../styles/app.scss';
import '../styles/global.scss';
const App = () =>
<div className={styles.div}>
<h1>ToDo App</h1>
... |
src/components/Nav.js | wu0792/gallery-by-react | import React from 'react'
//导入Dot组件,每个导航小点
import Dot from './Dot'
class Nav extends React.Component{
constructor(props){
super(props);
this.state = {};
this.state.activeIndex = props.activeIndex || 0;
this.onClick = this.onClick.bind(this);
}
render(){
let navList = [];
for (var ind... |
packages/material-ui-docs/src/NoSSR/NoSSR.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
const DefaultOnSSR = () => null;
/**
* Only render the component on the client.
* It can be useful in a variety of situations:
* - Reduce the rendering time on the server.
* - Under too heavy server load, you can apply service degradation.
* - Improv... |
webpack/__mocks__/react-bootstrap-tooltip-button.js | jlsherrill/katello | import React from 'react';
export const TooltipButton = () => () => (<button>Test Button</button>);
export default TooltipButton;
|
src/components/Courses.js | kdjohnson/courses-ada | import React from 'react'
import Card from '@material-ui/core/Card'
import CardActions from '@material-ui/core/CardActions'
import CardContent from '@material-ui/core/CardContent'
import CircularProgress from '@material-ui/core/CircularProgress'
import CourseDetails from './CourseDetails'
import CourseHeader from './C... |
app/components/magnetopause/MagnetopauseMapX.js | sheldhur/Vector | // @flow
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import LineChart from '../chart/LineChart';
import { NoDataAlert } from '../widgets/ChartAlert';
import MagnetopauseMapMenu from './MagnetopauseMapMenu';
import { magnetopausePoint } from '../../lib/geopack';
import { numberIsBetween... |
javascript/components/delete-shipment-modal.js | kdoran/moriana-react | import React from 'react'
import ClickOutHandler from 'react-onclickout'
export default class DeleteShipmentModal extends React.Component {
render () {
const {onClose, onConfirm, shipmentName} = this.props
return (
<ClickOutHandler onClickOut={onClose}>
<div className='modal delete-modal'>
... |
definitions/npm/react-navigation-tabs_v2.x.x/test_react-navigation-tabs.js | flowtype/flow-typed | // @flow
import type {
NavigationRoute,
NavigationTabProp,
} from 'react-navigation-tabs';
import {
createBottomTabNavigator,
createMaterialTopTabNavigator,
} from 'react-navigation-tabs';
import React from 'react';
/**
* Screens
*/
const FunctionalScreenComponent = (
{ navigation }: {| navigation: Navi... |
src/app/core/atoms/icon/icons/folder.js | blowsys/reservo | import React from 'react'; const Folder = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><g transform="translate(5.000000, 6.000000)"><g><path d="M6,0 L1.5,0 C0.675,0 0.0075,0.675 0.0075,1.5 L0,10.5 C0,11.325 0.675,12 1.5,12 L13.5,12 C14.325,12 15,11.325 15,10.5 L15,3 C15,2.175 14.325,1.5 13.5,1.5 L7.5,1.5 L6,0 Z... |
app/components/Store/Brand/BrandHero/index.js | VineRelay/VineRelayStore | import React from 'react';
import styled from 'styled-components';
import { createFragmentContainer, graphql } from 'react-relay';
import PropTypes from 'prop-types';
const TitleWrapper = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
`;
const SmallDivider = s... |
src/js/Main/components/LatestNews.js | fr3nchN/proactive | import React from 'react'
import { Link } from 'react-router-dom'
import links from "./../links"
import ContentLatestNews from "./../../../content/homepage/ContentLatestNews"
const News = ({ item }) => {
return (
<div className="col-sm-4 text-center">
<h3 className="h4 text-orange">{item.title}... |
src/svg-icons/action/fingerprint.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFingerprint = (props) => (
<SvgIcon {...props}>
<path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12... |
reactviews/src/App.js | yvesago/dioc | import React from 'react';
import { fetchUtils, Admin, Resource } from 'react-admin';
//import './App.css';
import AlertIcon from '@material-ui/icons/Assessment';
import SurveyIcon from '@material-ui/icons/WifiTethering';
import AgentIcon from '@material-ui/icons/Wifi';
import ExtractIcon from '@material-ui/icons/Tran... |
examples/fixed-size.js | mhink/react-ionize | import React from 'react';
import Ionize from 'react-ionize';
import path from 'path';
import 'index.html';
Ionize.start(
<window show
file={path.resolve(__dirname, "index.html")}
size={[800, 800]}
/>
);
|
src/website/app/Page.js | mineral-ui/mineral-ui | /* @flow */
import React, { Component } from 'react';
import styled from '@emotion/styled';
import Media from 'react-media';
import Helmet from 'react-helmet';
import noScroll from 'no-scroll';
import lighten from 'polished/lib/color/lighten';
import darken from 'polished/lib/color/darken';
import rgba from 'polished/l... |
src/docs/examples/ProgressBar/Example100Percent20Height.js | abhiisheek/ps-react-abhiisheek | import React from 'react';
import ProgressBar from 'ps-react-abhiisheek/ProgressBar';
/** 100% Progress with Height 20 */
const Example100Percent20Height = () => {
return <ProgressBar percent={100} width={150} height={20} />;
};
export default Example100Percent20Height;
|
internals/templates/containers/HomePage/index.js | Dmitry-N-Medvedev/motor-collection | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
JotunheimenPlaces/node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js | designrad/Jotunheimen-tracking | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
app/containers/LydaDataVPage/DataSourcePage/CalculateField.js | lizhaogai/lyda-dada-v | import React from 'react';
import {Dialog, FlatButton, TextField} from 'material-ui';
export default class CalculateField extends React.Component {
state = {};
componentWillMount() {
this.setState({
open: this.props.open,
field: this.props.field,
resource: this.props.resource,
layer: ... |
src/svg-icons/content/link.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentLink = (props) => (
<SvgIcon {...props}>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.... |
app/containers/HomePage.js | robogroves/Ashley | import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Home from '../components/Home';
import * as GRActions from '../actions/GRActions';
function mapStateToProps(state) {
return {
GenR: state.GenReceivers
};
}
function mapDispatchToProps(dispatch) {
return bindActionCrea... |
app/components/SnippetView/SnippetView.js | dht/lpm | import React from 'react';
import './SnippetView.scss';
import Snippet from '../../../src/Snippet';
import {listenToState_adhock, stopToListen} from '../utils/api';
export default class SnippetView extends React.Component {
constructor(props) {
super(props);
this.state = {
items: [1, ... |
packages/carbon-react/src/components/Layer/Layer.stories.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import './Layer-story.scss';
import React from 'react';
import { Layer } from '../Layer';
import mdx from './Layer.mdx';
export default {
... |
app/components/Feed/index.js | prudhvisays/newsb | import React from 'react';
import Score from '../Score';
export default class Feed extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
}
render() {
const { tasksExpand, orderStats } = this.props;
return (
<div className="ink-flex task-feed-boxShadow" style={{ fontSize: ... |
src/class/popup/App.js | MrMamen/traktflix | import 'material-design-lite';
import { Route, Switch } from "react-router-dom";
import PropTypes from 'prop-types';
import React from 'react';
import BrowserStorage from '../BrowserStorage';
import ErrorBoundary from '../ErrorBoundary';
import Oauth from '../Oauth';
import Rollbar from '../Rollbar';
import About from ... |
docs/src/components/AppFrame.js | sghall/resonance | import React from 'react'
import PropTypes from 'prop-types'
import AppBar from '@material-ui/core/AppBar'
import CssBaseline from '@material-ui/core/CssBaseline'
import Divider from '@material-ui/core/Divider'
import Drawer from '@material-ui/core/Drawer'
import Hidden from '@material-ui/core/Hidden'
import IconButton... |
components/UserGroups/Decks.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import DecksGrid from '../User/UserProfile/DecksGrid';
import { navigateAction } from 'fluxible-router';
import { FormattedMessage, defineMessages } from 'react-intl';
import { Button, Icon } from 'semantic-ui-react';
import fetchGroupDecks from '../../acti... |
components/Pager.js | turntwogg/final-round | import React from 'react';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { MdNavigateBefore, MdNavigateNext } from 'react-icons/md';
const Pager = ({ data = {}, offset: offsetProp, pageLimit = 10 }) => {
const router = useRouter();
const { links = {} } = data;
const offset = parse... |
frontend/src/components/LoadingIndicator/LoadingIndicator.js | blalasaadri/TechTalent | import React from 'react';
import {
Alert
} from 'react-bootstrap';
// import './LoadingIndicator.scss';
export const LoadingIndicator = function (props) {
if (props.error) {
return (
<Alert bsStyle='warning'>
<strong>Error:</strong> {props.error}
</Alert>
);
} else if (!props.isFetch... |
src/components/svg/Menu.js | pixel-glyph/better-reads | import React from 'react';
import PropTypes from 'prop-types';
class Menu extends React.Component {
render() {
const { isActive, index } = this.props.showBookMenu;
const showClass = isActive && index === this.props.index ? " focused" : "";
return (
<svg className={`btn-icon icon-menu${showClass}`}... |
app/components/IconSystem/Icons/Invader.js | cdiezmoran/AlphaStage-2.0 | import React from 'react';
import propTypes from '../iconPropTypes';
const Invader = ({ fill, styles }) => (
<svg
version="1.1"
id="Capa_1"
xmlns="http://www.w3.org/2000/svg"
x="0px"
y="0px"
viewBox="0 0 512 512"
style={{ ...styles, enableBackground: 'new 0 0 512 512' }}
>
<g>
... |
docs/app/Examples/modules/Dropdown/Usage/index.js | shengnian/shengnian-ui-react | import React from 'react'
import { Message } from 'shengnian-ui-react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ShorthandExample from 'docs/app/Components/ComponentDoc/ShorthandExample'
const Dr... |
src/shared/element-react/dist/npm/es6/src/message/Message.js | thundernet8/Elune-WWW | import React from 'react';
import ReactDOM from 'react-dom';
import Toast from './Toast';
export default function Message() {
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var type = arguments[1];
var div = document.createElement('div');
document.body.appendChild(div);
... |
web/hello-react/src/modules/Accounting.js | itohiro73/playground | import React from 'react'
export default React.createClass({
render() {
return <div>Charts</div>
}
}) |
d3/src/components/Nav.js | charlenezell/pwa_01 | import React, { Component } from 'react';
// import PropTypes from 'prop-types';
class Nav extends Component {
render() {
return (<div>
<span>logo</span>
<div onClick={this.props.onMsgClick}>消息{this.props.userInfo.messageNumber}</div>
<a href={this.props.userInfo.userId}>我的页面</a>
</... |
src/components/why/Why.js | refinedjs/refinedjs-blog | import React, { Component } from 'react';
import PageHeader from '../pageHeader/PageHeader';
import './why.scss';
export default class Why extends Component {
constructor(props) {
super(props);
this.state = {
bodyClasses: 'col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1'
};
}
render() {
... |
packages/reactor-kitchensink/src/examples/Charts/Line/Realtime/Realtime.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import addNewData from './addNewData';
const interval = 1000;
export default class Realtime extends Component {
constructor() {
super();
this.startTask();
... |
src/buttons/Link.js | emfmesquita/beyondhelp | import React, { Component } from 'react';
import LinkService from "../services/LinkService";
class Link extends Component {
render() {
return <a href="javascript:void(0)" onMouseDown={LinkService.handler(this.props.address)}>{this.props.children}</a>;
}
}
export default Link; |
fields/types/date/DateColumn.js | everisARQ/keystone | import React from 'react';
import moment from 'moment';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var DateColumn = React.createClass({
displayName: 'DateColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obj... |
src/svg-icons/image/lens.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLens = (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 2z"/>
</SvgIcon>
);
ImageLens = pure(ImageLens);
ImageLens.displayName = 'ImageLens';
Ima... |
src/index.js | vivijind/gallary-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
js/components/resume.js | orionwei/mygit | /**
* Created by orionwei on 2016/11/20.
*/
import React from 'react';
import Relay from 'react-relay';
export default class Resume extends React.Component{
join(){
return Array.prototype.join.call(arguments,",")
}
render(){
return (
<div className={this.props.className+" mar... |
src/js/components/common/emailLink.js | jrnail23/sitterswap-ui | import React from 'react'
export default class extends React.Component {
static propTypes = {
displayText: React.PropTypes.string,
emailAddress: React.PropTypes.string.isRequired
}
render () {
return (<a href={'mailto:' + this.props.emailAddress}>{this.props.displayText || this.props.emailAddress}</... |
app/components/LoadingButton/index.js | acebusters/ab-web | import React from 'react';
import PropTypes from 'prop-types';
import LoadingIndicator from '../LoadingIndicator';
function LoadingButton(props) {
const className = `${props.className} btn btn--loading`;
return (
<a href="" className={className} disabled="true">
<LoadingIndicator />
</a>
);
}
Load... |
react/features/reactions/components/web/ReactionEmoji.js | jitsi/jitsi-meet | // @flow
import React, { Component } from 'react';
import { connect } from '../../../base/redux';
import { removeReaction } from '../../actions.any';
import { REACTIONS } from '../../constants';
type Props = {
/**
* Reaction to be displayed.
*/
reaction: string,
/**
* Id of the reaction.... |
node_modules/react-bootstrap/es/Button.js | jkahrs595/website | import _Object$values from 'babel-runtime/core-js/object/values';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-... |
app/javascript/mastodon/features/compose/components/compose_form.js | primenumber/mastodon | import React from 'react';
import CharacterCounter from './character_counter';
import Button from '../../../components/button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ReplyIndicatorContainer from '../containers/reply_indicator_container';
import Autosugges... |
src/components/slide9.js | lucky3mvp/react-demo | import React from 'react'
import Header from './slide-header'
import Footer from './slide-footer'
import Ref from './slide9-ref'
export default React.createClass({
getInitialState () {
return {
first: false,
last: false,
index: 9
}
},
render () {
return (
<div classNa... |
app/containers/NotFoundPage/index.js | Rohitbels/KolheshwariIndustries | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import messages from './messages';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
export default function NotFound() {
return (
<article>
... |
src/index.js | ubclaunchpad/sift-web | import App from './App'
import LandingPage from './views/LandingPage'
import { Provider } from 'react-redux'
import React from 'react'
import ReactDOM from 'react-dom'
import { Router, Route, Redirect, browserHistory } from 'react-router'
import { syncHistoryWithStore, routerReducer } from 'react-router-redux'
import ... |
node_modules/react-native/local-cli/templates/HelloNavigation/components/KeyboardSpacer.js | jasonlarue/react-native-flashcards | 'use strict';
/* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Platform,
View,
Keyboard,
LayoutAnimation,
UIManager,
} from 'react-native';
type Props = {
offset?: number,
}
type State = {
keyboardHeight: number
}
// Consider contributing this to the ... |
app/app.js | CodingHard-Inc/honest-weather | import React from 'react'
import ReactDOM from 'react-dom'
import City from './components/city'
import Temperature from './components/temperature'
import Description from './components/description'
import handleDesc from './handledesc'
import style from './style.less'
import logo from './static/codinghard-logo.png'
im... |
src/components/InfinityMenu/classificationLink.js | City-of-Helsinki/helerm-ui | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
const stopPropagation = ev => ev.stopPropagation();
const ClassificationLink = ({ id }) => (
<Link to={`/view-classification/${id}`} onClick={stopPropagation} title='Avaa luokituksen tiedot'>
<i className='fa... |
node_modules/react-router/es/withRouter.js | SuperUncleCat/ServerMonitoring | 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 = {... |
src/views/icons/ServiceIcon.js | physiii/open-automation | import React from 'react';
import PropTypes from 'prop-types';
import CameraIcon from '../icons/CameraIcon.js';
import GameControllerIcon from '../icons/GameControllerIcon.js';
export const ServiceIcon = (props) => {
const Icon = ServiceIcon.iconComponents[props.service.type];
return Icon
? <Icon size={props.size... |
src/containers/Subtyping.js | superphy/reactapp | import React, { Component } from 'react';
// react-md
import {
FileInput,
Checkbox,
TextField,
Button,
Switch,
Subheader,
Divider,
CircularProgress,
Collapse,
} from 'react-md';
// redux
import { connect } from 'react-redux'
import { addJob } from '../actions'
import { subtypingDescription } from '../... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.