path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/src/components/Home.js | serban-petrescu/candidate-management | import React from 'react';
import CandidatesTableRedux from '../containers/CandidatesTable';
import TopNavbar from './TopNavbar';
/**
* Main component which is built from the body component(Candidate table) and the top
* navigation bar,
* @returns {XML}
*/
const Home = () => {
return (
<div>
... |
app/addons/replication/components/target.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... |
app/components/Work/RolesSection/index.js | yasserhennawi/yasserhennawi | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'utils/styled-components';
import WorkSection from '../WorkSection';
import Check from '../../icons/Check';
const Role = styled.h5`
display: flex;
margin-bottom: 5px;
`;
const CheckIconWrapper = styled.div`
display: flex;
justify... |
src/js/components/meter/Bar.js | karatechops/grommet-charts | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React from 'react';
import {baseUnit, baseDimension} from 'grommet/components/meter/utils';
import Graphic from './Graphic';
const BAR_LENGTH = baseDimension;
const BAR_THICKNESS = baseUnit;
const MID_BAR_THICKNESS = BAR_THICKNESS / 2;
expor... |
zwdemoRect/src/App.js | send2ocean/nodelearn | import React, { Component } from 'react';
//import logo from './logo.svg';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import './App.css';
import { Router, Route, Link, browserHistory,IndexRoute } from 'react-router'
import thunkMiddleware from 'redux-thunk'
import createLogger from 'redux-logg... |
packages/material-ui-icons/src/Schedule.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z" /></g>
, 'Sch... |
jenkins-design-language/src/js/components/material-ui/svg-icons/content/gesture.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentGesture = (props) => (
<SvgIcon {...props}>
<path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-... |
src/svg-icons/notification/wc.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationWc = (props) => (
<SvgIcon {...props}>
<path d="M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6... |
src/components/1-ScopedSelectors/ScopedSelectorsDemo.js | AgtLucas/css-modules-playground | import ScopedSelectors from './ScopedSelectors';
import React from 'react';
import js from '!!raw!./ScopedSelectors.js';
import css from '!!raw!./ScopedSelectors.css';
import Snippet from 'shared/Snippet/Snippet';
export default class ScopedSelectorsDemo extends React.Component {
render() {
const files = [
... |
front_end/front_end_app/src/client/todos/index.react.js | carlodicelico/horizon | import Buttons from './buttons.react';
import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import NewTodo from './newtodo.react';
import React from 'react';
import ToCheck from './tocheck.react';
import Todos from './todos.react';
export default class Index extends ... |
src/interface/icons/Dropdown.js | ronaldpereira/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/search/?q=dropdown&i=1871189
// Dropdown by zalhan from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 9" className="icon" {...other}>
<path d="M14.0059397,2.26485497e-14 C15.1072288,2.26485497e-... |
packages/icons/src/md/communication/ScreenShare.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdScreenShare(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M40 36h8v4H0v-4h8c-2.22 0-4-1.8-4-4V12c0-2.22 1.78-4 4-4h32c2.2 0 4 1.78 4 4l-.02 20c0 2.2-1.78 4-3.98 4zm-14-7.06l8-7.48L26 14v4.26c-7.78 1.08-1... |
stack/src/components/AppRoutes.js | isabellewei/deephealth | 'use strict';
import React from 'react';
import { Router, browserHistory } from 'react-router';
import routes from '../routes';
export default class AppRoutes extends React.Component {
render() {
return (
<Router history={browserHistory} routes={routes} onUpdate={() => window.scrollTo(0, 0)}/>
);
}
... |
webapp/app/components/SaveHistory/Table/ModalDeletionScheduledSave/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Modal to delete a scheduled save in save history page
//
import React from 'react';
import { Modal, ButtonToolbar, Glyphicon } from 'react-bootstrap';
import LinkContainerButton from 'components/Button';
import styles from 'components/SaveHistory/Table/ModalDeletionScheduledSave/styles.css';
/* eslint-disable r... |
ui/src/containers/identity/login/index.js | MonarchApp/monarch | import './login.scss';
import * as recompose from 'recompose';
import IdentityActions from './actions';
import Login from 'components/identity/login';
import React from 'react';
import RoutePaths from 'constants/route_paths.js';
import validate from './validate';
import { Redirect } from 'react-router-dom';
import { co... |
src/svg-icons/social/domain.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialDomain = (props) => (
<SvgIcon {...props}>
<path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v... |
step-redux-youtube-player/src/containers/video_list_item.js | pinoytech/react-playground | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { selectVideo } from '../actions/index';
class VideoListItem extends Component {
render() {
const video = this.props.video;
console.log("thumbnails", video.snippet.thumbnails);... |
client/src/templates/Challenges/components/Output.js | jonathanihm/freeCodeCamp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import sanitizeHtml from 'sanitize-html';
import './output.css';
const propTypes = {
defaultOutput: PropTypes.string,
output: PropTypes.string
};
class Output extends Component {
render() {
const { output, defaultOutput } = this.... |
node_modules/react-select/examples/src/app.js | Alex-Shilman/Drupal8Node | /* eslint react/prop-types: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import Select from 'react-select';
import Contributors from './components/Contributors';
import CustomComponents from './components/CustomComponents';
import CustomRender from './components/CustomRender';
import Multiselect ... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | zillachan/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ... |
components/Event/index.js | shinosakarb/tebukuro-client | // @flow
import React from 'react'
import MaterialIcon from '@material/react-material-icon'
import type { EventProps } from '../../types/Event'
const Event = (props: {event: EventProps}) => (
<div>
<h1 className="mdc-typography--headline3 event-name" >{props.event.name}</h1>
<ul className="mdc-list">
<... |
service.react/src/js/main.js | nganhtuan63/Go-Microservices-Example | import React from 'react';
import History from 'react-router/lib/BrowserHistory';
import Router from './components/Router';
import { Provider } from 'react-redux';
import createStore from './lib/createStore';
import request from 'superagent';
import qs from 'qs';
import createAPI from './lib/createAPI';
import { apiSer... |
src/containers/Home/Home.js | basselAlshK/react-redux-universal-hot-example | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from client and server
const logoImage = ... |
app/components/Tasks/index.js | prudhvisays/season | import React from 'react';
import Feed from '../Feed';
import TripCard from '../TripCard';
import Search from '../Search';
import { Sparklines, SparklinesLine, SparklinesSpots } from 'react-sparklines';
import classNames from 'classnames';
function boxMullerRandom() {
let phase = false,
x1, x2, w, z;
... |
stories/CardsList/CardsList.js | medialab/hyphe-browser | import './CardsList.styl'
import React from 'react'
const CardsList = ({ children, displayLoader }) => {
return (
<div className="cards-list">
<ul className="list-container">
{children}
</ul>
{
displayLoader &&
<div className="cards-list-loader">
Loading (1200 ... |
src/lib/teams/leave-link.js | getinsomnia/website | import React from 'react';
import PropTypes from 'prop-types';
import * as session from '../session';
import Link from '../../components/link';
class LeaveTeamLink extends React.Component {
state = {
loading: false,
};
async _handleClick(e) {
e.preventDefault();
const {teamName, teamId, onLeave} = ... |
src/client.js | yogakurniawan/cerebral-app | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
app/components/button/index.js | izonder/connect-4 | import Style from './style.pcss';
import React from 'react';
export default class Button extends React.Component {
render() {
let {clickAction} = this.props;
return(
<button className="button" onClick={clickAction}>New game</button>
);
}
} |
src/components/Main.js | jinxiaodan/credit-center-webpack | require('normalize.css/normalize.css');
require('styles/App.css');
import React from 'react';
let yeomanImage = require('../images/yeoman.png');
class AppComponent extends React.Component {
render() {
return (
<div className="index">
<img src={yeomanImage} alt="Yeoman Generator" />
<div... |
frontend/Editor/TextElements/Spoiler/Spoiler.js | fdemian/Morpheus | import React from 'react';
import cssModules from 'react-css-modules';
import Styles from './Spoiler.scss';
class Spoiler extends React.Component {
constructor(props) {
super(props);
this.state = {textStatus: "Concealed"};
}
changeStatus()
{
const {textStatus} = this.state;
co... |
components/QrCodeScanner.js | concensus/react-native-ios-concensus | import React, { Component } from 'react';
import {
Alert,
Linking,
Dimensions,
LayoutAnimation,
Text,
View,
StatusBar,
StyleSheet,
TouchableOpacity,
} from 'react-native';
import { BarCodeScanner, Permissions } from 'expo';
import { debounce } from 'lodash';
export default class App extends Component... |
src/containers/Asians/Published/Dashboard/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import withStyles from 'material-ui/styles/withStyles'
import ResponsivePageHeader from 'components/ResponsivePageHeader'
import PreliminaryRounds from './PreliminaryRounds'
import BreakRounds from './BreakRounds'
const styles = theme => ({
root: {
... |
client/reactComponents/PlayerTank.js | elliotaplant/tanks | import React from 'react';
import HeadsUpDisplay from './HeadsUpDisplay';
import PlayerDriver from './PlayerDriver';
import TankBody from './TankBody';
import Turret from './Turret';
import Barrel from './Barrel';
import { rand } from '../../math/vectorHelpers';
import { TANK_RADIUS } from '../../simulation/constants';... |
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/Tab.js | jmanday/Master | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import PropTypes from 'pr... |
src/ZulipMobile.js | saketkumar95/zulip-mobile | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import crashlytics from 'react-native-fabric-crashlytics';
import '../vendor/intl/intl';
import store, { restore } from './store';
import LoadingScreen from './start/LoadingScreen';
import Providers from './Providers';
require('./i18n/lo... |
src/images/SvgImage.js | schana/recommendation-tool | import React from 'react';
class SvgImage extends React.Component {
render() {
let {svgInternals, ...props} = this.props;
return (
<svg {...props} dangerouslySetInnerHTML={{__html: svgInternals}} />
);
}
}
export default SvgImage;
|
public/js/components/Home.react.js | MadushikaPerera/Coupley | import React from 'react';
import Login from './login/Login.react';
import Register from './register/Register.react';
const homeStyle = {
backgroundImage: 'url(/img/home.jpg)',
backgroundSize: '1400',
backgroundRepeat: 'no-repeat'
}
const Home = React.createClass({
render () {
return (
<div className="... |
node_modules/native-base/Components/Widgets/H2.js | tedsf/tiptap | /* @flow */
'use strict';
import React from 'react';
import Text from './Text';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import computeProps from '../../Utils/computeProps';
export default class H2NB extends NativeBaseComponent {
prepareRootProps() {
var type = {
color... |
app/javascript/mastodon/features/notifications/components/column_settings.js | sylph-sin-tyaku/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ClearColumnButton from './clear_column_button';
import SettingToggle from './setting_toggle';
export default class ColumnSettings extends Reac... |
lib/components/pages/dashboard.js | senecajs/react-example | import React from 'react'
class Dashboard extends React.Component {
render () {
return (
<div className='dashboard'>
<div className='box-header'>
<div className='box-header-icon'>
</div>
<div className='box-header-titlebar'>
<span>Welcome: Dashboard</span>
... |
e2e/VideoTapeTester/index.ios.js | 16ms/videotape | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
NativeModules,
Button,
View,
Text,
} from 'react-native';
import { StackNavigator } from 'react-navigation';
const { VideoTape } = NativeModul... |
src/components/SurahInfo/index.js | hasibsahibzada/quran.com-frontend | import React from 'react';
import * as customPropTypes from 'customPropTypes';
import styled from 'styled-components';
import { lighten } from 'polished';
import Loader from 'quran-components/lib/Loader';
import PropTypes from 'prop-types';
const style = require('./style.scss');
const List = styled.dl`
padding-top:... |
app/containers/Root.js | matthieuh/desktop-assistant | // @flow
import React from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import Routes from '../routes';
type RootType = {
store: {},
history: {}
};
export default function Root({ store, history }: RootType) {
return (
<Provider store={store}>
<... |
src/InputIcon/IconInput.js | ctco/rosemary-ui | import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import Input from '../Input/Input';
import * as sizes from '../util/constant/sizes';
const LEFT = 'left';
const RIGHT = 'right';
const PROPERTY_TYPES = {
iconClassName: PropTypes.string.isRequired,
onChange: PropTypes.... |
app/scripts/Mobilization/components/MobilizationList/MobilizationListItemHeader/MobilizationListItemHeaderCreatedAt.js | igr-santos/bonde-client | import React from 'react'
const MobilizationListItemHeaderCreatedAt = () => (
<div className="list-item-header-created-at px3 col col-2">
Criada em
</div>
)
export default MobilizationListItemHeaderCreatedAt
|
js/components/LoginOverlay.js | httpdeveloper/AdsManager | /**
* Copyright (c) 2017 Dinesh Maharjan <httpdeveloper@gmail.com>
*
* 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... |
definitions/npm/redux-form_v5.x.x/flow_v0.25.x-v0.52.x/test_redux-form_v5.x.x.js | flowtype/flow-typed | /** @flow */
import { reduxForm, reducer } from 'redux-form';
import type { InputProps } from 'redux-form';
import React from 'react';
const Input = (props: InputProps) => {
(props.onChange: (v: string) => mixed);
(props.onChange: (v: SyntheticEvent) => mixed);
(props.onUpdate: (v: string) => mixed);
(p... |
src/HOCs/ShowLoaderHOC.js | VGraupera/1on1tracker | import React from 'react';
import './ShowLoaderHOC.css';
/**
* @description Loader show/hide HOC.
* @param {String} propKey
* @param {*} expectedValue
* @return {XML} Loader | WrappedComponent
*/
const ShowLoaderHOC = (propKey, expectedValue) => (WrappedComponent) => {
/**
* @function Loader
* @param prop... |
src/components/Sidebar/LatestPost/index.js | calpa/blog | import React from 'react';
import { Link } from 'gatsby';
import PropTypes from 'prop-types';
import './index.scss';
const LatestPost = ({ posts }) => (
<div className="latest-post">
<p>最新文章</p>
{posts.map(({ node }) => (
<Link
to={node.frontmatter.url || node.frontmatter.slug || node.fields.... |
client/src/App.js | dmod/fdcallstats.com | import React, { Component } from 'react';
import { HashRouter, Route, Switch } from 'react-router-dom';
import './App.scss';
// Containers
import { DefaultLayout } from './containers';
// Pages
import { Login } from './views/';
// import { renderRoutes } from 'react-router-config';
class App extends Component {
re... |
src/components/cell/cells_tips.js | woshisbb43/coinMessageWechat | import React from 'react';
import classNames from '../../utils/classnames';
/**
* Footer Information for `Cells`
*
*/
const CellsTips = (props) => {
const { className, children, ...others } = props;
const cls = classNames({
'weui-cells__tips': true,
[className]: className
});
return... |
src/CategoryButton.js | gauriramesh/budgetbuddy | import React, { Component } from 'react';
function CategoryButton(props) {
return (
<div>
<button className="CategoryButton" onClick={props.handleClick} style={{backgroundColor: props.color}}>
{props.name}
</button>
</div>
);
}... |
src/index.js | ngokevin/aframe-react-boilerplate | import 'aframe';
import 'aframe-animation-component';
import 'aframe-particle-system-component';
import 'babel-polyfill';
import {Entity, Scene} from 'aframe-react';
import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
constructor(props) {
super(props);
this.state ... |
client/src/components/utils/StickyAlert.js | DjLeChuck/recalbox-manager | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import AutoAffix from 'react-overlays/lib/AutoAffix';
import Alert from 'react-bootstrap/lib/Alert';
class StickyAlert extends Component {
static propTypes = {
bsStyle: PropTypes.oneOf(['success', 'warning', 'danger']).isRequired,
... |
app/javascript/flavours/glitch/features/emoji_picker/index.js | glitch-soc/mastodon | import { connect } from 'react-redux';
import { changeSetting } from 'flavours/glitch/actions/settings';
import { createSelector } from 'reselect';
import { Map as ImmutableMap } from 'immutable';
import { useEmoji } from 'flavours/glitch/actions/emojis';
import React from 'react';
import PropTypes from 'prop-types';
i... |
src/dumb/editor/custom_field/form_templates/GenericListFormTemplate.js | jeckhummer/wf-constructor | import React from 'react';
import {Form, Icon} from "semantic-ui-react";
import {AddButton} from "../../../buttons/AddButton";
export const GenericListFormTemplate = ({
label,
items,
onLabelChange,
onItemChange,
onItemDelete,
onItemAdd
}) => {
return (
<div>
<Form.Field>... |
src/Value.js | Reggino/react-select | import React from 'react';
import classNames from 'classnames';
const Value = React.createClass({
displayName: 'Value',
propTypes: {
children: React.PropTypes.node,
disabled: React.PropTypes.bool, // disabled prop passed to ReactSelect
id: React.PropTypes.string, // Unique id ... |
docs/src/examples/elements/Button/Variations/ButtonExampleSocial.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button, Icon } from 'semantic-ui-react'
const ButtonExampleSocial = () => (
<div>
<Button color='facebook'>
<Icon name='facebook' /> Facebook
</Button>
<Button color='twitter'>
<Icon name='twitter' /> Twitter
</Button>
<Button color='google plus'>
... |
src/routes/Dashboard/components/completed.js | daizhen256/i5xwxdoctor-web | import React from 'react'
import styles from './completed.less'
import {color} from '../../../utils'
import {AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer} from 'recharts'
function Completed (props) {
return (
<div className={styles.sales}>
<div className={styles.title}... |
node_modules/react-router/es6/IndexRedirect.js | silky098/Youtube-React-Search | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
src/containers/DevTools/DevTools.js | tykarol/redux-isomorphic-starter-kit | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q">
<LogMonitor />
</D... |
frontend/js/components/environments/Login.js | Code4HR/okcandidate-platform | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import LoginForm from './../ecosystems/LoginForm';
class Login extends Component {
constructor(props) {
super(props);
}
render() {
return (
<section>
<div className="container">
<div cl... |
src/svg-icons/action/toc.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToc = (props) => (
<SvgIcon {...props}>
<path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/>
</SvgIcon>
);
ActionToc = pure(ActionToc);
ActionToc.displa... |
frontend/src/components/frame/components/ProgressPres.js | jf248/scrape-the-plate | import React from 'react';
import * as Mui from '@material-ui/core';
const styles = () => ({
root: {
position: 'static',
},
});
function ProgressPres(props) {
const { isLoading, classes } = props;
return isLoading ? (
<Mui.CircularProgress color={'inherit'} className={classes.root} />
) : null;
}
e... |
src/components/SEO.js | cadejscroggins/cadejs.com | import Helmet from 'react-helmet';
import PropTypes from 'prop-types';
import React from 'react';
import { StaticQuery, graphql } from 'gatsby';
const SEO = ({ description, lang, meta, path, title }) => (
<StaticQuery
query={graphql`
query DefaultSEOQuery {
site {
siteMetadata {
... |
src/components/Emoji/index.js | marcneander/marcneander.se | import React from 'react';
const Emoji = ({ symbol, label }) => (
<span role="img" aria-label={label || ''} aria-hidden={label ? 'false' : 'true'}>
{symbol}
</span>
);
export default Emoji;
|
app/jsx/shared/FlickrImage.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/components/Output.js | benjaminboruff/pomodoro | import React from 'react';
import 'react-mdl/extra/material.css';
import 'react-mdl/extra/material.js';
import { Button, Card, CardText, CardActions, CardTitle } from 'react-mdl';
import './Output.css';
import SetSession from './SetSession';
import SetBreak from './SetBreak';
function Output(props) {
if(props.takeAB... |
src/routes/app/routes/ui/routes/boxes/components/Boxes.js | ahthamrin/kbri-admin2 | import React from 'react';
import QueueAnim from 'rc-queue-anim';
const BasicBoxes = () => (
<article className="article">
<h2 className="article-title">Basic Boxes</h2>
<div className="row">
<div className="col-xl-4">
<div className="box box-default">
<div className="box-header">Box ... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/ControlLabel.js | JamieMason/npm-cache-benchmark | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/PopupContainer.js | TerranetMD/react-leaflet | import React from 'react';
import MapLayer from './MapLayer';
export default class PopupContainer extends MapLayer {
render() {
const children = this.getClonedChildrenWithMap({
popupContainer: this.leafletElement
});
return <div style={{display: 'none'}}>{children}</div>;
}
}
|
src/exseed.contrib.basic/flux/views/layouts/AppLayout.js | exseed/exseed-boilerplate | import React from 'react';
import BaseLayout from '@core/views/layouts/BaseLayout';
import Navigator from '../components/Navigator';
// jscs:disable
/**
* Ref:
* - http://stackoverflow.com/questions/30347722/importing-css-files-in-isomorphic-react-components
* - https://github.com/gpbl/isomorphic500
*/
// jscs... |
public/javascript/index.js | jyotman/mqtt-chat | /**
* Created by jyot on 6/5/17.
*/
'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import App from '../components/App.jsx';
ReactDOM.render(<App />, document.getElementById('root')); |
packages/material/src/components/ListItem.native.js | wq/wq.app | import React from 'react';
import { useIcon } from '@wq/react';
import { List } from 'react-native-paper';
import PropTypes from 'prop-types';
export default function ListItem({ children, description, icon, ...rest }) {
const Icon = useIcon(icon);
return (
<List.Item
title={children}
... |
src/components/FlightTracker/OldLeaderboard.js | elstgav/stair-climber | import React from 'react'
import _ from 'lodash'
const OldLeaderboard = React.createClass({
sortedPeople() {
return _(this.props.people.getAll())
.sortBy(p => p.flightsClimbed.totalFlights())
.reverse()
.value()
},
render() {
return (
<div>
<h2>Leaderboard</h2>
<t... |
albums/src/components/AlbumList.js | sgcharameli/ReactNativeAndReduxCourse | import React, { Component } from 'react';
import { ScrollView } from 'react-native';
import axios from 'axios';
import AlbumDetail from './AlbumDetail';
class AlbumList extends Component {
state = { albums: [] };
componentWillMount() {
axios.get('https://rallycoding.herokuapp.com/api/music_albums')
... |
src/parser/shaman/restoration/modules/talents/Deluge.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
import Analyzer from 'parser/core/Analyzer';
import Combatants from 'parser/shared/modules/Combatants';
import calculateEffectiveHealing from 'parser/core/calculat... |
examples/sidebar/app.js | brenoc/react-router | import React from 'react'
import { render } from 'react-dom'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link } from 'react-router'
import data from './data'
require('./app.css')
const history = useBasename(createHistory)({
basename: '/sidebar'
})
class Category extends React.Compo... |
docs/src/examples/modules/Checkbox/Types/CheckboxExampleToggle.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Checkbox } from 'semantic-ui-react'
const CheckboxExampleToggle = () => <Checkbox toggle />
export default CheckboxExampleToggle
|
src/app.js | ypereirars/iot-dashboard | import express from 'express'
import path from 'path'
import favicon from 'serve-favicon'
import logger from 'morgan'
import cookieParser from 'cookie-parser'
import bodyParser from 'body-parser'
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-ro... |
app/javascript/mastodon/features/list_editor/index.js | musashino205/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListEditor, clearListSuggestions, ... |
src/components/cell/cell_header.js | n7best/react-weui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from '../../utils/classnames';
/**
* Header of `Cell`
*
*/
const CellHeader = (props) => {
const { className, children, primary, ...others } = props;
const cls = classNames({
'weui-cell__hd': true,
'weui-cell_pr... |
vendor/htmlburger/carbon-fields/packages/vendor/index.js | xlthlx/wp-inci | /**
* External dependencies.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import nanoid from 'nanoid';
import immer from 'immer';
import * as apiFetch from '@wordpress/api-fetch';
import * as compose from '@wordpress/compose';
import * as element from '@wordpress/element';
import * as hooks from '@... |
addons/docs/src/lib/convert/__testfixtures__/proptypes/misc.js | storybooks/storybook | import React from 'react';
import PropTypes from 'prop-types';
export const Component = (props) => <>JSON.stringify(props)</>;
Component.propTypes = {
// An object that could be one of many types
optionalUnion: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number,
PropTypes.instanceOf(Object),
])... |
pootle/static/js/editor/components/SimilarTranslation.js | evernote/zing | /*
* Copyright (C) Zing contributors.
*
* This file is a part of the Zing project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import TimeSince from 'components/... |
node_modules/@material-ui/core/esm/test-utils/createMount.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _possibleConstructorReturn from "@babel... |
src/svg-icons/maps/local-laundry-service.js | rscnt/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 ... |
wrappers/md.js | olifante/olifante | import React from 'react'
import 'css/markdown-styles.css'
import Helmet from "react-helmet"
import { config } from 'config'
module.exports = React.createClass({
propTypes() {
return {
router: React.PropTypes.object,
}
},
render() {
const post = this.props.route.page.data
return (
<di... |
src/svg-icons/communication/voicemail.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationVoicemail = (props) => (
<SvgIcon {...props}>
<path d="M18.5 6C15.46 6 13 8.46 13 11.5c0 1.33.47 2.55 1.26 3.5H9.74c.79-.95 1.26-2.17 1.26-3.5C11 8.46 8.54 6 5.5 6S0 8.46 0 11.5 2.46 17 5.5 17h13c3... |
src/components/ExampleTwoDeepComponent.js | ambershen/ambershen.github.io | import React from 'react';
import PropTypes from 'prop-types';
import Interactive from 'react-interactive';
import { Link } from 'react-router-dom';
import { Li } from '../styles/style';
import s from '../styles/exampleTwoDeepComponent.style';
const propTypes = {
location: PropTypes.object.isRequired,
};
export def... |
src/client/assets/js/features/driver/components/Publish/Publish.js | me-box/iot.red | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class Publish extends React.Component {
render(){
return <h1> publish </h1>
}
} |
webapp/app/components/Notifications/Form/Users/index.js | EIP-SAM/SAM-Solution-Server | //
// Component users form notifications
//
import React from 'react';
import { Col } from 'react-bootstrap';
import AllUsers from 'containers/Notifications/Form/Users/AllUsers';
import SelectedUsers from 'containers/Notifications/Form/Users/SelectedUsers';
import Buttons from 'containers/Notifications/Form/Users/Butt... |
src/Parser/EnhancementShaman/Modules/Features/AlwaysBeCasting.js | mwwscott0/WoWAnalyzer | import React from 'react';
import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting';
import SPELLS from 'common/SPELLS';
import Icon from 'common/Icon';
import { formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellLink from 'common/Spell... |
docs/src/app/components/pages/components/TimePicker/ExampleInternational.js | frnk94/material-ui | import React from 'react';
import TimePicker from 'material-ui/TimePicker';
const TimePickerInternational = () => (
<div>
<TimePicker
hintText="Custom Labels"
okLabel="确定"
cancelLabel="取消"
/>
</div>
);
export default TimePickerInternational;
|
app/javascript/mastodon/features/account/components/header.js | TheInventrix/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Motion from '../../ui/util/optional_motion';
import sprin... |
src/TableRow.js | gkaran/react-bootstrap-tabular | import React from 'react';
import Td from './Td';
const TableRow = ({ columns, row, totals, rowClass }) => (
<tr className={rowClass}>
{
columns.map((c, i) => <Td
key={`${i}-${row[c.property]}` || `${i}-empty-${c.property}`}
cell={row[c.property]}
row={row}
alignment={c.alig... |
src/index.js | YiTingLee/ImplementGoogleMap | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(... |
src/containers/guide/interview.js | wunderg/PTC | import React from 'react';
import Highlight from '../../helpers/highlight.js';
import { array, multiply, each, useMult, reject, reduce, map, filterUsingReduce, numberOfWins, defaultProps } from './code/mock.js';
export default () => (
<div className="card deep-purple lighten-5">
<div className="card-content">
... |
react/features/mobile/navigation/components/welcome/components/WelcomePageNavigationContainer.js | gpolitis/jitsi-meet | // @flow
import { createDrawerNavigator } from '@react-navigation/drawer';
import React from 'react';
import { useTranslation } from 'react-i18next';
import WelcomePage from '../../../../../welcome/components/WelcomePage';
import HelpView from '../../../../../welcome/components/native/HelpView';
import PrivacyView fr... |
src/icons/FormatIndentIncreaseIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class FormatIndentIncreaseIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 42h36v-4H6v4zm0-26v16l8-8-8-8zm16 18h20v-4H22v4zM6 6v4h36V6H6zm16 12h20v-4H22v4zm0 8h20v-4... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.