path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/interledger/js/components/assets.js | bigchaindb/bigchaindb-examples | import React from 'react';
import AssetRow from './asset_row';
import Spinner from '../../../lib/js/react/components/spinner';
const Assets = ({
account,
accountList,
assetList,
activeAsset,
handleAccountClick,
handleAssetClick
}) => {
if (assetList && assetLis... |
components/How/How.js | falconi1812/falconi | import React, { Component } from 'react';
import { LINKS } from 'config';
export default class How extends Component {
onClickExploreForFreeLink = (e) =>
analytics.track("Link how book", { platform: "www"});
render () {
return (
<section id={this.props.id} className="gc-section p-b-0 text-center al... |
src/components/ColorBlindnessView.js | FilmonFeMe/coloreyes | import React, { Component } from 'react';
import '../stylesheets/components/simulator.css';
class ColorBlindnessView extends Component {
componentWillMount() {
const script1 = document.createElement("script");
script1.src = "jsColorblindSimulator/panZoomImage.js";
script1.async = true;
document.body... |
docs/app/Examples/elements/Segment/Variations/SegmentExampleEmphasisInverted.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleEmphasisInverted = () => (
<div>
<Segment inverted>
I'm here to tell you something, and you will probably read me first.
</Segment>
<Segment inverted secondary>
I am pretty noticeable but you might check... |
src/components/App/app.js | motion123/mbookmakerUI | /**
* Created by tomihei on 17/02/10.
*/
import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Loading from '../const/loading';
export default class App extends React.Component {
componentWillMount() {
this.props.checkLogin();
}
render() {
const {isPrepa... |
src/client/index.js | thamht4190/elearning | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import thunk from 'redux-thunk';
import App from './components/app';
import Wiki from './components... |
src/routes/contact/index.js | dreambo8563/RSK | /**
* 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 Contact from './Conta... |
frontend/src/screens/landing/widgets/about/about.js | linea-it/qlf | import React from 'react';
import Paper from '@material-ui/core/Paper';
const styles = {
container: {
display: 'flex',
justifyContent: 'center',
},
main: {
maxWidth: '70vw',
// maxHeight: '65vh',
height: 'calc(100vh - 223px)',
overflowY: 'auto',
margin: '16px',
padding: '16px',
... |
src/js/components/Sky.js | fabregaszy/hackathon-vr | import {Entity} from 'aframe-react';
import React from 'react';
const SKY_COLOR = '#001133';
export default props => (
<Entity geometry={{primitive: 'sphere', radius: 100}}
material={props.material || {color: SKY_COLOR, shader: 'flat'}}
scale="1 1 -1"/>
);
|
app/containers/LanguageProvider/index.js | jakubrohleder/aurelius | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
pages/api/dialog-title.js | AndriusBil/material-ui | // @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './dialog-title.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
src/containers/utils/DevTools.js | hannupekka/badgenator | // @flow
import React from 'react';
// Exported from redux-devtools
import { createDevTools } from 'redux-devtools';
// Monitors are separate packages, and you can make a custom one
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
// createDevTools takes a m... |
src/components/Note/NoteThumbnail.js | bibleexchange/be-front-new | import React from 'react';
import {
createFragmentContainer,
graphql,
} from 'react-relay/compat';
import { Link } from 'react-router';
import N from '../../NoteTypes';
import DCRecording from '../Note/Thumbnail/DCRecording';
import BibleVerse from '../Note/Thumbnail/BibleVerse';
import FileNoteThumbnail from '../... |
stories/CustomSelector.js | ecmadao/light-ui |
import React from 'react';
import { storiesOf } from '@storybook/react';
import CustomSelectorWrapper from '../examples/CustomSelectorWrapper';
storiesOf('CustomSelector', module)
.add('basical', () => (
<CustomSelectorWrapper />
))
.add('disabled', () => (
<CustomSelectorWrapper disabled />
));
|
src/components/ToolbarGroup.js | dominic-blain/viper-visualizer | import React from 'react';
class ToolbarGroup extends React.Component {
shouldComponentUpdate(nextProps) {
return (nextProps.children !== this.props.children);
}
render() {
return (
<section className="toolbar-group">
<h2 className="toolbar-group-title">
{this.props.label}
</h2>
{this.props.... |
src/svg-icons/social/group-add.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialGroupAdd = (props) => (
<SvgIcon {...props}>
<path d="M8 10H5V7H3v3H0v2h3v3h2v-3h3v-2zm10 1c1.66 0 2.99-1.34 2.99-3S19.66 5 18 5c-.32 0-.63.05-.91.14.57.81.9 1.79.9 2.86s-.34 2.04-.9 2.86c.28.09.59.14.91.... |
dynamic/react/get-started/index.js | avalara-mike-amos/developer-dot | import 'babel-polyfill';
import React from 'react';
import {render} from 'react-dom';
import {createStore, applyMiddleware} from 'redux';
import createLogger from 'redux-logger';
import {Provider} from 'react-redux';
import reducer from './reducers/reducer';
import App from './containers/app';
import actionTypes from... |
static/src/index.js | locals-world/locals-faucetserver | 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();
|
client/pages/Signup.js | homanbromand/node-react-bootstrap | import React from 'react'
import SignupForm from 'client/components/SignupForm'
export default class Signup extends React.Component {
render() {
return (
<div class="bb-page bb-page-signup">
<h1 class="bb-h1">Signup</h1>
<SignupForm />
</div>
)
}
}
|
src/svg-icons/action/invert-colors.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInvertColors = (props) => (
<SvgIcon {...props}>
<path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 1... |
analysis/deathknightblood/src/modules/talents/FoulBulwark.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox from 'parser/ui/TalentStatisticBox';
import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER';
import { formatDuration, formatPercentage } from 'common/format';
import BoneShieldTimesByS... |
springboot/GReact/src/main/resources/static/app/components/forms/inputs/NoUiSlider.js | ezsimple/java | import React from 'react'
import noUiSlider from 'nouislider'
export default class NoUiSlider extends React.Component {
componentDidMount() {
const slider = this.refs.slider;
const element = $(slider);
const props = this.props;
element.addClass('noUiSlider');
const options = {
range: {
... |
pingpong/src/index.js | naeimzarei/PingPong | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
docs/app/Examples/elements/List/Types/index.js | koenvg/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ListTypes = () => (
<ExampleSection title='Types'>
<ComponentExample
tit... |
app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js | ashfurrow/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Toggle from 'react-toggle';
import AsyncSelect from 'react-select/async';
import { NonceProvider } from 'react-sele... |
js/App.js | dbatten4/chessboard-react | /*
*import React, { Component } from 'react';
*
*export default class App extends Component {
* render() {
* return (
* <h1>Hello, world.</h1>
* );
* }
*}
*/
|
src/svg-icons/notification/do-not-disturb-alt.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturbAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12zm8 8... |
app/components/LandingPage/LandingPageHeader.js | trussworks/DoDidDone | import React from 'react';
export const LandingPageHeader = () => {
return (
<div className="landing-page__header" />
);
};
export default LandingPageHeader;
|
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/MediaListItem.js | jmanday/Master | 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 ... |
react-router-webpack-code-splitting/src/index.js | LiuuY/code-splitting-demo | import React from 'react'
import ReactDOM from 'react-dom'
import App from './app'
ReactDOM.render(
<App />,
document.getElementById('app')
);
|
src/components/Contentful/StaticContent/Body/presenter.js | ndlib/usurper | // Presenter component for a Floor content type from Contentful
import React from 'react'
import PropTypes from 'prop-types'
import 'static/css/global.css'
import Related from '../../Related'
import LibMarkdown from 'components/LibMarkdown'
const Presenter = ({ cfStatic, showDescription, children }) => (
<div key={`... |
src/app/views/logout.js | nazar/soapee-ui | import React from 'react';
import authActions from 'actions/auth';
export default React.createClass( {
componentDidMount () {
authActions.logout();
},
render() {
return (
<div id="logout">
<div className="jumbotron">
<h1>Logged Out</h1>
... |
website/src/components/PostLink.js | davidsonfellipe/awesome-wpo | import React from 'react'
import styled from 'styled-components'
import Link from '../components/Link'
import ItemDate from '../components/ItemDate'
import { screen } from '../styles/screen'
const Date = styled(ItemDate)`
display: none;
${screen.md} {
display: inherit;
}
`
const PostLink = ({ post }) => ... |
src/server.js | namikingsoft/sample-react-server | import express from 'express'
import React from 'react'
import ReactDOMServer from 'react-dom/server'
import Counter from './components/Counter'
// init express
const app = express()
// add static path
app.use(express.static('public'))
// add top page routing
app.get('/', (req, res) => {
res.send(
ReactDOMServ... |
example/src/RuntimeAssets.js | rastapasta/react-native-gl-model-view | import React from 'react';
import {
ActivityIndicator,
View,
StyleSheet,
TouchableOpacity,
Text,
} from 'react-native';
import ModelView from 'react-native-gl-model-view';
import {Buffer} from 'buffer';
import axios from 'axios';
// XXX: This is the standard content header returned for a blob.
const octetStr... |
spec/javascripts/jsx/gradebook/default_gradebook/GradebookGrid/editors/TotalGradeOverrideCellEditor/EditableCellSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
App/node_modules/react-native/Libraries/Components/MaskedView/MaskedViewIOS.ios.js | Dagers/React-Native-Differential-Updater | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/svg-icons/action/perm-identity.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermIdentity = (props) => (
<SvgIcon {...props}>
<path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9... |
src/server.js | nbuechler/react-redux-universal-hot-example | import Express from 'express';
import React from 'react';
import Location from 'react-router/lib/Location';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
im... |
app/components/shared/submenu-item.js | soundglom/getmusiclive | import React from 'react';
const MenuItem = (props) => {
let
return (
<li>
<a>{props.title}</a>
<ul className='vertical accordion menu' children={} />
</li>
);
};
|
docs/src/app/components/pages/components/AppBar/ExampleIcon.js | mtsandeep/material-ui | import React from 'react';
import AppBar from 'material-ui/AppBar';
/**
* A simple example of `AppBar` with an icon on the right.
* By default, the left icon is a navigation-menu.
*/
const AppBarExampleIcon = () => (
<AppBar
title="Title"
iconClassNameRight="muidocs-icon-navigation-expand-more"
/>
);
e... |
client/src/app/components/markedDisplay.js | FrontSmith/FSFramework | import React from 'react';
import marked from 'marked';
export default React.createClass( {
render() {
return (
<div className="marked-display"
dangerouslySetInnerHTML={{
__html: this.unsafeContent()
}}
>
</div>
... |
examples/redirect-using-index/app.js | ThibWeb/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
{this.props.children}
</div>
);
}
});
var Index = React.createClass({
render () {
return (
<div>
<h1>You should not se... |
src/components/Earth.js | mbondyra/spells | import React from 'react'
import {Entity} from 'aframe-react'
export default props => (
<Entity
material={{
color: 'blue'
}}
position={[0,-20, 0]}
geometry={
{ primitive:"plane"
, width: "200000"
, height: "200000"
}
}
rotation={[-90, 0, 0]}
>
</Entity>
)
|
themes/genius/Genius 2.3.1 Bootstrap 4/React_Starter/src/containers/Full/Full.js | davidchristie/kaenga-housing-calculator | import React, { Component } from 'react';
import Header from '../../components/Header/';
import Sidebar from '../../components/Sidebar/';
import Aside from '../../components/Aside/';
import Footer from '../../components/Footer/';
import Breadcrumbs from 'react-breadcrumbs';
class Full extends Component {
render() {... |
src/components/menu/modals/settings.js | aautem/aa | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Dimensions, Modal, View, Text, Slider, Switch, ActivityIndicator, TouchableOpacity, TouchableHighlight, Picker } from 'react-native';
import { Grid, Col, Row } from ... |
app/javascript/mastodon/components/admin/ReportReasonSelector.js | ashfurrow/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import api from 'mastodon/api';
import { injectIntl, defineMessages } from 'react-intl';
import classNames from 'classnames';
const messages = defineMessages({
other: { id: 'report.categories.other', defaultMessage: 'Other' },
spam: { id: 'report.categ... |
app/components/AuthenticatedComponent.js | scalegray/scalegray |
import React from 'react';
import LoginStore from '../stores/LoginStore';
export default (ComposedComponent) => {
return class AuthenticatedComponent extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/login', {}, {'nextPath' : tra... |
app/containers/LanguageProvider/index.js | perry-ugroop/ugroop-react-dup2 | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
lib/components/user/monitored-trip/trip-status-rendering-strategies/base-renderer.js | opentripplanner/otp-react-redux | import { FormattedMessage } from 'react-intl'
import moment from 'moment'
import React from 'react'
import FormattedDuration from '../../../util/formatted-duration'
/**
* Calculate commonly-used pieces of data used to render the trip status
* component. The monitoredTrip param can be undefined.
*/
export default f... |
src/views/components/ConsoleInterface.js | physiii/home-gateway | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import Api from '../../api.js';
import {getServicesByType} from '../../state/ducks/services-list/selectors.js';
import {getDeviceById} from '../../state/ducks/devices-list/selectors.js';
const LABEL_STYLE = 'color: #888... |
app/routes.js | shawnxusy/git-dashboard | /* jshint esnext:true */
import React from 'react';
import {Route, IndexRoute} from 'react-router';
import alt from './alt';
import App from './components/App';
import Home from './components/Home';
import Stats from './components/Stats';
import Character from './components/Character';
import CharacterList from './com... |
src/media/js/site/containers/devAgreement.js | diox/marketplace-content-tools | /*
Container that allows users who have signed the terms of service to review
its contents.
*/
import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {getTOS, signTOS} from '../actions/tos';
import {Page} from '../components/page';
import TOSIframe from '..... |
generators/app/templates/src/utils/createForm.js | gmmendezp/generator-nyssa-fe | import React, { Component } from 'react';
import { Field, reduxForm } from 'redux-form';
import { style } from 'typestyle';
import { FIELD_NAME, FIELD_TYPE, FIELD_COMPONENTS } from './form';
import Button from 'react-md/lib/Buttons/Button';
/**
* Create a form the following way: createForm(options)
* Options should ... |
webapp-src/src/Login/Buttons.js | babelouest/glewlwyd | import React, { Component } from 'react';
import i18next from 'i18next';
import apiManager from '../lib/APIManager';
import messageDispatcher from '../lib/MessageDispatcher';
class Buttons extends Component {
constructor (props) {
super(props);
this.state = {
config: props.config,
userList: prop... |
app/javascript/mastodon/components/poll.js | yukimochi/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import Motion fr... |
src/components/body.js | chenzejiang/web-response |
import React from 'react';
import { connect } from 'react-redux';
import { changeShowIndex, addCount, changeUrl } from '../actions';
//import { checkUrl } from '';
import { checkUrl } from '../utils/util';
const Body = React.createClass({
getInitialState: function(){
return {year:(new Date()).getFullYear(... |
modules/gui/src/widget/toolbar/panelButtonContext.js | openforis/sepal | import React from 'react'
export const PanelButtonContext = React.createContext()
|
src/components/Header.js | jhkmjnhamster/vcash-electron | import React from 'react'
import { translate } from 'react-i18next'
import { withRouter } from 'react-router-dom'
import { inject, observer } from 'mobx-react'
import { Menu } from 'antd'
/** Required components. */
import WalletLock from './WalletLock'
import WalletUnlock from './WalletUnlock'
@translate(['wallet'],... |
react/features/toolbox/components/Notice.js | parisjulien/arkadin-jitsimeet | /* @flow */
import React, { Component } from 'react';
declare var config: Object;
/**
* Notice react component.
*
* @class Notice
*/
export default class Notice extends Component {
state: Object;
/**
* Constructor of Notice component.
*
* @param {Object} props - The read-only React Compon... |
client/components/image_score.js | lewis831/images | import React from 'react';
const ImageScore = (props) => {
//props.ups is the number of upvotes
//props.downs is the number of downvotes
const { ups, downs } = props;
const upsPercent = `${100 * (ups / (ups + downs))}%`;
const downsPercent = `${100 * (downs / (ups + downs))}%`;
return (
<div>
... |
docs/pages/api-docs/popper.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/popper';
const requireRaw = require.context('!raw-loader!./', false, /\/popper\.md$/);
export default function Page({ docs }... |
src/server/controllers/public.js | cmseguin/react-express-boilerplate | import { match, RouterContext } from 'react-router'
import _ from 'lodash'
import environment from '~/server/services/environment'
import express from 'express'
import minifyHTML from 'express-minify-html'
import { renderToString } from 'react-dom/server'
import React from 'react'
import routes from '~/app/router'
// ... |
src/components/actionLayer/ActionLayer.js | numb86/image-editor | // @flow
import React from 'react';
import DrawLineLayer from './DrawLineLayer';
import EraserLayer from './EraserLayer';
import type {DisplayType} from '../Display';
import type {MouseMoveActionLayerSetting} from '../../state/generateActionLayerSettings';
export const DRAW_LINE: 'drawLine' = 'drawLine';
export cons... |
src/img/book.js | everywherebible/app | import React from 'react';
export default props =>
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 23 23" {...props}>
<path fill="#000" d="M4.2 7.2h12.2V20H4.2z"/>
<path fill="#fff" d="M18 3H7c-.3 0-.5 0-.7.3l-3 3c-.2.2-.3.4-.3.7v11c0 1.7 1.3 3 3 3h9c1.3 0 2.4-.8 2.8-2h.7c1.4 0 2.... |
code/web/node_modules/react-bootstrap/es/ModalBody.js | zyxcambridge/RecordExistence | 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 ... |
TestPage.js | FunctionFoundry/react-partial-table | /**
* Copyright (c) 2015, Peter W Moresi
*/
import React from 'react';
import {Table, Column} from './Table';
import Colors from './CrayolaColors';
/* Write some great components about what data
* this application presents and how it needs to be
* organized.
*/
export default class TestPage extends React.Componen... |
src/components/Page/Page.js | bobbybeckner/ha-catalyst-test | /**
* 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 PropTypes from 'prop-... |
src/js/components/icons/base/CircleInformation.js | odedre/grommet-final | /**
* @description CircleInformation SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textCol... |
app/packs/src/components/PubchemLcss.js | ComPlat/chemotion_ELN | import React from 'react';
import { Button, Row, Col } from 'react-bootstrap';
import PropTypes from 'prop-types';
import { concat, uniqBy } from 'lodash';
import PubchemSigns from './PubchemSigns';
const PubchemLcss = ({
cid, informArray
}) => {
const sourceRoot = 'https://pubchem.ncbi.nlm.nih.gov';
let imgWH =... |
test/integration/build-output/fixtures/with-error/pages/_error.js | azukaru/next.js | import React from 'react'
function Error({ statusCode }) {
return (
<p>
{statusCode
? `An error ${statusCode} occurred on server`
: 'An error occurred on client'}
</p>
)
}
Error.getInitialProps = ({ res, err }) => {
const statusCode = res ? res.statusCode : err ? err.statusCode : 4... |
src/routes/crmaccount/List.js | vincentdd/crm | /**
* Created by wxy on 2017/9/24.
*/
import React from 'react'
import moment from 'moment'
import PropTypes from 'prop-types'
import {
Table,
Icon,
Modal,
} from 'antd'
import {
DropOption
} from 'components'
const confirm = Modal.confirm
const List = ({
onEditItem,
onUpdateStatusItem,
...tableProps
... |
src/Pagination.js | zanjs/react-ui | 'use strict'
import React from 'react'
import classnames from 'classnames'
import { forEach } from './utils/objects'
import { requireCss } from './themes'
requireCss('pagination')
export default class Pagination extends React.Component {
static displayName = 'Pagination'
static propTypes = {
className: Reac... |
src/screen/PowerSource/components/InstrumentCluster.js | wavicles/fossasia-pslab-apps | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Card, Button, Typography, Divider } from '@material-ui/core';
import PlusIcon from '@material-ui/icons/Add';
import MinusIcon from '@material-ui/icons/Remove';
import { withStyles } from '@material-ui/... |
src/components/Header.js | tuanvt/asterixlab | import React from 'react';
import $ from 'jquery';
var logoImage = require('../images/logo.png');
class Header extends React.Component {
constructor(props) {
super(props);
}
componentDidMount(){
}
render () {
return (
<div className="top-border">
<div className="w-row">... |
src/containers/options/Filtering/DomainFilter.js | wrleskovec/thoughtcrime | import React from 'react';
import { connect } from 'react-redux';
import { openModal, searchSites, sortSites, deleteSite, saveChangesModal }
from '~/actions/options.js';
import { fetchSites, } from '~/actions/common.js';
import SearchSiteDB from '~/components/SearchSiteDB.js';
import SearchRecordsBox from '~/componen... |
src/svg-icons/maps/local-movies.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalMovies = (props) => (
<SvgIcon {...props}>
<path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/>
</Svg... |
sketch/src/components/URLGroup.js | preciousforever/sketch-data-populator | import React from 'react'
import './URLGroup.scss'
import Strings, * as STRINGS from '@data-populator/core/strings'
import classNames from 'classnames'
import Title from './Title'
import TextField from './TextField'
import Button from './Button'
import HeadersList from './HeadersList'
import * as OPTIONS from '../libr... |
client/routes.js | JSVillage/military-families-backend | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import MasterPage from './components/MasterPage';
import HomeContainer from './components/home/HomeContainer';
import AboutContainer from './components/about/AboutContainer';
import ContactContainer from './components/contact/ContactContainer';
... |
docs/src/app/components/pages/components/Snackbar/Page.js | frnk94/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import SnackbarReadmeText from './README';
import SnackbarExampleSimple from './... |
docs/app/Examples/elements/Segment/Variations/SegmentExampleAttached.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleAttached = () => (
<div>
<Segment attached='top'>
This segment is on top
</Segment>
<Segment attached>
This segment is attached on both sides
</Segment>
<Segment attached='bottom'>
This seg... |
src/js/components/icons/base/PlatformFreebsd.js | odedre/grommet-final | /**
* @description PlatformFreebsd SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor... |
src/routes/account/Admin/index.js | pmg1989/dva-admin | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { checkPower } from 'utils'
import { ADD, UPDATE, DELETE } from 'constants/options'
import AdminList from './List'
import AdminSearch from './Search'
import AdminModal from './ModalForm'
const namespace = 'accountAdmin'
... |
examples/sharedlinks/sharedlinks-webapp/src/App.js | szopu/django-rest-registration | import React, { Component } from 'react';
import { Router, Route } from 'react-router-dom'
import createBrowserHistory from 'history/createBrowserHistory';
import PropTypes from 'prop-types';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import IconMenu from 'material-ui/Ico... |
client/src/scenes/RoomPage/index.js | RudthMael/chatx | import React from 'react';
import { connect } from 'react-redux';
import { joinRoom, sendMessage } from '../../actions';
import { getRoom } from '../../selectors';
import MessagesList from './MessagesList';
import UsersList from './UsersList';
import './index.css';
class RoomPage extends React.Component {
static pr... |
src/routes/Admin/routes/LessonList/components/LessonListView.js | eunvanz/flowerhada | import React from 'react'
import { Link } from 'react-router'
class LessonListView extends React.Component {
componentDidMount () {
this.props.fetchLessons()
}
render () {
const renderList = () => {
return this.props.lessonList.map(lesson => {
return (
<tr key={lesson.id}>
... |
src/pages/about.js | frintjs/frint.js.org | import React from 'react';
const contributorsJson = require('../static/data/contributors.json');
const About = () => {
const renderContributors = (contributors) => {
if (contributors.length > 0) {
return contributors.map(contributor => (
<div className="column is-one-quarter" key={contributor.logi... |
src/svg-icons/notification/airline-seat-flat.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatFlat = (props) => (
<SvgIcon {...props}>
<path d="M22 11v2H9V7h9c2.21 0 4 1.79 4 4zM2 14v2h6v2h8v-2h6v-2H2zm5.14-1.9c1.16-1.19 1.14-3.08-.04-4.24-1.19-1.16-3.08-1.14-4.24.04-1.16 1.19-1.1... |
app/javascript/mastodon/components/hashtag.js | dwango/mastodon | import React from 'react';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import { Link } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { shortNumberFormat } from '../utils/numbers';
const Hashtag = ({ hashtag... |
assets/jqwidgets/demos/react/app/docking/righttoleftlayout/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js';
import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js';
import JqxDocking from '../../../jqwidgets-react/react_jqxdocking.js';
import JqxCalendar from '../../../jqwidgets-react/react... |
packages/veritone-react-common/src/components/CopyPrompt/index.js | veritone/veritone-sdk | import React from 'react';
import { isString } from 'lodash';
import Clipboard from 'clipboard';
import Button from '@material-ui/core/Button';
import { withStyles } from '@material-ui/styles';
import { node, string, shape, arrayOf, oneOfType, bool, any } from 'prop-types';
import styles from './styles';
class CopyPr... |
app/assets/javascripts/components/story/CollapsedStory/CollapsedStoryStateButton.js | Codeminer42/cm42-central | import React from 'react'
import PropTypes from 'prop-types';
const CollapsedStoryStateButton = ({ action, onUpdate }) => (
<button type="button"
className={`Story__btn Story__btn--${action}`}
onClick={onUpdate}
>
{I18n.t(`story.events.${action}`)}
</button>
);
CollapsedStoryStateButton.propTypes = ... |
packages/@lyra/form-builder/src/inputs/InvalidValueInput/InvalidValueInput.js | VegaPublish/vega-studio | import PropTypes from 'prop-types'
import React from 'react'
import DefaultButton from 'part:@lyra/components/buttons/default'
import Details from '../common/Details'
import styles from './InvalidValueInput.css'
import PatchEvent, {set, unset} from '../../PatchEvent'
import CONVERTERS from './converters'
const setAuto... |
App/Components/PassphraseModal.js | bretth18/PresidioWallet | import { View } from 'react-native';
import React, { Component } from 'react';
import { Container, Content, ListItem, List, Text } from 'native-base';
import { Actions } from 'react-native-router-flux';
class PassphraseModal extends Component {
constructor(props) {
super(props);
// this.dismissModal = t... |
app/javascript/mastodon/features/compose/components/search_results.js | foozmeat/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import AccountContainer from '../../../containers/account_container';
import StatusContainer from '../../../containers/status_container';
import { Link } from 'react-router-dom';
import ... |
cpv-ui/src/components/SideDrawer/DrawerToggleButton.js | zkouba/cinema-program-viewer | import React from 'react';
import './DrawerToggleButton.css'
const DrawerToggleButton = (props) => {
return (
<button className="toggle_button" onClick={props.click}>
<div className="toggle_button_line"></div>
<div className="toggle_button_line"></div>
<div className="toggle_button_line"></div>
</button... |
ui/src/components/workflow/WorkflowMetaList.js | grfeng/conductor | import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import { getWorkflowDefs } from '../../actions/WorkflowActions';
class WorkflowMetaList extends React.Component {
state = {
workflows: ... |
app/javascript/mastodon/features/ui/components/upload_area.js | kirakiratter/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { FormattedMessage } from 'react-intl';
export default class UploadArea extends React.PureComponent {
static propTypes = {
active: PropTypes.boo... |
packages/icons/src/md/maps/Map.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdMap(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M41 6c.55 0 1 .45 1 1v30.24c0 .46-.3.82-.72.97L30 42l-12-4.2-10.69 4.15A1.003 1.003 0 0 1 6 41V10.76c0-.46.31-.82.73-.96L18 6l12 4.2 10.69-4.15c.1-.04.2-... |
src/sub-apps/easy-brew-calculator/components/result-block.js | musicbender/mug-math | import React from 'react';
export default ({
name,
label,
value,
unit,
}) => {
return (
<div className={`result-block-${name}`}>
<p className="label">{label}</p>
<p className="value">{value}</p>
<p className="unit">{unit}</p>
</div>
);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.