path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/editor/monetization-on.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMonetizationOn = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2... |
src/docs/components/chart/AxisDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Chart, { Base, Axis } from 'grommet/components/chart/Chart';
import Anchor from 'grommet/components/Anchor';
import DocsArticle from '../../../components/DocsArticle';
import BackControl from './BackCo... |
src/components/TopBar/UserDropdown.js | niekert/soundify | import React from 'react';
import PopOver from 'components/helpers/Popover';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import styled, { css } from 'styled-components';
import { prop } from 'styled-tools';
import UserInfo from './UserInfo';
const DropdownWrapper = styled.div`
positi... |
lib/components/pages/Forbidden.js | Baqend/coremedia | import React from 'react'
export default function Forbidden () {
return (
<div>
<div className="header">
<h1>Forbidden</h1>
</div>
<div className="content">
<p>
You are not authorized to see the XXX page
</p>
</div>
</div>
)
}
|
app/client.js | eiriklv/redux-blog-example | /* eslint-env browser */
/* global process */
import 'babel/polyfill';
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import HashHistory from 'react-router/lib/HashHistory';
import Root from './Root';
const history = (process.env.NODE_ENV === 'production')
? new BrowserHisto... |
src/icons/Wrench.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Wrench extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M461.9,114.9l-56.5,56.7l-55.1-10l-9.9-55.1l56.5-56.7c-12.7-12.7-30.8-18.5-44.2-17.8c-13.5,0.7-42.3,8.3-64.6,32
c-21.6,22.... |
themes/hy_doo/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | UH-StudentServices/coursepages | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/components/ItemText.js | dominic-blain/viper-visualizer | import React from 'react';
import ReactMarkdown from 'react-markdown';
import { computeOptionsClass } from '../utils';
class ItemText extends React.Component {
render() {
const schema = this.props.schema;
const item = this.props.item;
const contents = this.props.contents;
const textSchema = schema.content[it... |
app/components/EmployeeTable/index.js | dreamweaver1231/frontend | import React from 'react';
import Dimensions from 'react-dimensions';
import { RaisedButton } from 'material-ui';
import { Link } from 'react-router';
import { Table, Column, Cell } from 'fixed-data-table-2';
import * as _ from 'lodash';
const LinkCell = ({ rowIndex, data, field, ...props }) => (
<Cell {...props}>
... |
app/javascript/mastodon/features/notifications/components/filter_bar.js | ashfurrow/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
const tooltips = defineMessages({
mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' },
favourites: { id: '... |
app/common/components/ToolbarTitle/index.js | cerebral/cerebral-reference-app | import React from 'react';
import styles from './styles.css';
function ToolbarTitle(props) {
return (
<span className={styles.title}>
{props.title}
</span>
);
}
export default ToolbarTitle;
|
frontend/src/lib/mui-components/ComboboxField/ComboboxFieldPres.js | jf248/scrape-the-plate | import React from 'react';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core';
import { Input, List } from './components';
const styles = () => ({
root: {
position: 'relative',
display: 'inline-block',
},
});
class ComboboxFieldPres extends React.Component {
render() {
... |
src/svg-icons/places/spa.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesSpa = (props) => (
<SvgIcon {...props}>
<path d="M8.55 12c-1.07-.71-2.25-1.27-3.53-1.61 1.28.34 2.46.9 3.53 1.61zm10.43-1.61c-1.29.34-2.49.91-3.57 1.64 1.08-.73 2.28-1.3 3.57-1.64z"/><path d="M15.49 9.63c... |
blueocean-material-icons/src/js/components/svg-icons/content/next-week.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentNextWeek = (props) => (
<SvgIcon {...props}>
<path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zM10 5h4v2h-4V5zm1 13.5l-1-1 3-3-... |
features/apimgt/org.wso2.carbon.apimgt.admin.feature/src/main/resources/admin/source/src/app/components/ThrottlingPolicies/Shared/CustomRuleDetails.js | Minoli/carbon-apimgt | /*
* Copyright (c) 2018, 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... |
orderflex/assets/testing/js/app.js | victorbrodsky/order-lab | /*
* Welcome to your app's main JavaScript file!
*
* We recommend including the built version of this JavaScript file
* (and its CSS file) in your base layout (base.html.twig).
*/
// yarn encore dev --watch
// any CSS you import will output into a single css file (app.css in this case)
//import '../css/app.css';... |
ReactNative/appB/App.js | tahashahid/cloud-computing-2017 | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
/*import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View
} from 'react-native';
const instructions = Platform.select({
ios: 'Press Cmd+R to reload,\n' +
'Cmd+D or shake for dev menu',
a... |
src/components/MessageBody.js | AdhiJordan/React-Redux-ES6-Front-End- | import React, { Component } from 'react';
import { connect } from 'react-redux'
import uuid from 'node-uuid'
import {createSelector} from 'reselect'
import {bindDispatch} from '../common/util/redux'
import { browserHistory } from 'react-router';
export default class MessageBody extends React.Component {
construct... |
node_modules/react-bootstrap/es/FormControlFeedback.js | Technaesthetic/ua-tools | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
ext/lib/site/home-desafios/topic-card/component.js | RosarioCiudad/democracyos | import React from 'react'
import { Link } from 'react-router'
import moment from 'moment'
export default ({ forum, topic }) => (
<div className='ext-topic-card desafios-topic-card'>
{topic.coverUrl && (
<Link
to={topic.url}
className='topic-card-cover'
style={{ backgroundImage: `ur... |
Libraries/Modal/Modal.js | charlesvinette/react-native | /**
* 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/containers/components/WorldNeighborhoodResult.js | ZephyrPlace/criminal | import React, { Component } from 'react';
import './WorldNeighborhood.css'
/**
*
*
* @class WorldNeighborhoodResult
* @extends {Component}
*/
class WorldNeighborhoodResult extends Component {
render() {
const respect = parseInt(Math.random()*10, 10);
const money = parseInt(Math.random()*10, ... |
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-forms-v3-text-button.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, Tools} from './../common/common.js';
import InputWrapper from './internal/input-wrapper.js';
import TextInput from './internal/text-input.js';
import TextInputMixin from './mixins/text-input-mixin.js'
import ItemList from './internal/item-list.js';
impo... |
frontend/src/Components/Link/SpinnerErrorButton.js | Radarr/Radarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Icon from 'Components/Icon';
import SpinnerButton from 'Components/Link/SpinnerButton';
import { icons, kinds } from 'Helpers/Props';
import styles from './SpinnerErrorButton.css';
function getTestResult(error)... |
app/javascript/mastodon/features/compose/components/search.js | ebihara99999/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
const messages = defineMessages({
placeholder: { id: 'search.placeholder', defaultMessage: 'Search' },
});
class Search extends React.PureComponent {
static propTypes = {
... |
src/pages/contact.js | victormoya/lavergeweb | import React from 'react';
import Template from '../layouts/template';
const ContactPage = () => (
<div style={{ textAlign: 'center' }}>
<Template>
<br />
<h1>Management & Booking</h1>
<p>Ignacio Aznar +34 670 763 759</p>
<a href="mailto:info@carcosarecords.c... |
src/components/ErrorPage.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import Header from './Header';
import Body from './Body';
import Footer from './Footer';
import { defineMessages } from 'react-intl';
import withIntl from '../lib/withIntl';
import { get } from 'lodash';
import Loading from './Loading';
import NotFound from... |
src/Parser/Paladin/Holy/Modules/PaladinCore/LightOfDawn.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import Analyzer from 'Parser/Core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SecondSunrise from '../Traits/SecondSunrise';
class LightOfDawn extends Analyzer {
static d... |
src/svg-icons/av/video-library.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideoLibrary = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8 12.5v-9l6 4.5-6 4.5z"/>
</SvgIcon>... |
modules/dreamview/frontend/src/components/PNCMonitor/StoryTellingMonitor.js | jinghaomiao/apollo | import React from 'react';
import { inject, observer } from 'mobx-react';
import classNames from 'classnames';
import {
Tabs, TabList, Tab, TabPanel,
} from 'react-tabs';
class StoryItem extends React.PureComponent {
render() {
const { name, value } = this.props;
const textClassNames = classNames({
... |
src/svg-icons/action/speaker-notes.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpeakerNotes = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-... |
example/redux-router/client.js | babotech/redux-router-preload | import {ReduxRouter, reduxReactRouter} from 'redux-router'
import {compose, createStore} from 'redux'
import {MOUNT_ID} from './constants'
import {Provider} from 'react-redux'
import React from 'react'
import ReactDOM from 'react-dom'
import createHistory from 'history/lib/createBrowserHistory'
import reducer from './... |
stories/components/pages/provision-list/index.js | one-love/storybook | import React from 'react';
import cssModules from 'react-css-modules';
import styles from './provision-list.scss';
import Layout from '../../layouts/layout';
function ProvisionList() {
return (
<Layout title="Provisions" provision="active">
<div styleName="provision__ok">1341324fb134f134</div>
<div ... |
src/Pagination.js | pombredanne/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import bootstrapUtils, { bsClass } from './utils/bootstrapUtils';
import PaginationButton from './PaginationButton';
import elementType from 'react-prop-types/lib/elementType';
import SafeAnchor from './SafeAnchor';
const Pagination = React.createClass({
... |
src/browser.js | joyc-fe/bisheng-plugin-antd | import React from 'react';
import { Link } from 'react-router';
import toReactComponent from 'jsonml-to-react-component';
import JsonML from 'jsonml.js/lib/utils';
import VideoPlayer from './VideoPlayer';
import ImagePreview from './ImagePreview';
function isHeading(node) {
return /h[1-6]/i.test(JsonML.getTagName(no... |
packages/netlify-cms-widget-map/src/withMapControl.js | netlify/netlify-cms | import React from 'react';
import PropTypes from 'prop-types';
import { ClassNames } from '@emotion/core';
import olStyles from 'ol/ol.css';
import Map from 'ol/Map.js';
import View from 'ol/View.js';
import GeoJSON from 'ol/format/GeoJSON';
import Draw from 'ol/interaction/Draw.js';
import TileLayer from 'ol/layer/Til... |
site/components/PageBody.js | nickknw/react-dnd | import React from 'react';
import './PageBody.less';
export default class PageBody {
static propTypes = {
hasSidebar: React.PropTypes.bool
};
render() {
var {hasSidebar, html, ...props} = this.props;
return (
<div className={`PageBody ${hasSidebar ? 'PageBody--hasSidebar' : ''}`}>
<div... |
demo/Radio.js | szchenghuang/react-mdui | 'use strict';
//#############################################################################
// Stylesheets.
//#############################################################################
//#############################################################################
// Library includes.
//#########################... |
zip/src/src/components/Feedback/Feedback.js | vbdoug/ISOReStack | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback {
render() {
return (
<div className="Feedback">
<div className="Feedba... |
src/components/Register/Register.js | danagilliann/travel_log | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Register.scss';
import Feedback from '../Feedback';
class Register extends React.Component {
constructor(props) {
super(props);
this.state = {
email: "Email",
name: "Name",
password... |
example/src/example.js | as-me/react-burger-menu | import React from 'react';
import BurgerMenu from 'react-burger-menu';
let Demo = React.createClass({
changeMenu(menu) {
this.setState({ currentMenu: menu });
},
getMenu() {
let Menu = BurgerMenu[this.state.currentMenu];
let jsx;
switch (this.props.menus[this.state.currentMenu].items) {
... |
src/parser/paladin/retribution/modules/core/Judgment.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import EnemyInstances from 'parser/shared/modules/EnemyInstances';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import St... |
example/src/components/layout/html.js | mrblueblue/react-collider | import React from 'react'
import {RouteHandler} from 'react-router'
import Head from './head/head'
import Header from './header/header'
import Footer from './footer/footer'
import Sidebar from './sidebar/sidebar'
import stringify from 'json-stable-stringify'
export default class Html extends React.Component {
stat... |
src/components/Icons/Night.js | bogas04/SikhJS | import React from 'react';
import SVG from './SVG';
export default props => (
<SVG viewBox="0 0 913.059 913.059" {...props}>
<g>
<path d="M789.581,777.485c62.73-62.73,103.652-139.002,122.785-219.406c5.479-23.031-22.826-38.58-39.524-21.799 c-0.205,0.207-0.41,0.412-0.615,0.617c-139.57,139.57-367.531,136.879-... |
src/components/Section/index.js | bostrom/harvest-balance | import React from 'react';
import BackgroundImage from './../BackgroundImage';
import './styles.scss';
function Section(props) {
const {
color,
size,
backgroundImage,
backgroundImageOpacity,
children,
className = '',
// Passed to section element
...otherProps
} = props;
return (
... |
test/integration/image-component/noscript/pages/index.js | JeromeFitz/next.js | import React from 'react'
import Image from 'next/image'
const myLoader = ({ src, width, quality }) => {
return `https://customresolver.com${src}?w~~${width},q~~${quality}`
}
const Page = () => {
return (
<div>
<p>noscript images</p>
<Image id="basic-image" src="/basic-image.jpg" width={640} heigh... |
examples/src/app.js | iLikeKoffee/react-select | /* eslint react/prop-types: 0 */
import React from 'react';
import Select from 'react-select';
import CustomRenderField from './components/CustomRenderField';
import MultiSelectField from './components/MultiSelectField';
import RemoteSelectField from './components/RemoteSelectField';
import SelectedValuesField from '... |
imports/features/SomeFeature/components/Thing/Thing.js | E1kCityscapes/cityscape_client | import React, { Component } from 'react';
import Radium from 'radium';
@Radium class Thing extends Component {
callMethod = async () => {
try {
const result = await this.props.someMethod.call({ name: 'Unknown' });
console.log(result);
} catch (e) {
console.error('error!', e);
}
};
... |
examples/auth-with-shared-root/components/Logout.js | tylermcginnis/react-router | import React from 'react'
import auth from '../utils/auth'
const Logout = React.createClass({
componentDidMount() {
auth.logout()
},
render() {
return <p>You are now logged out</p>
}
})
module.exports = Logout
|
src/components/pc_index.js | YMFL/reactNews | /**
* Created by YangQianHui on 2017/4/6.
*/
import React from 'react';
import PCHeader from './pc_header';
import PCFooter from './pc_footer';
import PCNewsContainer from './pc_newsContainer'
import '../style/pc.less'
class PCIndex extends React.Component {
render() {
return (
<div>
<PCHeader></... |
projeto/todo/src/index.js | frbaroni/curso_react | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import registerServiceWorker from './registerServiceWorker'
import todoApp from './reducers'
import App from './components/App'
import '../node_modules/bootstrap/dist/css/bootstrap.min... |
examples/es5/config/env/development.js | lore/lore | /**
* Development environment settings
*
* This file is where you define overrides for any of the config settings when operating under the
* development environment. Development environment is defined as `LORE_ENV=development` or the absence
* of a `LORE_ENV` environment variable.
**/
import _ from 'lodash';
imp... |
wwwroot/app/src/components/MyRecipesPage/ViewRecipe.js | AlinCiocan/FoodPlanApp | import React from 'react';
const ViewRecipe = (props) => {
const { recipe } = props;
return (
<div className="view-recipe">
<h2 className="view-recipe__title"> {recipe.name} </h2>
<div className="view-recipe__img-container">
</div>
<div className="view-... |
src/svg-icons/editor/format-textdirection-l-to-r.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatTextdirectionLToR = (props) => (
<SvgIcon {...props}>
<path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm12 8l-4-4v3H5v2h12v3l4-4z"/>
</SvgIcon>
);
EditorFormatTextdirectionLToR = p... |
presentation/game/components/TileContainer.js | haampie/2048-react-slides | import React, { Component } from 'react';
import Tile from "./Tile";
import GridModel from "../GridModel";
import TileModel from "../TileModel";
export default class TileContainer extends Component {
render() {
return (
<div className="tile-container">
{this.renderTiles()}
</div>
);
}
... |
src/modals/GridModal.js | diogofcunha/react-data-grid-extensions | import React from 'react';
import PropTypes from 'prop-types';
import { Modal, ModalBody, ModalFooter, ModalHeader, Button } from 'elemental';
import '../styles/modules.css';
const GridModal = ({
isOpen,
onClose,
headerProps,
children,
handleSubmit,
isSubmitDisabled }) => {
return (
<Modal i... |
src/components/sub-container.js | stremlenye/react-router-playground | import React from 'react'
import {RouteHandler} from 'react-router'
export default class SubContainer extends React.Component {
static contextTypes = {
router: React.PropTypes.func
}
render () {
return (
<div>
<h1>SubContainer</h1>
ID: {this.context.router.getCurrentParams()... |
examples/dynamic-form-fields/app.js | sdemjanenko/formsy-react | import React from 'react';
import ReactDOM from 'react-dom';
import { Form } from 'formsy-react';
import MyInput from './../components/Input';
import MySelect from './../components/Select';
import MyRadioGroup from './../components/RadioGroup';
import MyMultiCheckboxSet from './../components/MultiCheckboxSet';
const ... |
docs/src/app/components/pages/components/TextField/ExampleCustomize.js | nathanmarks/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
import {orange500, blue500} from 'material-ui/styles/colors';
const styles = {
errorStyle: {
color: orange500,
},
underlineStyle: {
borderColor: orange500,
},
floatingLabelStyle: {
color: orange500,
},
floatingLabelFocu... |
front/src/components/Clubs.js | carlox18/proyecto2 | import React from 'react';
import FlipMove from 'react-flip-move';
import {shuffle} from 'lodash';
import './stylesheets/base.css';
import Chat from"./Chat";
import "./HomePage.css"
import * as query from './getData';
import HeaderButtons from './HeaderButtons';
import ClubChat from './ClubChat';
class Clubs extend... |
docs/src/sections/FormSection.js | jesenko/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function FormSection() {
return (
<div className="bs-docs-section">
<h1 className="page-header">
<Anch... |
src/components/Checkbox/Checkbox-story.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnob... |
app/components/pipeline/schedules/Edit.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import DocumentTitle from 'react-document-title';
import PipelineScheduleUpdateMutation from '../../../mutations/PipelineScheduleUpdate';
import GraphQLErrors from '../../../constants/GraphQLErrors';
import Panel f... |
app/containers/HomePage/index.js | MaleSharker/Qingyan | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { makeSelectRepos, mak... |
app/view/main/stream.js | jnoleau/cocoweet | // @flow
import type {RE} from 'app/flow/misc';
import type {TweetStreamType, State} from 'app/store/state';
import React from 'react';
import {connect} from 'react-redux';
import style from 'app/view/main/stream.less';
import StreamList from 'app/view/main/stream.list';
type StreamPropsType = {stream: TweetStreamTy... |
app/ui/settings/routes.js | gurel/marvin | import React from 'react';
import { Route, IndexRedirect } from 'react-router';
import App from './containers/App';
import SettingsPage from './containers/SettingsPage';
import PersonalSettingsPage from './containers/PersonalSettingsPage';
import CommandsPage from './containers/CommandsPage';
export default function ... |
node_modules/react-router/es6/IndexLink.js | jeffshen18/React-Course | 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; };
import React from 'react';
import Link from './Link';
/**
*... |
14/notes-fa/src/NoteList.js | nanohop/hop_into_react | import React, { Component } from 'react';
import { PageHeader, Button, ListGroup } from 'react-bootstrap';
import FontAwesome from 'react-fontawesome';
import NoteItem from './NoteItem';
class NoteList extends Component {
render() {
return (
<div>
<PageHeader>
Notes
<Button c... |
packages/core/admin/admin/src/content-manager/components/LayoutDndProvider/index.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import LayoutDndContext from '../../contexts/LayoutDnd';
function LayoutDndProvider({
attributes,
buttonData,
children,
goTo,
layout,
metadatas,
moveItem,
moveRow,
onAddData,
relationsLayout,
removeField,
selectedItemName,
setEdit... |
src/native/components/Recipes.js | TeodorKolev/Help | import React from 'react';
import PropTypes from 'prop-types';
import { FlatList, TouchableOpacity, RefreshControl, Image } from 'react-native';
import { Container, Content, Card, CardItem, Body, Text, Button } from 'native-base';
import { Actions } from 'react-native-router-flux';
import Loading from './Loading';
impo... |
src/index.js | benjamindehli/chord-finder-app-test | import React from 'react';
import ReactDOM from 'react-dom';
import 'index.scss';
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() be... |
src/utils/domUtils.js | roadmanfong/react-bootstrap | import React from 'react';
let canUseDom = !!(
typeof window !== 'undefined' &&
window.document &&
window.document.createElement
);
/**
* Get elements owner document
*
* @param {ReactComponent|HTMLElement} componentOrElement
* @returns {HTMLElement}
*/
function ownerDocument(componentOrElement) {
let e... |
src/entypo/TriangleLeft.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--TriangleLeft';
let EntypoTriangleLeft = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M14,5v10l-9-5L14,5z"/>
</EntypoIcon>
);
export default EntypoTriangleLeft;
|
src/icons/Unlocked.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Unlocked extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M86.4,480h339.2c12.3,0,22.4-9.9,22.4-22.1V246c0-12.2-10-22-22.4-22H161v-30.9c0-27.3,9.9-61.1,28.1-80.3l0,0l0-0.3
C206.7... |
resource/js/components/PageList/ListView.js | crow-misia/crowi | import React from 'react';
import Page from './Page';
export default class ListView extends React.Component {
render() {
const listView = this.props.pages.map((page) => {
return <Page page={page} />;
});
return (
<div className="page-list">
<ul className="page-list-ul">
{li... |
dashboard/app/components/SDBMetadata/SDBMetadata.js | tlisonbee/cerberus-management-service | import React from 'react'
import {Component} from 'react'
import './SDBMetadata.scss'
export default class SDBMetadata extends Component {
render() {
const {sdbMetadata} = this.props
return (
<div className="sdb-metadata-container">
<div className="sdb-metadata">
... |
src/searchbar/SearchBar.js | BushrootPDX/app | import React, { Component } from 'react';
export default class SearchBar extends Component {
componentWillUnmount() {
this.props.queryReset();
}
render() {
const { queryField } = this.props;
const { queryChange, queryPlantDb } = this.props;
return (
<form onSu... |
wail-ui/loadingScreens/notFirstTime/components/progress/index.js | N0taN3rd/wail | import React from 'react'
import PropTypes from 'prop-types'
import { onlyUpdateForKeys } from 'recompose'
import { connect } from 'react-redux'
import { CardMedia, CardText } from 'material-ui/Card'
import ProgressSteps from './progressSteps'
import ProgressMessage from './progressMessage'
const stateToProps = state ... |
node_modules/react-bootstrap/es/MediaList.js | hsavit1/gosofi_webpage | 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 ... |
site/src/components/DemoBox.js | w01fgang/elemental | import React from 'react';
import classnames from 'classnames';
import E from '../../../src/constants';
const ALIGN_TRANSFORM = {
'center': 'center',
'left': 'flex-start',
'right': 'flex-end',
};
var DemoBox = React.createClass({
propTypes: {
align: React.PropTypes.oneOf(['center', 'left', 'right']),
children... |
src/index.js | hrasoa/rsk | import createHistory from 'history/createBrowserHistory';
import React from 'react';
import { hydrate } from 'react-dom';
import { Provider } from 'react-redux';
import * as firebase from 'firebase/app';
import 'firebase/auth';
import {
ConnectedRouter,
routerReducer,
routerMiddleware
} from 'react-router-redux';... |
src/components/teams/teams-list-item.js | sunpietro/LeagueManager | import React, { Component } from 'react';
class TeamListItem extends Component {
renderTeam(team) {
return <div/>
}
render() {
return (
<div className="component component--team-list-item">
<h3 className="component--team-list-item__title">{this.props.team.title.... |
app/javascript/mastodon/components/display_name.js | mosaxiv/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class DisplayName extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
};
render () {
const displayNameHtml = { __html: this.props.account.get('display_name_ht... |
examples/sidebar/app.js | opichals/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
import data from './data';
var Category = React.createClass({
render() {
var category = data.lookupCategory(this.props.params.category);
return (
<div>
<h1>{category.name}</h1>
{this.props.children || (
... |
src/components/editor/index.js | auth0/webtask-widget | import Bluebird from 'bluebird';
import Genid from 'genid';
import ComponentStack from 'lib/componentStack';
import React from 'react';
import Sandbox from 'sandboxjs';
import merge from 'lodash.merge';
import {
LogsPane
} from './panes';
import {
CreateCronJobStrategy,
CreateWebtaskStrategy,
EditCron... |
packages/material-ui-icons/legacy/BatteryCharging30Rounded.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M15.67 4H14V3c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1H8.33C7.6 4 7 4.6 7 5.33v9.17h2.83c-.38 0-.62-.4-.44-.74l2.67-5c.24-.45.94-.28.94.24v3.5h1.17c.38 0 .62.4.44.74l-.67... |
docs/app/Examples/elements/Segment/Groups/SegmentRaisedSegmentsExample.js | jcarbo/stardust | import React from 'react'
import { Segment } from 'stardust'
const SegmentRaisedSegmentsExample = () => (
<Segment.Group raised>
<Segment>Left</Segment>
<Segment>Middle</Segment>
<Segment>Right</Segment>
</Segment.Group>
)
export default SegmentRaisedSegmentsExample
|
app/Components/LoadingIndicator/index.js | ecidi/winterfall | /**
* Copyright (c) 2016-present, ecidi.
* All rights reserved.
*
* This source code is licensed under the GPL-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import styles from './styles.css';
class LoadingIndicator extends React.Component {
r... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/ControlLabel.js | Akkuma/npm-cache-benchmark | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
examples/js/custom/show-only-select-button/fully-custom-show-select-button.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-alert: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
con... |
examples/js/hacker-news/client/index.js | reimagined/resolve | import React from 'react'
import { render } from 'react-dom'
import { renderRoutes } from 'react-router-config'
import { Router } from 'react-router'
import { createBrowserHistory } from 'history'
import { createResolveStore, ResolveReduxProvider } from '@resolve-js/redux'
import { getRoutes } from './get-routes'
impor... |
src/svg-icons/action/rowing.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRowing = (props) => (
<SvgIcon {...props}>
<path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-... |
ui/src/components/Init.js | damianmoore/photo-manager | import React from 'react'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import {
ApolloClient,
ApolloLink,
ApolloProvider,
from,
HttpLink,
InMemoryCache,
} from '@apollo/client'
import { RetryLink } from '@apollo/client/link/retry'
import { Router } from 'react-router-dom'
impor... |
src/gm3/components/modal.js | geomoose/gm3 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016-2017 Dan "Ducky" Little
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights... |
app/javascript/flavours/glitch/features/ui/components/bundle.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const emptyComponent = () => null;
const noop = () => { };
class Bundle extends React.Component {
static propTypes = {
fetchComponent: PropTypes.func.isRequired,
loading: PropTypes.func,
error: PropTypes.func,
children: PropTypes.func.i... |
src/pages/index.js | dalgos/dalgos.github.io | import React from 'react'
import Layout from '../components/Layout'
import { graphql } from 'gatsby'
import PostItem from '../components/PostItem'
import Hero from '../components/Hero'
export default function Index({ data }) {
const { edges: posts } = data.allMarkdownRemark
return (
<Layout>
<Hero/>
... |
react/features/settings/components/web/audio/AudioSettingsHeader.js | bgrozev/jitsi-meet | // @flow
import React from 'react';
import { Icon } from '../../../../base/icons';
/**
* The type of the React {@code Component} props of {@link AudioSettingsHeader}.
*/
type Props = {
/**
* The Icon used for the Header.
*/
IconComponent: Function,
/**
* The text of the Header.
*/
... |
app/javascript/mastodon/features/ui/components/modal_root.js | lynlynlynx/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { getScrollbarWidth } from 'mastodon/utils/scrollbar';
import Base from 'mastodon/components/modal_root';
import BundleContainer from '../containers/bundle_container';
import BundleModalError from './bundle_modal_error';
import ModalLoading from './m... |
src/shared/LoadingAnimation.js | cityofasheville/simplicity2 | import React from 'react';
import PropTypes from 'prop-types';
const LoadingAnimation = (props) => {
switch (props.size) {
case 'small':
return (
<div style={{ marginTop: props.marginTop, textAlign: 'center' }}>
<div style={{ marginTop: '32px' }} className="cssload-loader-small">
... |
app/components/Containers.js | jcarva/get_weather | import React from 'react'
export const SingleComponentContainer = (props)=> {
return (
<div className="container">
<div className="row text-center">
{props.children}
</div>
</div>
)
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.