path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/header/Header.js | djErock/Telemed-Website | import React, { Component } from 'react';
import { CSSTransitionGroup } from "react-transition-group";
import { Link } from 'react-router-dom';
import { connect } from "react-redux";
import Logo from '../../img/Telemed-Logo.png';
import './header.css';
import { getCompanies } from "../../actions/actions"
@connect((st... |
Examples/TabsExample/main.js | Wolox/react-native-renavigate | import React from 'react';
import { Provider } from 'react-redux';
import store from './src/redux/store';
import App from './src/App';
export default function main() {
return (
<Provider store={store}>
<App />
</Provider>
);
}
|
Demo4/Container/WebViewContainer.js | Quxiaolei/Study_RN | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
Image,
ListView,
Dimensions,
Navigator,
NavigatorIOS,
ScrollView,
ActivityIndicator,
Platform,
WebView,
TouchableOpacity,
View
} from 'react-native';
let HostApi = 'http://172.16.101.202';
let {height,width} ... |
node_modules/react-mdl/src/utils/mdlUpgrade.js | yomolify/cs-webserver | import React from 'react';
export default (Component) => {
class MDLUpgradedComponent extends React.Component {
componentDidMount() {
componentHandler.upgradeElement(React.findDOMNode(this));
}
componentWillUnmount() {
componentHandler.downgradeElements(React.findDO... |
src/Table/TableRow.js | rscnt/material-ui | import React from 'react';
function getStyles(props, context, state) {
const {tableRow} = context.muiTheme;
let cellBgColor = 'inherit';
if (props.hovered || state.hovered) {
cellBgColor = tableRow.hoverColor;
} else if (props.selected) {
cellBgColor = tableRow.selectedColor;
} else if (props.stripe... |
src/frontend/containers/door/list.js | PiTeam/garage-pi | import React from 'react';
import Card from 'material-ui/lib/card/card';
import CardMedia from 'material-ui/lib/card/card-media';
import CardTitle from 'material-ui/lib/card/card-title';
import Paper from 'material-ui/lib/paper';
import { Link } from 'react-router';
import RaisedButton from 'material-ui/lib/raised-butt... |
src/components/Graphics.js | merttoka/Siren | import React from 'react';
import {
inject,
observer
} from 'mobx-react';
import _ from 'lodash';
// CSS Imports
import '../styles/App.css';
import '../styles/Layout.css';
import '../styles/Home.css';
import {
shaders
} from './shaders/shaders';
import {
Surface
} from "gl-react-dom";
import {
Node,
Bus
... |
src/components/containers/images/ImageLibraryManager.js | ESTEBANMURUZABAL/my-ecommerce-template | /**
* Imports
*/
import React from 'react';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {FormattedMessage} from 'react-intl';
// Flux
import FileUploadStore from '../../../stores/Files/FileUploadStore';
import IntlStore from '../../../stores/Application/IntlStore';
import uploadFile ... |
src/docs/Navigation.js | rajeshpillai/zs-react-pattern-lib | import React from 'react';
import PropTypes from 'prop-types';
const Navigation = ({components}) => {
return (
<ul className="navigation">
{
components.map( name => {
return (
<li key={name}>
<a href={`#${name}`}>{name}</a>
</li>
)
}... |
client/internals/templates/containers/NotFoundPage/index.js | sosaucily/r3-go | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a 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... |
src/components/ScoreBar.js | FilmonFeMe/coloreyes | import React, { Component } from 'react';
import ProgressBar from 'react-progressbar.js';
var Circle = ProgressBar.SemiCircle;
class ScoreBar extends Component{
constructor(props) {
super(props);
}
render() {
var options = {
strokeWidth: 6,
color: '#FFEA82',
trailColor: '#... |
packages/material-ui-icons/src/GpsNotFixed.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.1... |
examples/00 Chessboard/Tutorial App/index.js | longlho/react-dnd | import React, { Component } from 'react';
import Board from './Board';
import { observe } from './Game';
/**
* Unlike the tutorial, export a component so it can be used on the website.
*/
export default class ChessboardTutorialApp extends Component {
constructor(props) {
super(props);
this.unobserve = obse... |
react/features/remote-control/components/RemoteControlAuthorizationDialog.js | gpolitis/jitsi-meet | // @flow
import React, { Component } from 'react';
import { Dialog, hideDialog } from '../../base/dialog';
import { translate } from '../../base/i18n';
import { getParticipantById } from '../../base/participants';
import { connect } from '../../base/redux';
import { getLocalVideoTrack } from '../../base/tracks';
impo... |
docs/app/Examples/modules/Dropdown/Types/DropdownExampleMultipleSearchSelectionTwo.js | ben174/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
import { countryOptions } from '../common'
const DropdownExampleMultipleSearchSelectionTwo = () => (
<Dropdown placeholder='Select Country' fluid multiple search selection options={countryOptions} />
)
export default DropdownExampleMultipleSear... |
test/client/app/components/pages/admin/authorize/test-admin-authorize.js | LINKIWI/apache-auth | import {mount} from 'enzyme';
import React from 'react';
import request from 'browser-request';
import sinon from 'sinon';
import test from 'tape';
import {
ALERT_TYPE_ERROR,
ALERT_TYPE_SUCCESS
} from '../../../../../../../src/client/app/components/ui/alert';
import {AdminAuthorize} from '../../../../../../../src/... |
app/ecoModules/lists/sortable-list.js | aoshmyanskaya/tko | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {SortableContainer, SortableElement, arrayMove} from 'react-sortable-hoc';
const SortableItem = SortableElement(({value}) =>
<li className="tile">
<a className="tile-content ink-reaction">
<div className="tile-text">
... |
pkg/interface/chat/src/js/components/join.js | jfranklin9000/urbit | import React, { Component } from 'react';
import classnames from 'classnames';
import { Route, Link } from 'react-router-dom';
import { Spinner } from './lib/icons/icon-spinner';
import urbitOb from 'urbit-ob';
export class JoinScreen extends Component {
constructor(props) {
super(props);
this.state = {
... |
app/views/Proposals/Create/Create.js | RcKeller/STF-Refresh | import React from 'react'
import PropTypes from 'prop-types'
import { compose, bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import { browserHistory } from 'react-router'
import api from '../../../services'
import { Boundary } from '../../../components'
import { layout, feedback, ... |
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js | cnbin/actor-platform | import _ from 'lodash';
import Immutable from 'immutable';
import keymirror from 'keymirror';
import React from 'react';
import { Styles, TextField, FlatButton } from 'material-ui';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import ContactStore from 'stores/ContactStore';
import Cont... |
src/components/common/Navigation.js | mdicarlo3/cautious-disco | import React from 'react';
import { Link } from 'react-router';
const Navigation = () => {
return(
<nav className="navigation">
<ul>
<li><Link to="/">Home</Link></li>
<li><Link to="/adventures">Adventures</Link></li>
<li><Link to="/map">Map</Link></li>
<li><Link to="/stay">s... |
src/svg-icons/social/people-outline.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPeopleOutline = (props) => (
<SvgIcon {...props}>
<path d="M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.7... |
src/svg-icons/communication/present-to-all.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPresentToAll = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h18c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 16.02H3V4.98h18v14.04zM10 12H8l4-4 4 4h-2v4h-4v-4z"/... |
web/containers/App/App.js | viatsko/lyn | import React from 'react';
import { IndexLink, Link } from 'react-router';
require('./App.scss');
export default class App extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<nav className="navbar navbar-static-top navbar-dark bg-inverse">
<... |
demo/MovableDemo.js | rameshvk/j0 | 'use strict';
require('./MovableDemo.less');
import BaseComponent from '../ux/BaseComponent.js';
import React from 'react';
import Demo from './Demo';
import DemoDescription from './DemoDescription.js';
import Movable from '../ux/Movable.js';
import MovableModel from '../ux/models/MovableModel.js';
export default cl... |
.core/app/app.dev.js | suranartnc/graphql-blogs-app | import React from 'react'
import { render } from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import Root from './Root'
function renderWithHMR (Component) {
return render(
<AppContainer>
<Component />
</AppContainer>,
document.getElementById('root')
)
}
renderWithHMR(Root)
if (m... |
src/app/components/map/Map.js | react-map/lr-map | import React from 'react';
import L from 'leaflet';
/**
* @author sylvenas
* @doc 初始化地图组件
* @class Map
* @extends {React.Component}
*/
class Map extends React.Component {
/**
* @doc 地图容器DOM
* @returns 地图容器
* @memberOf Map
*/
render() {
return (
<d... |
assets/jqwidgets/demos/react/app/grid/validation/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxRadioButton from '../../../jqwidgets-react/react_jqxradiobutton.js';
class App extends React.Component {
componentDidMount() {
this.refs.top.on('checked', () => {
... |
demo/src/index.js | OCMC-Translation-Projects/ioc-liturgical-react | import '../../node_modules/bootstrap/dist/css/bootstrap.css'
import '../../node_modules/font-awesome/css/font-awesome.css'
import '../../node_modules/prismjs/themes/prism.css'
import '../../node_modules/react-bootstrap-table/css/react-bootstrap-table.css'
import '../../node_modules/react-bootstrap-table/css/react-boots... |
frontend/src/components/BotList.js | CoderBotOrg/coderbotsrv | /* @flow */
import React from 'react'
import Bot from '../components/Bot'
import {CoderBotSrv} from '../api/CoderBotSrv'
// We can use Flow (http://flowtype.org/) to type our component's props
// and state. For convenience we've included both regular propTypes and
// Flow types, but if you want to try just using Flow ... |
monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/RunOnIslandButton.js | guardicore/monkey | import React from 'react';
import {Button, Col, Row} from 'react-bootstrap';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
import {faCheck} from '@fortawesome/free-solid-svg-icons/faCheck';
import {faSync} from '@fortawesome/free-solid-svg-icons/faSync';
import AuthComponent from '../../AuthComponent... |
src/client.js | colinmeinke/css-modules-universal-example | import React from 'react';
import { render } from 'react-dom';
import Hello from './components/Hello';
import World from './components/World';
const HELLO = 'HELLO';
const WORLD = 'WORLD';
let state = HELLO;
const updateState = () => {
switch ( state ) {
case HELLO:
state = WORLD;
break;
case ... |
app/src/components/CentroidCircleMap/CentroidCircleMap.stories.js | WoundedPixels/us-population | import React from 'react';
import { storiesOf } from '@storybook/react';
import { topoToGeo } from '../../DataManipulation';
import CentroidCircleMap from './CentroidCircleMap';
import Tooltip from '../Tooltip/Tooltip';
const buildTooltip = d => <div>Static tooltip</div>;
const calculateArea = d => {
return Math... |
packages/slimkit-plus-feed/admin/main.js | zhiyicx/thinksns-plus | /*
|-----------------------------------------------
| Plus feed-component admin application.
|-----------------------------------------------
|
| The file is entry.
|
| @author Seven Du <shiweidu@outlook.com>
|
*/
import React from 'react';
import { render } from 'react-dom';
import { HashRouter as Router } from 'reac... |
docs/src/modules/components/AdInHouse.js | lgollut/material-ui | /* eslint react/jsx-no-target-blank: ["error", { allowReferrer: true }] */
import React from 'react';
import PropTypes from 'prop-types';
import AdDisplay from 'docs/src/modules/components/AdDisplay';
export default function AdInHouse(props) {
const { ad } = props;
return <AdDisplay ad={{ poweredby: 'Material-UI'... |
imports/ui/components/common/Loader.js | hwillson/shopify-hosted-payments | import React from 'react';
const Loader = () => (
<div className="loader">
Loading ...
</div>
);
export default Loader;
|
frontend/src/Home.js | natsukagami/hakkero-project | import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
PageHeader,
Button,
Form,
FormControl,
FormGroup,
ControlLabel
} from 'react-bootstrap';
import { actionConnect, actionUsername, actionWelcome } from './data/home';
import JumpTo from './JumpTo';
import Matchmaker fro... |
webpack.gensrc.js | axax/lunuc | /* generate sources */
const fs = require('fs')
const path = require('path')
let APP_CONFIG
if (fs.existsSync('/etc/lunuc/buildconfig.json')) {
APP_CONFIG = require('/etc/lunuc/buildconfig.json')
} else {
APP_CONFIG = require('./buildconfig.json')
}
const EXTENSION_PATH = './extensions/'
const GENSRC_HEADER... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-common-swipe-mixin.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import Tools from './tools.js';
export const SwipeMixin = {
//@@viewOn:statics
statics: {
UU5_Common_SwipeMixin: {
requiredMixins: ['UU5_Common_BaseMixin'],
defaults: {
maxLengthOnShortSwipe: 70,
minLengthOnSwipe: 10,
maxSpeedOnSlowSwipe: 0.3,
... |
src/ModalBody.js | apisandipas/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalBody extends React.Component {
render() {
return (
<div
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{this.props.children}
</div>
);
}
}
ModalBody.prop... |
app/components/Routes.js | ryskiz/machi-koro-nyc | import React from 'react';
import {connect} from 'react-redux';
import {Router, Route, IndexRedirect, browserHistory} from 'react-router';
import {purchaseEstablishment, allPlayers} from '../basestuff';
import MenuWrap from './MenuWrap';
let Menu = require('react-burger-menu').push;
import Board from './Board';
import... |
app/components/ProgressBar/index.js | kdprojects/nichesportapp | import React from 'react';
import ProgressBar from './ProgressBar';
function withProgressBar(WrappedComponent) {
class AppWithProgressBar extends React.Component {
constructor(props) {
super(props);
this.state = {
progress: -1,
loadedRoutes: props.location && [props.location.pathname]... |
docs/src/examples/modules/Tab/Types/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const TabTypesExamples = () => (
<ExampleSection title='Types'>
<Message info>
... |
src/containers/DevTools.js | Destinia/Splendor | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
export default createDevTools(<LogMonitor />);
|
examples/with-iron-session/components/Form.js | flybayer/next.js | import React from 'react'
import PropTypes from 'prop-types'
const Form = ({ errorMessage, onSubmit }) => (
<form onSubmit={onSubmit}>
<label>
<span>Type your GitHub username</span>
<input type="text" name="username" required />
</label>
<button type="submit">Login</button>
{errorMessag... |
docs/server.js | SSLcom/Bootsharp | /* eslint no-console: 0 */
import 'colors';
import express from 'express';
import httpProxy from 'http-proxy';
import ip from 'ip';
import path from 'path';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import {match, RoutingContext} from 'react-router';
import Root from './src/Root';
impo... |
src/components/Button/ButtonGroup.js | ilxanlar/cathode | import React from 'react';
import styled from 'styled-components';
import Button from './Button';
const ButtonGroup = styled.div`
overflow: auto;
white-space: nowrap;
${Button} {
margin-${props => props.theme.isRTL ? 'left' : 'right'}: ${props => props.theme.buttonGroup.margin}px;
&:last-child {
... |
src/svg-icons/content/mail.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentMail = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
ContentMail = pure(Conte... |
server/sonar-web/src/main/js/apps/permission-templates/components/App.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... |
app/views/Routes.js | bboysathish/react-cooked | import React from 'react';
import { Link, Match, Miss } from 'react-router';
import Home from './Home';
const NoMatch = () => (<div className="text-center">
<h3 className="text-danger">{ `404: Page not found!` } </h3>
<Link to="/">{ `Back To Home` }</Link>
</div>);
const RouteConfig = () => (
<div>
<Match ... |
maodou/posts/client/components/admin/postsConfigure.js | ShannChiang/USzhejiang | import React from 'react';
import {Link} from 'react-router';
import Loading from 'client/components/common/loading';
export default (props) => {
return (
<div className="container">
<div className="row">
<div className="col-sm-12">
<h1>文章设置</h1>
<h4>文章分类</h4>
{
... |
src/components/controls/top_menu.js | VictorQD/react-pdf-viewer | import React from 'react';
import { MenuButtonDark } from '../helpers';
// import ClosePreviewLink from '../links/close_preview_link';
import LoadBar from '../helpers/loadbar';
function renderLoader(loadingProgress) {
if (loadingProgress < 100) return <LoadBar loadingProgress={loadingProgress} />;
return null;
}
... |
src/hoc.js | jasonmorita/react-redux-ui-state | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import isEqual from 'lodash/isEqual';
import omit from 'lodash/omit';
import {
dispatchToProps,
generateName,
generateResetUiState,
generateSetUiState,
stateToProps
} from './';
expo... |
client-app/src/index.js | rddimon/test-product-scanner | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
lib/Components/NameForm.js | mattmontgomery/estimator | import React, { Component } from 'react';
const inputStyle = { fontSize: '24pt', padding: '.25rem', margin: '.5rem 0' };
export default class CreateUserForm extends Component {
constructor(props) {
super(props);
this.state = {
name: ''
}
}
render() {
return (
... |
src/components/IndustryList/Item.js | honeypotio/techmap | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import styled from 'styled-components';
const StyledLink = styled(Link)`
color: #1f2228;
display: flex;
align-items: flex-start;
font-weight: 500;
padding: 15px 10px;
text-decoration: none;
&:hover {
... |
src/message/MessageList.js | saketkumar95/zulip-mobile | /* @flow */
import React from 'react';
import { connectActionSheet } from '@expo/react-native-action-sheet';
import TaggedView from '../native/TaggedView';
import { LoadingIndicator } from '../common';
import MessageTyping from '../message/MessageTyping';
import InfiniteScrollView from './InfiniteScrollView';
import r... |
src/svg-icons/action/donut-small.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDonutSmall = (props) => (
<SvgIcon {...props}>
<path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84zM13 1... |
src/components/HeaderIcons.js | shoegazer/shuffly-now | import React from 'react'
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'
import Search from './Search'
import actions from '../actions'
import Fade from './Fade'
@connect(state => ({
fullscreen: state.fullscreen,
help: state.help,
settings: state.settings,
graph: state.graph,
sp... |
components/Map/Control/Control.js | NGMarmaduke/bloom | import PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import css from './Control.css';
const Control = ({ className, children, ...rest }) => (
<button
className={ cx(css.root, className) }
{ ...rest }
>
{ children }
</button>
);
Control.propTypes = {
classNam... |
public/js/cat_source/es6/components/modals/SuccessModal.js | matecat/MateCat | import PropTypes from 'prop-types'
import React from 'react'
class SuccessModal extends React.Component {
render() {
return (
<div className="success-modal">
<p>{this.props.text}</p>
</div>
)
}
}
SuccessModal.propTypes = {
title: PropTypes.string,
text: PropTypes.string,
}
export d... |
app/components/RowHeader/index.js | zebbra-repos/Zeiterfassung-medi | /**
*
* RowHeader
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Flex, Box } from 'grid-styled';
import IconButton from 'material-ui/IconButton';
import Subheader from 'material-ui/Subheader';
import muiThemeable from 'material-ui/styles/muiThemeable';
import FlatButton from 'material-ui/... |
data-browser-ui/public/app/components/tableComponents/td/listComponents/emailList.js | CloudBoost/cloudboost | import React from 'react';
import ReactDOM from 'react-dom';
import Paper from 'material-ui/Paper';
class EmailListComponent extends React.Component {
constructor(){
super()
this.state = {}
}
addNewRowToList(e){
if(e.which === 13){
this.props.addToElementData(false)
setTimeout(()=>{
// blur the c... |
src/svg-icons/action/perm-data-setting.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermDataSetting = (props) => (
<SvgIcon {...props}>
<path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.0... |
new-lamassu-admin/src/components/inputs/base/RadioGroup.js | lamassu/lamassu-server | import {
Radio,
RadioGroup as MRadioGroup,
FormControlLabel,
makeStyles
} from '@material-ui/core'
import classnames from 'classnames'
import React from 'react'
import { Label1 } from 'src/components/typography'
import { offColor } from 'src/styling/variables'
const styles = {
label: {
height: 16,
li... |
assets/js/components/activities/checkin/Skeleton.js | tdfischer/organizer | import React from 'react'
import { withStyles } from '@material-ui/styles'
import Grid from '@material-ui/core/Grid'
const carouselStyles = {
card: {
backgroundColor: '#eee',
animationName: '$fade',
animationDuration: '1s',
animationIterationCount: 'infinite',
animationDire... |
src/client/auth/login.react.js | hsrob/league-este | import './login.styl';
import Component from '../components/component.react';
import React from 'react';
import exposeRouter from '../components/exposerouter';
import {focusInvalidField} from '../lib/validation';
@exposeRouter
export default class Login extends Component {
static propTypes = {
actions: React.Pr... |
src/routes/error/index.js | mattroid/turboiep | /**
* 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 App from '../../componen... |
src/routes/CoreComponentLibrary/components/ComponentDemo.js | mjchamoures/personalPortfolio | /* CompnentDemo component, which...
*
* author : michael chamoures
* created date : 3/28/17
* last updated date : 3/28/17
*/
import React from 'react';
import { Panel, FormControl, FormGroup, Col } from 'react-bootstrap';
import './CoreComponentLibraryPage.scss';
const ComponentDemo = (props) => (
<Panel cl... |
react/gameday2/components/embeds/EmbedYoutube.js | nwalters512/the-blue-alliance | import React from 'react'
import { webcastPropType } from '../../utils/webcastUtils'
const EmbedYoutube = (props) => {
const src = `//www.youtube.com/embed/${props.webcast.channel}?autoplay=1`
return (
<iframe
width="100%"
height="100%"
src={src}
frameBorder="0"
allowFullScreen
... |
docs/src/layouts/redirect.js | chrisclarke1977/nuclear-js | import React from 'react'
export default React.createClass({
render() {
const redirectTo = this.props.to || '/'
const redirectJS = {
__html: "window.location = '" + redirectTo + "'",
}
return (
<html lang="en">
<head>
<meta httpEquiv="Content-Type" content="text/html; ch... |
app/containers/NotFoundPage/index.js | lucascgomes/church-website | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a 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... |
src/svg-icons/av/fast-rewind.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFastRewind = (props) => (
<SvgIcon {...props}>
<path d="M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z"/>
</SvgIcon>
);
AvFastRewind = pure(AvFastRewind);
AvFastRewind.displayName = 'AvFastRewind';
AvFastRewin... |
docs/src/app/components/pages/get-started/Examples.js | mtsandeep/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import examplesText from './examples.md';
const Examples = () => (
<div>
<Title render={(previousTitle) => `Examples - ${previousTitle}`} />
<MarkdownElement text={examplesText} />
</... |
example/src/index.js | Monar/react-immutable-pure-component | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this come... |
ui/js/components/footer/FooterComponent.js | kpi-petitions/project-y | import React from 'react';
class FooterComponent extends React.Component {
constructor() {
super();
}
render() {
return (
<div className="as footer">
<div className="about-project">
<h4>Про проект</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do e... |
docs/src/app/components/pages/components/AppBar/Page.js | IsenrichO/mui-with-arrows | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import appBarReadmeText from './README';
import AppBarExampleIcon from './ExampleI... |
app/javascript/components/TypesDeChampEditor/components/DescriptionInput.js | sgmap/tps | import React from 'react';
import PropTypes from 'prop-types';
function DescriptionInput({ isVisible, handler }) {
if (isVisible) {
return (
<div className="cell">
<label htmlFor={handler.id}>Description</label>
<textarea
id={handler.id}
name={handler.name}
val... |
client/src/components/Listing/AllListings/AllListingsComponents/ListingInfoCard.js | Darkrender/raptor-ads | import React from 'react';
import { Card, Header, Image, Icon } from 'semantic-ui-react';
import convertDistance from '../../../helpers/convertDistance';
const ListingInfoCard = ({ card, onListingClick }) => {
if (card) {
let picturePath;
if (card.pictures[0]) {
picturePath = card.pictures[0].img_path... |
ui/src/views/nodes/NodeKeys.js | jcampanell-cablelabs/lora-app-server | import React, { Component } from 'react';
import NodeStore from "../../stores/NodeStore";
class DeviceKeysForm extends Component {
static contextTypes = {
router: React.PropTypes.object.isRequired
};
constructor() {
super();
this.state = {
deviceKeys: {
deviceKeys: {},
},
... |
example/src/screens/transitions/sharedElementTransitions/Masonry/Masonry.js | snapme/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 {
... |
example/src/index.js | glennflanagan/react-collapsible | import React from 'react';
import ReactDOM from 'react-dom';
import Collapsible from '../../dist';
import ZeroHeightCollapsible from './examples/ZeroHeightCollapsible';
const triggerSiblingExample = () => (
<div className="Collapsible__custom-sibling">
This is a sibling to the trigger which wont cause the Colla... |
ui/src/containers/OrganisationHome/index.js | LearningLocker/learninglocker | import React from 'react';
import { connect } from 'react-redux';
import { startsWithSegment } from 'router5.helpers';
import { routeNodeSelector } from 'redux-router5';
import Helmet from 'react-helmet';
import TopNav from 'ui/containers/TopNav';
import SideNav from 'ui/containers/SideNav';
import createAsyncComponent... |
views/prompt.js | ammaroff/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/svg-icons/action/autorenew.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAutorenew = (props) => (
<SvgIcon {...props}>
<path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 ... |
src/Table.js | aparticka/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
getDefaultProps() {
... |
src/components/Navbar/Navbar.js | Jac21/reponotesreact | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { css } from 'glamor';
import NavbarList from '../NavbarList/NavbarList';
const navbar = css({
position: 'fixed',
top: 0,
bottom: 0,
width: `${260}px`,
height: `${100}%`,
overflow: 'auto',
WebkitOverflowScrolling: 'tou... |
webpack/__mocks__/foremanReact/components/common/ActionButtons/ActionButtons.js | adamruzicka/foreman-tasks | import React from 'react';
export const ActionButtons = props => <button>{JSON.stringify(props)}</button>;
|
app/javascript/mastodon/components/permalink.js | Craftodon/Craftodon | import React from 'react';
import PropTypes from 'prop-types';
export default class Permalink extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
className: PropTypes.string,
href: PropTypes.string.isRequired,
to: PropTypes.string.isRequired,
... |
src/client/ui/game/canvasBox.js | tnRaro/FrozenWar | import React from 'react';
export default class CanvasBox extends React.Component {
componentDidMount() {
this.props.onLoad(React.findDOMNode(this));
}
shouldComponentUpdate() {
return false;
}
render() {
return <canvas />;
}
}
|
assets/js/components/Calendar.js | voidpp/SmartDisplay |
import React from 'react';
import {ComponentAsFactory} from '../tools'
import {sprintf} from 'sprintf-js';
class Calendar extends React.Component {
constructor(props) {
super(props);
this.state = {
date: this.getDateString(),
};
}
componentDidMount() {
this.tim... |
src/scenes/UserConsole/scenes/Cameras/CameraWrapper.js | adeira/connector-frontend | import React from 'react';
import CameraView from './CameraView';
import {Card, CardActions, CardMedia, CardTitle} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import Alert from 'components/Dialog/Simple';
import Style from './CameraWrapper.css';
import {connect} from 'react-redux';
import ... |
packages/ui-toolkit/src/form/group.js | yldio/joyent-portal | import React, { Component } from 'react';
import { Broadcast } from 'joy-react-broadcast';
import PropTypes from 'prop-types';
import rndId from 'rnd-id';
import styled from 'styled-components';
import is from 'styled-is';
import Fieldset from './fieldset';
const Noop = ({ children }) => children;
const Wrapper = st... |
src/components/NotFoundPage.js | hofnarwillie/weather-demo | import React from 'react';
import {Link} from 'react-router';
export default () => {
return (
<div>
<h4>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>
);
};
|
bitpig/index.ios.js | kuncloud/bitcoinHelper | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class bitpig extends Component {
render() {
return (
<View style={styles.container}>
... |
docs/src/app/components/pages/components/List/ExampleSettings.js | igorbt/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
import Divider from 'material-ui/Divider';
import Checkbox from 'material-ui/Checkbox';
import Toggle from 'material-ui/Toggle';
const style... |
blueocean-material-icons/src/js/components/svg-icons/action/assignment-late.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionAssignmentLate = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0-4h-2V8h2v6zm-1-9c-.55 0-1-.45-1-... |
react/features/remote-video-menu/components/native/MuteRemoteParticipantDialog.js | bgrozev/jitsi-meet | // @flow
import React from 'react';
import { ConfirmDialog } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
import AbstractMuteRemoteParticipantDialog
from '../AbstractMuteRemoteParticipantDialog';
/**
* Dialog to confirm a remote par... |
node_modules/react-router/es/Route.js | ChrisMichaelPerezSantiago/CodetrotterFinalProject | 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 _classCallCheck(instance, Constructor) { if (!(insta... |
examples/group/index.js | sskyy/redux-task | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import App from './App'
import { Provider } from 'react-redux'
import { createStore, compose } from 'redux'
import { createEnhancer } from 'redux-task'
import countListener from './listener'
import reducer from './reducer'
// store
co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.