path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
webpack/scenes/Subscriptions/Details/SubscriptionDetailInfo.js | Katello/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Table } from 'react-bootstrap';
import { translate as __ } from 'foremanReact/common/I18n';
import subscriptionAttributes from './SubscriptionAttributes';
import subscriptionPurposeAttributes from './SubscriptionPurposeAttributes';
const Subscript... |
examples/with-relay-modern/lib/RelayProvider.js | arunoda/next.js | import React from 'react'
import PropTypes from 'prop-types'
// Thank you https://github.com/robrichard
// https://github.com/robrichard/relay-context-provider
class RelayProvider extends React.Component {
getChildContext () {
return {
relay: {
environment: this.props.environment,
variable... |
src/components/AddProduct.js | ValentinAlexandrovGeorgiev/iStore | import React, { Component } from 'react';
import ajax from 'superagent';
import SERVER_URL from '../config';
class AddProduct extends Component {
constructor(props) {
super(props);
this.state = {
message: '',
quantity: this.props.quantity
};
this.addToBaske... |
lib/ui/components/Settings/Settings.js | 500tech/bdsm | import React from 'react';
import Frame from 'ui/components/common/Frame';
import { trackEvent } from 'ui/Analytics';
import SettingsState from 'ui/states/SettingsState';
import { connectToState } from 'ui/states/connector';
import ImportSection from 'ui/components/Settings/ImportSection';
import ExportSection from 'ui... |
src/components/Helmet.js | radubrehar/evanghelic.ro | import React from 'react';
import Helmet from 'react-helmet';
const TITLE = 'Biserica Cluj - Biserica Creștină după Evanghelie';
const TheHelmet = ({ title, description } = {}) => (
<Helmet>
<html lang="ro-RO" />
<title>{title ? title + ' - ' + TITLE : TITLE}</title>
<meta name="theme-color" content="#0... |
UI/Fields/ListPicker.js | Datasilk/Dedicate | import React from 'react';
import {View, FlatList, StyleSheet, Dimensions, Alert, TouchableHighlight} from 'react-native';
import Text from 'text/Text';
import AppStyles from 'dedicate/AppStyles';
import Textbox from 'fields/Textbox';
import Picker from 'fields/Picker';
import ButtonEdit from 'buttons/ButtonEdit';
impo... |
app/react-icons/fa/chain-broken.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaChainBroken extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m11.3 28.4l-5.7 5.7q-0.2 0.2-0.5 0.2-0.3 0-0.5-0.2-0.2-0.2-0.2-0.5t0.2-0... |
go-betz/src/components/Bet/index.js | FabioFischer/go-betz | import React from 'react';
import { Card, CardTitle, CardText } from 'material-ui';
class Bet extends React.Component {
state = {
expanded: false
};
render() {
const { match, pick, value } = this.props;
const { description, teamA, teamB, winner } = match;
let expandedDescription = `I bet ${val... |
node_modules/react-router/es/IndexRedirect.js | ProjectSunday/rooibus | 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,
string = _React$PropTypes.string,
object = _React$PropTypes.object;
/**
* An <IndexRedir... |
newclient/scripts/components/config/general/disclosure-type/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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, either version 3 of the
Lic... |
node_modules/rc-table/es/TableCell.js | yhx0634/foodshopfront | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
lib/editor/containers/ImageManagerApp.js | jirokun/survey-designer-js | /* eslint-env browser */
import React, { Component } from 'react';
import $ from 'jquery';
import classNames from 'classnames';
import { List } from 'immutable';
import Spinner from 'react-spinkit';
import ImageManager from '../components/editors/ImageManager';
import '../css/bootstrap.less';
/**
* ImageManagerのアプリ
... |
src/App.js | GuillaumeRahbari/react-website | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/... |
webpack/scenes/ModuleStreams/Details/Profiles/ModuleStreamDetailProfiles.js | mccun934/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Table } from 'patternfly-react';
import TableSchema from './TableSchema';
const ModuleStreamDetailProfiles = ({ profiles }) => (
<div>
<Table.PfProvider columns={TableSchema}>
<Table.Header />
<Table.Body rows={profiles} rowKey="... |
src/routes/BusinessPage/UDingHuo/index.js | janeluck/red | /**
* Created by janeluck on 17/6/19.
*/
import React from 'react'
import {Steps, Button, Form, Input} from 'antd';
import _ from 'lodash'
import styles from './index.less'
import MappingTable from '../MappingTable'
const Step = Steps.Step;
const FormItem = Form.Item;
const steps = ['企业', '人员', '客户']
// 企业的对应表单项
c... |
app/javascript/components/collections/list/ButtonCollectionListShowAll.js | avalonmediasystem/avalon | /*
* Copyright 2011-2022, The Trustees of Indiana University and Northwestern
* University. 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/LICENS... |
src/frontend/src/components/counters/RoundCount.js | ziroby/dmassist | import React from 'react';
import './RoundCount.css';
function RoundCount(props) {
return (
<div className="RoundCount">
round: {props.round}
</div>
);
}
export default RoundCount;
|
src/routes.js | transmute-industries/eth-faucet | import React from 'react'
import { Route, IndexRoute, Redirect } from 'react-router'
import {
DEBUG_PATH as DebugRoute,
CREATE_FAUCET_PATH as CreateFaucetRoute,
NAME_FAUCET_PATH as FaucetRoute,
AUTHORIZE_FAUCET_PATH as AuthorizeFaucetRoute
} from './constants/paths'
import CoreLayout from './layouts/CoreLayou... |
services/web/client/containers/search.js | apparatus/mu-app | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import {search} from '../actions/search'
import {SearchResult} from '../components/search-result'
import { Row, Col, RowCol } from '../components/layout'
export const Home = React.createClass({
propTypes: {
dispatch: React.PropTypes.func... |
src/routes.js | SWTPAIN/react-redux-universal-hot-example | import React from 'react';
import {Route} from 'react-router';
import {
App,
Home,
Widgets,
About,
Login,
RequireLogin,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default function(store) {
return (
<Route component={App}>
<Route path="/" component={Hom... |
src/svg-icons/maps/local-convenience-store.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalConvenienceStore = (props) => (
<SvgIcon {...props}>
<path d="M19 7V4H5v3H2v13h8v-4h4v4h8V7h-3zm-8 3H9v1h2v1H8V9h2V8H8V7h3v3zm5 2h-1v-2h-2V7h1v2h1V7h1v5z"/>
</SvgIcon>
);
MapsLocalConvenienceStore = ... |
src/components/Header.js | amit-kulkarni/react-food-order | import React from 'react';
export default function Header(props) {
return (
<div className="container header">
<div className="row align-items-center py-3">
<div className="col-md-10">
<h3>
<i className="fa fa-cutlery mr-3" aria-hidden="true"></i>
<span>Order Food<... |
src/core/scenes.js | CharlesMangwa/Chloe | /* @flow */
import React from 'react'
import { Actions, Scene } from 'react-native-router-flux'
import { AdvertScene } from '@Advert/scenes'
import { ThemesScene } from '@Themes/scenes'
import { ChaptersScene } from '@Chapters/scenes'
import { StoryOverviewScene } from '@StoryOverview/scenes'
import { StoryScene } fro... |
react/src/components/ThumbnailSizes/index.js | sinfin/folio | import React from 'react'
import ThumbnailSize from './ThumbnailSize'
function ThumbnailSizes ({ file, updateThumbnail }) {
const thumbnailSizes = file.attributes.thumbnail_sizes
if (!thumbnailSizes) return null
const keys = Object.keys(thumbnailSizes)
if (keys.length === 0) return null
return (
<React... |
examples/03 - Basic auth/components/Dashboard.js | Kureev/browserify-react-live | import React from 'react';
import auth from '../vendor/auth';
export default class Dashboard extends React.Component {
render() {
var token = auth.getToken();
return (
<div>
<h1>Dashboard</h1>
<p>You made it!</p>
<p>{token}</p>
</div>
);
}
}
|
ext/lib/site/auth-facebook/confirm/component.js | RosarioCiudad/democracyos | import React from 'react'
export default () => {
const user = window.initialState.authFacebookConfirmUser
return (
<div className='container-simple ext-auth-facebook-confirm'>
<p className='title'>Ingresar como:</p>
<div className='avatar'>
<img src={user.avatar} alt={user.displayName} />
... |
node_modules/react-router/es6/RoutingContext.js | superKaigon/TheCave | import React from 'react';
import RouterContext from './RouterContext';
import warning from './routerWarning';
var RoutingContext = React.createClass({
displayName: 'RoutingContext',
componentWillMount: function componentWillMount() {
process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has... |
JotunheimenPlaces/src/components/Button.js | designrad/Jotunheimen-tracking | import React, { Component } from 'react';
import ReactNative from 'react-native';
const {
StyleSheet,
Text,
View,
TouchableOpacity
} = ReactNative;
/**
* Button component
*/
export default class Button extends Component {
/**
* Render a Button
* @return {jsxresult} result in jsx format
*/
ren... |
lib/ui/src/containers/preview.js | storybooks/react-storybook | import { PREVIEW_URL } from 'global';
import React from 'react';
import { Consumer } from '@storybook/api';
import { Preview } from '../components/preview/preview';
const nonAlphanumSpace = /[^a-z0-9 ]/gi;
const doubleSpace = /\s\s/gi;
const replacer = match => ` ${match} `;
const addExtraWhiteSpace = input =>
inp... |
examples/huge-apps/app.js | axross/react-router | /*eslint-disable no-unused-vars */
import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router } from 'react-router'
import stubbedCourses from './stubs/COURSES'
const history = useBasename(createHistory)({
basename: '/huge-apps'
})
const rootRoute = {
component: 'div',
childR... |
routes/Statistic/components/DotInfo.js | YongYuH/Ludo | import React from 'react';
import styled from 'styled-components';
import { translate } from 'react-i18next';
import Card from './Card';
import Button from '../../../components/Button';
const ButtonWrapper = styled.div`
margin-top: 10px;
`;
const Wrapper = styled.div`
`;
const DotInfo = ({
t,
}) => (
<Wrapper>... |
client/components/Layout/Layout.js | kriasoft/FSharp-Server-Template | /**
* ASP.NET Core Starter Kit
*
* 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 Header from './Header';
import s from './Layout.css'... |
src/components/Lottery/Lottery.js | febobo/react-redux-start | import React from 'react'
import dynamicIco from '../../static/images/dynamicIco.png'
import aboutIco from '../../static/images/aboutIco.png'
import classes from '../Lottery/Lottery.scss'
import {i18n} from '../../util/i18n'
import { getBtcWebsocket , btcWebsocket } from '../../actions/Websocket'
import { connect } fro... |
src/components/views/globals/NewVersionBar.js | aperezdc/matrix-react-sdk | /*
Copyright 2015, 2016 OpenMarket Ltd
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, sof... |
frontend/components/indexComponent.js | yograterol/viperid | import React from 'react';
import { connect } from 'react-redux';
import CodeMirror from './codemirror';
import ViperidPanel from './panel';
import Head from './head';
import configureStore from '../store';
class IndexComponent extends React.Component {
render() {
return (
<div>
<Head />
<d... |
app/javascript/mastodon/features/compose/components/poll_button.js | yukimochi/mastodon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
add_poll: { id: 'poll_button.add_poll', defaultMessage: 'Add a poll' },
remove_poll: { id: 'poll_button... |
app/components/FormInput/index.js | JSSolutions/Perfi | import React from 'react';
import T from 'prop-types';
import { ViewPropTypes } from 'react-native';
import Input from '../Input';
import TouchableItem from '../TouchableItem';
import Text from '../Text';
import s from './styles';
import { colors, dimensions } from '../../styles';
const renderIcon = (icon) => {
if ... |
_theme/template/Articles.js | ElemeFE/react-amap | import React from 'react';
import Layout from './Layout';
import SideMenu from './Menu/SideMenu';
import PureArticle from './Content/PureArticle';
export default function Article(props) {
const pageData = props.pageData;
return <Layout route={props.route}>
<div id="doc">
<aside id="aside">
<SideM... |
src/containers/App.js | ashmaroli/jekyll-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { HotKeys } from 'react-hotkeys';
import DocumentTitle from 'react-document-title';
import { fetchConfig } from '../ducks/config';
import { fetchMeta }... |
src/svg-icons/social/share.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialShare = (props) => (
<SvgIcon {...props}>
<path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0... |
views/decoration_toggle.js | williara/black-screen | import React from 'react';
export default React.createClass({
getInitialState() {
return {enabled: this.props.invocation.state.decorate};
},
handleClick(event) {
stopBubblingUp(event);
var newState = !this.state.enabled;
this.setState({enabled: newState});
this.prop... |
docs/src/pages/component-demos/app-bar/ButtonAppBar.js | dsslimshaddy/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import AppBar from 'material-ui/AppBar';
import Toolbar from 'material-ui/Toolbar';
import Typography from 'material-ui/Typography';
import Button from 'material-ui/Button';
import IconButton f... |
app/javascript/mastodon/features/ui/components/upload_area.js | tootsuite/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... |
src/components/GraphControls.js | chrisfisher/graph-editor | // @flow
import React from 'react';
import { connect } from 'react-redux';
import {
addNode,
deleteNodes,
bringNodesToFront,
sendNodesToBack,
addManyNodes,
selectAllNodes,
} from '../actions';
const DEFAULT_NODE_WIDTH = 100;
const DEFAULT_NODE_HEIGHT = 100;
const GraphControls = props => (
<div>
<... |
src/svg-icons/action/search.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSearch = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1... |
src/index.js | cindyqian/BoardGames | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import ReducerManager from './components/ReducerManager'
import {logger, currentAction, asyncDispatchMiddleware, callbackMiddleware} from './components/CommonMiddlewar... |
src/containers/Ecommerce/checkout/billing-form.js | EncontrAR/backoffice | import React from 'react';
import Input from '../../../components/uielements/input';
import Select from '../../../components/uielements/select';
import Checkbox from '../../../components/uielements/checkbox';
import InputBox from './input-box';
import IntlMessages from '../../../components/utility/intlMessages';
const... |
client/src/entwine/TinyMCE_sslink-file.js | silverstripe/silverstripe-asset-admin | /* global tinymce, editorIdentifier, ss */
import i18n from 'i18n';
import TinyMCEActionRegistrar from 'lib/TinyMCEActionRegistrar';
import React from 'react';
import ReactDOM from 'react-dom';
import jQuery from 'jquery';
import ShortcodeSerialiser from 'lib/ShortcodeSerialiser';
import InsertMediaModal from 'containe... |
packages/sandbox/pages/index.js | styled-components/styled-components | import React from 'react';
import styled, { createGlobalStyle } from 'styled-components';
import ButtonExample from '../src/Button.example';
const GlobalStyle = createGlobalStyle`
body {
font-size: 16px;
line-height: 1.2;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-... |
src/svg-icons/image/iso.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageIso = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z"/>
... |
src/Accordion.js | pivotal-cf/react-bootstrap | import React from 'react';
import PanelGroup from './PanelGroup';
const Accordion = React.createClass({
render() {
return (
<PanelGroup {...this.props} accordion>
{this.props.children}
</PanelGroup>
);
}
});
export default Accordion;
|
src/ChipsCatalog.js | material-components/material-components-web-catalog | import React, { Component } from 'react';
import ComponentCatalogPanel from './ComponentCatalogPanel.js';
import {MDCChipSet} from '@material/chips/index';
import './styles/ChipsCatalog.scss';
const ChipsCatalog = () => {
return (
<ComponentCatalogPanel
hero={<ChipsHero />}
title='Chips'
descr... |
js/components/sideBar/index.js | kondoSoft/que_hacer_movil |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Content, Text, List, ListItem, Icon, Thumbnail, View } from 'native-base';
import { setIndex, resetState } from '../../actions/list';
import navigateTo from '../../actions/sideBarNav';
import myTheme from '../../themes/base-them... |
client/src/components/Home/ActivityList.js | seripap/darkwire.io | import React from 'react';
import PropTypes from 'prop-types';
import ChatInput from 'components/Chat';
import Activity from './Activity';
import T from 'components/T';
import { defer } from 'lodash';
import styles from './styles.module.scss';
const ActivityList = ({ activities, openModal }) => {
const [focusChat, ... |
docs/src/app/components/pages/components/AppBar/ExampleIcon.js | kittyjumbalaya/material-components-web | 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... |
docs/src/IntroductionPage.js | chilts/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const IntroductionPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="introduction" />
<... |
src/routes/dashboard/index.js | zhouchao0924/SLCOPY | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Row, Col, Card } from 'antd'
import { NumberCard, Quote, Sales, Weather, RecentSales, Comments, Completed, Browser, Cpu, User } from './components'
import styles from './index.less'
import { color } from '../../utils'
c... |
src/js/components/icons/base/Bookmark.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/routes.js | hdngr/mantenuto | import React from 'react';
import { IndexRoute, Route } from 'react-router';
import {
App,
Home,
Profile,
Talk,
Listen,
Register,
Registered,
Login,
Rooms,
NotFound,
Password
} from 'modules';
import { TryAuth, RequireLoggedIn, RequireNotLoggedIn } from 'modules/Auth';
const Routes = () =>
(
... |
app/javascript/mastodon/components/status.js | pixiv/mastodon | import React from 'react';
import Immutable from 'immutable';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import RelativeTimestamp from './relative_timestamp';
import DisplayName from './disp... |
src/docs/examples/Promotion/ExamplePromotion.js | undefinedist/sicario | import React from 'react'
import Promotion from 'sicario/Promotion'
/** With a custom message: */
export default function ExamplePromotion() {
return (
<div>
{promotions.map((props, index) => (
<Promotion {...props} {...promotionAttr} key={`promotion-${index}`} index={index} />
))}
</div>... |
src/components/auth/signup.js | camboio/ibis | import React from 'react';
import { reduxForm } from 'redux-form';
import * as actions from '../../actions';
class Signup extends React.Component {
handleFormSubmit(formProps){
this.props.signupUser(formProps);
}
renderAlert(){
if(this.props.errorMessage){
return (
<div class... |
react/features/base/react/components/web/Text.js | bgrozev/jitsi-meet | import React, { Component } from 'react';
/**
* Implements a React/Web {@link Component} for displaying text similar to React
* Native's {@code Text} in order to faciliate cross-platform source code.
*
* @extends Component
*/
export default class Text extends Component {
/**
* Implements React's {@link C... |
React.WebPack.Init/src/main.js | yodfz/JS | // 核心
import React from 'react';
import ReactDom from 'react-dom';
// UI
import HelloWorld from './components/HelloWorld';
// class App extends React.Component {
// render() {
// return (<h1>hello world</h1>);
// };
// }
// const App = () => <h1>hello world,const!</h1>;
// export default helloworld;
console.log(... |
packages/veritone-react-common/src/components/DelayedProgress/index.js | veritone/veritone-sdk | // https://material-ui.com/demos/progress/#delaying-appearance
// when props.loading is set to true, will delay for props.delay ms before
// showing a loading indicator.
import React from 'react';
import { number, bool, objectOf, any } from 'prop-types';
import Fade from '@material-ui/core/Fade';
import CircularProgre... |
src/frontend/src/components/LegislatorList.js | open-austin/influence-texas | import React from 'react'
import PaginatedList from 'components/PaginatedList'
import { ImageSquare } from 'styles'
import { capitalize } from 'utils'
import Typography from '@material-ui/core/Typography'
const PARTIES = {
R: 'Republican',
D: 'Democrat',
I: 'Independent',
}
export default function LegislatorsL... |
src/components/layer/layer.js | miaoji/guojibackend | import { Modal, message } from 'antd'
import React from 'react'
import ReactDOM from 'react-dom'
import classnames from 'classnames'
import styles from './layer.less'
const { info, success, error, warning, confirm } = Modal
const layer = {
prefixCls: 'ant-layer',
index: 1,
info,
success,
error,
warning,
... |
js/__tests__/helper.js | erik-sn/webapp | import chai from 'chai'; // eslint-disable-line no-unused-vars
import { JSDOM } from 'jsdom';
import React from 'react';
import { Provider } from 'react-redux';
import { applyMiddleware, createStore } from 'redux';
import reducers from '../src/reducers/root_reducer';
// jsdom configuration
const jsdom = new JSDOM('<... |
src/widgets/ReactApp/index.js | cncjs/cncjs-widget-boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
export default () => {
ReactDOM.render(
<App />,
document.getElementById('viewport')
);
};
|
recipe-server/client/control/components/NoMatch.js | Osmose/normandy | import React from 'react';
import { Link } from 'react-router';
/**
* 404-ish view shown for routes that don't match any valid route.
*/
export default function NoMatch() {
return (
<div className="no-match fluid-8">
<h2>Page Not Found</h2>
<p>Sorry, we could not find the page you're looking for.</... |
src/components/MainHeader/GenericDropdown.js | falmar/react-adm-lte | import React from 'react'
import PropTypes from 'prop-types'
import Link from '../../utils/Link'
import Dropdown from './Dropdown'
import DropdownToggle from './DropdownToggle'
import DropdownMenu from './DropdownMenu'
const GenericDropdown = (props) => {
const {className, open, onToggle, children} = props
const ... |
app/javascript/mastodon/features/home_timeline/components/column_settings.js | tateisu/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... |
src/components/FuelSavingsResults.js | redsheep-io/redsheep.io | import React from 'react';
import PropTypes from 'prop-types';
import NumberFormatter from '../utils/numberFormatter';
// This is a stateless functional component. (Also known as pure or dumb component)
// More info: https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html#stateless-functional-components
// A... |
app/screens/MatchesValidation/index.js | mbernardeau/Road-to-Russia-2018 | import React from 'react'
// eslint-disable-next-line react/prefer-stateless-function
export default class MatchesValidation extends React.PureComponent {
render() {
return <h1>Ceci sera la page de validation des matches.</h1>
}
}
|
node_modules/react-bootstrap/es/Tabs.js | mohammed52/something.pk | 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 ... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js | rafser01/installer_electron | import _transformLib from 'transform-lib';
const _components = {
Foo: {
displayName: 'Foo'
}
};
const _transformLib2 = _transformLib({
filename: '%FIXTURE_PATH%',
components: _components,
locals: [],
imports: []
});
function _wrapComponent(id) {
return function (Component) {
return _transformLib... |
src/svg-icons/communication/phonelink-erase.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkErase = (props) => (
<SvgIcon {...props}>
<path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0... |
src/modules/universal-discovery/components/tab-content/tab.content.panel.component.js | sunpietro/react-udw | import React from 'react';
import PropTypes from 'prop-types';
import './css/tab.content.panel.component.css';
const TabContentPanelComponent = (props) => {
const attrs = {
id: props.id,
className: 'c-tab-content-panel'
};
if (!props.isVisible) {
attrs.hidden = true;
}
re... |
src/js/components/icons/base/Target.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
stories/Stagger.js | unruffledBeaver/react-animation-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, boolean, number } from '@storybook/addon-knobs';
import { Fade, Stagger } from '../src/index';
const exampleArray = ['Example', 'Example', 'Example', 'Example', 'Example'];
storiesOf('Wrappers/Stagger', module)
.addDeco... |
examples/03 Nesting/Drag Sources/Container.js | arnif/react-dnd | import React from 'react';
import SourceBox from './SourceBox';
import TargetBox from './TargetBox';
import Colors from './Colors';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
@DragDropContext(HTML5Backend)
export default class Container {
render() {
... |
src/pages/index.js | ScottDowne/donate.mozilla.org | import fs from 'fs';
import React from 'react';
import Optimizely from '../components/optimizely.js';
import OptimizelySubdomain from '../components/optimizelysubdomain.js';
import Path from 'path';
import Pontoon from '../components/pontoon.js';
var Index = React.createClass({
render: function() {
var metaData ... |
docs/src/app/components/pages/components/RadioButton/Page.js | ArcanisCz/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 radioButtonReadmeText from './README';
import RadioButtonExampleSimple fr... |
addons/themes/solid-state/layouts/Home.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import Menu from '../includes/Menu';
let Home = React.createClass({
componentDidMount(){
require('../assets/css/main.css')
},
... |
src/renderer/controllers/preferences.js | marcus-sa/Venobo | import {ipcRenderer} from 'electron'
import React from 'react'
import {dispatch} from '../lib/dispatcher'
import PreferencesPage from '../pages/preferences'
// Controls the Preferences page
export default class PreferencesController extends React.Component {
constructor(props) {
super(props)
this.state = ... |
components/base/TopNavigation/TopNavigation.js | CarbonStack/carbonstack | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import {
actions as sessionActions
} from '../../../lib/redux/modules/session'
import NewButton from './NewButton'
import LogoLink from './LogoLink'
import Profile from './Profile'
import SignInButton from './Si... |
app/components/Contact.js | leckman/chapterbot | import React from 'react';
import { connect } from 'react-redux'
import { submitContactForm } from '../actions/contact';
import Messages from './Messages';
class Contact extends React.Component {
constructor(props) {
super(props);
this.state = { name: '', email: '', message: '' };
}
handleChange(event) ... |
src/components/svg/Goose.js | JoeTheDave/onitama | import PropTypes from 'prop-types';
import React from 'react';
export const Goose = ({ fillColor }) => (
<svg width="210px" height="130px" viewBox="0 0 380 229" preserveAspectRatio="xMidYMid meet">
<g transform="translate(0, 229) scale(0.1, -0.1)" fill={fillColor} stroke="none">
<path d="M2775 2260 c-3 -5 ... |
src/web/components/Footer.js | TeodorKolev/Help | import React from 'react';
import { Row, Col } from 'reactstrap';
const Footer = () => (
<footer className="mt-5">
<Row>
<Col sm="12" className="text-right pt-3">
<p>
Learn More on the <a target="_blank" rel="noopener noreferrer" href="https://github.com/mcnamee/react-native-starter-kit">... |
src/index.js | jsk7/personal-web | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack t... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Base/Footer/Footer.js | lakmali/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
webpack/containers/Application/index.js | johnpmitsch/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { BrowserRouter as Router } from 'react-router-dom';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { orgId } from '../../services/api';
import * as actions from '../../scenes/Organizations/Or... |
src/interface/icons/ViralContent.js | yajinni/WoWAnalyzer | import React from 'react';
// Viral Content by Edwin Prayogi M from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}>
<g>
<path d="M49.9931641,18.8754883c0.6904297,0,1.25-0.5595703,1.25-1.25V12.5c0-0.6904297-0.559570... |
src/components/Todo/Form.js | elemus/react-redux-todo-example | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Form extends Component {
constructor(props) {
super(props);
this.state = { description: '' };
this.onInput = this.onInput.bind(this);
this.onSubmit = this.onSubmit.bind(this);
}
onInput(e) {
this.setState({... |
client/app/components/Input/index.js | bryanph/Geist | import _ from 'lodash'
import React from 'react'
import './styles.css'
export function controlled(InputComponent) {
/*
* HOF for creating a controlled input
* // TODO: should this also merge in value prop if set? - 2016-08-05
*/
class ControlledInput extends React.Component {
constructor... |
examples/search-form/modules/SearchForm.js | alexeyraspopov/react-coroutine | import React from 'react';
import Coroutine from 'react-coroutine';
import SearchAPI from './SearchAPI';
/* A coroutine becomes a React component via this wrapper. */
export default Coroutine.create(SearchForm);
/* Async generator is used as a component that represents a stateful component
with search results. The... |
pages/showcase.js | styled-components/styled-components-website | import { withRouter } from 'next/router';
import React from 'react';
import { CSSTransition, TransitionGroup } from 'react-transition-group';
import styled, { css, keyframes } from 'styled-components';
import { sortedProjects } from '../companies-manifest';
import Footer from '../components/Footer';
import Image from '... |
client/src/components/post/EditPost.js | adityasharat/react-readable | import _ from 'lodash';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { fetchAllPosts, updatePost } from '../../actions/PostActions';
import { fetchCommentForPost } from '../../actions/CommentActions';
class EditPost extends Component ... |
example/App.js | ksincennes/react-native-maps | import React from 'react';
import {
Platform,
View,
StyleSheet,
TouchableOpacity,
ScrollView,
Text,
Switch,
} from 'react-native';
import { PROVIDER_GOOGLE, PROVIDER_DEFAULT } from 'react-native-maps';
import DisplayLatLng from './examples/DisplayLatLng';
import ViewsAsMarkers from './examples/ViewsAsMark... |
docs/src/stories/implementations.js | rhalff/storybook | import React from 'react';
import { values } from 'lodash';
import Homepage from '../components/Homepage';
import Header from '../components/Header';
import Heading from '../components/Homepage/Heading';
import Demo from '../components/Homepage/Demo';
import Platforms from '../components/Homepage/Platforms';
import Ma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.