path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/main.js | KNMI/GeoWeb-FrontEnd | import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './store/createStore';
import routesDefinition from './routes';
import 'font-awesome/css/font-awesome.css';
// ========================================================
// Render Setup
// ===============================================... |
src/app/common/UserInterface/components/Radio.js | toxzilla/app | import React from 'react';
import shallowCompare from 'react-addons-shallow-compare';
import {classNames, combine as combineStyle, compose as composeStyle, ease} from 'react-dom-stylesheet';
import FormField from './FormField';
import Switch from './Switch';
import SvgIcon from './SvgIcon';
import TouchRipple from './... |
app/routes/method-type/IndexRoute.js | ryrudnev/dss-wm | import React from 'react';
import Helmet from 'react-helmet';
import { Route } from '../../core/router';
import { Collection as MethodTypes } from '../../entities/MethodType';
import { PageHeader, Row, Col } from 'react-bootstrap';
import NavLink from '../../components/NavLink';
import GridContainer from '../../compone... |
src/components/game/board/game-board.js | aautem/aa | import React from 'react';
import PropTypes from 'prop-types';
import { Col, Row } from 'react-native-easy-grid';
import GameRow from './game-row';
const appSS = require('../../../styles/app');
export default class GameBoard extends React.Component {
render() {
if (!this.props.game.roomName) {
return null... |
src/views/AdminView/AdminView.js | softage0/solid-online-services | import React from 'react'
import { connect } from 'react-redux'
import { updateAccountList, redirectToAccountSettingForm } from '../../redux/account'
import AccountList from '../../components/AccountList/AccountList'
export class Admin extends React.Component {
componentDidMount() {
this.props.updateAccountList(... |
src/components/projectlist.js | kristian76/geezer | /**
*
*
*/
import React from 'react'
import { Link } from 'react-router-dom'
import Project from './project'
class ProjectList extends React.Component {
render () {
let projects = this.props.projects.map((p, i) => {
let styles = {
left: `${(this.props.unit * (p.start - this.props.weeks[0]))}px`,
... |
ui/src/containers/quotationContainer.js | jollopre/mps | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { getQuotation } from '../actions/quotations';
import { getCustomer } from '../actions/customers';
import { getSuppliers } from '../actions/suppliers';
import { resetEnquiries } from '../actions/ui';
import Quotation from '../compon... |
src/native/auth/SignOut.js | VigneshRavichandran02/3io | /* @flow */
import React from 'react';
import buttonsMessages from '../../common/app/buttonsMessages';
import { Button, FormattedMessage } from '../app/components';
import { connect } from 'react-redux';
import { signOut } from '../../common/auth/actions';
// $FlowFixMe
const SignOut = ({ signOut }, { router }) => {
... |
app/react-icons/fa/user-times.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaUserTimes extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m13.7 20q-3.1 0-5.3-2.2t-2.2-5.3 2.2-5.2 5.3-2.2 5.2 2.2 2.2 5.2-2.2 5.3-5... |
new-lamassu-admin/src/components/inputs/base/ToggleButtonGroup.js | lamassu/lamassu-server | import { makeStyles } from '@material-ui/core'
import { ToggleButtonGroup as MUIToggleButtonGroup } from '@material-ui/lab'
import ToggleButton from '@material-ui/lab/ToggleButton'
import React from 'react'
import { H4, P } from 'src/components/typography'
import { backgroundColor, comet } from 'src/styling/variables'... |
src/client/pages/home/page.js | Nord-HI/nord.is | import React from 'react'
import styles from './style.css'
export default function HomePage() {
return (
<div className={styles.content}>
<h1>Nörd.is</h1>
<h2>Vefsíða félags- tölvunarfræði og hugbúnaðarverkfræðinema</h2>
</div>
)
}
|
src/components/posts_new.js | oldirony/react-router-playground | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import { createPost } from '../actions'
import {Link, PropTypes} from 'react-router';
class PostsNew extends Component {
static contextTypes = {
router : PropTypes.object
};
onSubmit(props) {
this.props.crea... |
src/svg-icons/image/monochrome-photos.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageMonochromePhotos = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-3.2L15 3H9L7.2 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 14h-8v-1c-2.8 0-5-2.2-5-5s2.2-5 5-5V7h8v12zm-3... |
client/src/modules/layout/module.js | hritto/feathers-react-test | import React from 'react';
import ReactDOM from 'react-dom';
import Model from '../common/model.js';
import LayoutController from './controller.js';
import MainLayout from '../../components/commons/MainLayout.jsx';
if (module.hot) {
module.hot.accept();
}
const Layout = function(sb) {
'use strict';
//Estado --... |
src/components/Logo/index.js | ayastreb/money-tracker | import React from 'react';
import logo from './logo.svg';
import './index.css';
const Logo = () => (
<div className="logo">
<img src={logo} alt="Money Tracker" />
</div>
);
export default Logo;
|
docs/src/app/components/pages/components/Slider/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 sliderReadmeText from './README';
import SliderExampleSimple from './Exam... |
client/src/javascript/components/icons/StartIcon.js | stephdewit/flood | import React from 'react';
import BaseIcon from './BaseIcon';
export default class Start extends BaseIcon {
render() {
return (
<svg className={`icon icon--start ${this.props.className}`} viewBox={this.getViewBox()}>
<path d="M13.1 9.5L46.9 30 13.1 50.5v-41z" />
</svg>
);
}
}
|
app/javascript/mastodon/containers/account_container.js | pso2club/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { makeGetAccount } from '../selectors';
import Account from '../components/account';
import {
followAccount,
unfollowAccount,
blockAccount,
unblockAccount,
muteAc... |
packages/ringcentral-widgets/components/Spinner/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import styles from './styles.scss';
export default function Spinner({
className,
ringWidth,
}) {
return (
<div className={classnames(styles.root, className)}>
<div className={classnames(styles.padding)} ... |
form/views/FileItem.js | ExtPoint/yii2-frontend | import React from 'react';
import PropTypes from 'prop-types';
import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger';
import Tooltip from 'react-bootstrap/lib/Tooltip';
import {html, locale} from 'components';
const bem = html.bem('FileItem');
export default class FileItem extends React.Component {
st... |
client/src/components/NotFound.js | commandzpdx/habit-calendar | import React from 'react';
// TODO: add styles?
export default function NotFound() {
return (
<div>
<h1>Page not found</h1>
<p>The page you are looking for does not exist!</p>
</div>
);
}
|
app/javascript/mastodon/containers/admin_component.js | MitarashiDango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
const { localeData, messages } = getLocale();
addLocaleData(localeData);
export default class AdminComponent extends React.PureComponent {
static propType... |
views/pages/questsAll/questsAll.js | dimastark/team5 | import React from 'react';
import './questAll.css';
import ReactDOM from 'react-dom';
import Search from '../../blocks/Search/search';
ReactDOM.render(
<div className="search-page">
<h2 className="page__title">Все квесты</h2>
<Search />
</div>,
document.getElementById('root')
);
|
mobile/activities/EditOrder/components/SaveButton.js | weirdsoft/coopcon | import React from 'react'
import * as R from 'ramda'
import { connect } from 'react-redux'
import { compose, setDisplayName } from 'recompose'
import { Button } from 'react-native-paper'
import { hasEditingProducts } from 'Coopcon/data/order/selectors'
import { saveOrder } from 'Coopcon/data/order/actions'
const mapSt... |
frontend/src/routes/Person/components/Person.js | blalasaadri/TechTalent | import React from 'react';
import LoadingIndicator from 'components/LoadingIndicator';
import PersonPanel from 'components/PersonPanel';
class Person extends React.Component {
constructor (props) {
super(props);
props.fetchPerson(props.params.id);
}
render () {
return (
<LoadingIndicator isFet... |
app/index.js | PradeeshSuganthan/Object-Classifier | 'use strict'
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { AppRegistry, Button, Dimensions, Image, StyleSheet, Text, View } from 'react-native';
import Camera from 'react-native-camera';
import axios from 'axios';
import RNFS from 'react-native-fs'
const cloudVisionKey = '';
c... |
index.ios.js | Capoeira-Bordeaux/GingaOctet | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Image,
Text,
View
} from 'react-native';
export default class GingaOctet extends Component {
render() {
return (
... |
src/photos/ducks/albums/index.js | enguerran/cozy-drive | import React from 'react'
import { withRouter } from 'react-router'
import { Query, withMutations } from 'cozy-client'
import AlbumsView from './components/AlbumsView'
import AlbumPhotos from './components/AlbumPhotos'
import PhotosPicker from './components/PhotosPicker'
import AddToAlbumModal from './components/AddToA... |
video_browser/src/components/video_detail.js | unhommequidort/react_redux | import React from 'react';
const VideoDetail = ({video}) => {
if (!video) {
return <div>Loading...</div>;
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
return (
<div className="video-detail col-md-8">
<div className="embed-responsive embed-respons... |
templates/rubix/relay/relay-example/src/common/sidebar.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import {
Sidebar, SidebarNav, SidebarNavItem,
SidebarControls, SidebarControlBtn,
LoremIpsum, Grid, Row, Col, FormControl,
Label, Progress, Icon,
SidebarDivider
} from '@sketchpixy/rubix';
import { Link, withRouter } from 'react-router';
@withRouter
class ApplicationSidebar exten... |
Inspector/js/tree.js | zenzhu/WebDriverAgent | /**
* 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.
*/
import Rea... |
lens-ui/app/components/AppComponent.js | archanah24/lens | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Drawer/ExampleOpenSecondary.js | pbogdan/react-flux-mui | import React from 'react';
import Drawer from 'material-ui/Drawer';
import AppBar from 'material-ui/AppBar';
import RaisedButton from 'material-ui/RaisedButton';
export default class DrawerOpenRightExample extends React.Component {
constructor(props) {
super(props);
this.state = {open: false};
}
handle... |
packages/node_modules/@webex/react-component-md-toggle-input/src/index.js | ciscospark/react-ciscospark | /* eslint no-underscore-dangle: 0 */
import React from 'react';
import {ToggleSwitch} from '@momentum-ui/react';
import * as AdaptiveCard from 'adaptivecards';
import {v4 as UUID} from 'uuid';
import {renderCardElement} from '@webex/react-component-utils';
const valueOn = 'true';
const valueOff = 'false';
/**
* Re... |
packages/material-ui-icons/src/ContactPhone.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm3.85-4h1.64L21... |
frontend/components/navbar/Navbar.js | razoorka/projects | import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './navbar.sass';
class Navbar extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div className={styles.menu}>
<div className={styles.menuI... |
frontend/src/Settings/Tags/Details/TagDetailsModal.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import { sizes } from 'Helpers/Props';
import TagDetailsModalContentConnector from './TagDetailsModalContentConnector';
function TagDetailsModal(props) {
const {
isOpen,
onModalClose,
...otherProps
... |
gatsby-strapi-tutorial/cms/plugins/email/admin/src/containers/NotFoundPage/index.js | strapi/strapi-examples | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a neccessity for you then you can refactor i... |
src/components/ListPanel.js | aaroncraigongithub/jsla-talk | /* global performance */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import {
Card,
CardText,
CardHeader,
} from 'material-ui';
import { updateListItem } from '../actions';
import NextItem from './NextItem';
import List from './List';
class... |
app/javascript/mastodon/components/icon_button.js | 8796n/mastodon | import React from 'react';
import { Motion, spring } from 'react-motion';
import PropTypes from 'prop-types';
class IconButton extends React.PureComponent {
static propTypes = {
className: PropTypes.string,
title: PropTypes.string.isRequired,
icon: PropTypes.string.isRequired,
onClick: PropTypes.fun... |
src/components/home/slideshow.js | plastical/react-theme | /* global PlasticalSettings */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { injectIntl } from 'react-intl';
import classNames from 'classnames';
import DocumentMeta from 'react-document-meta';
import ScrollIntoView from 'scroll-compon... |
src/admin/client/modules/head/components/drawer.js | cezerin/cezerin | import React from 'react';
import { NavLink } from 'react-router-dom';
import messages from 'lib/text';
import Divider from 'material-ui/Divider';
import FontIcon from 'material-ui/FontIcon';
import Drawer from 'material-ui/Drawer';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
impo... |
docs/src/shared/utils/RandomUtils/randomAvatars.js | lwhitlock/grow-tracker | import React from 'react';
import RandomAvatar from 'components/RandomAvatar';
/**
* Creates a list of random avatars.
*
* @param {Number} amt - The amount to generate
* @param {Object} props - Any props to apply to the avatar.
*
* @return {Array.<Component>} a list of random avatars.
*/
export default function... |
app/javascript/mastodon/features/ui/components/image_loader.js | mhffdq/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ZoomableImage from './zoomable_image';
export default class ImageLoader extends React.PureComponent {
static propTypes = {
alt: PropTypes.string,
src: PropTypes.string.isRequired,
previewSrc: PropT... |
newclient/scripts/components/user/disclosure-header/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... |
src/src/Components/RulesEditor/components/Blocks/TriggerState.js | ioBroker/ioBroker.javascript | import React from 'react';
import {withStyles} from '@material-ui/core/styles';
import GenericBlock from '../GenericBlock';
import Compile from '../../helpers/Compile';
import Button from '@material-ui/core/Button';
import Switch from '@material-ui/core/Switch';
import Dialog from '@material-ui/core/Dialog';
import Di... |
src/components/top-menu/index.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2017 Loki Education (Social Enterprise)
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 License, o... |
src/components/FormInputs/renderField.js | JSLancerTeam/crystal-dashboard | import React from 'react';
import TextInput from './TextInput';
import Checkbox from './Checkbox';
import Radio from './Radio';
const renderField = (props) => (
<div>
{ (props.type === 'email' ||
props.type === 'password' ||
props.type === 'text' ||
props.type === 'number') &&
<TextInp... |
client/src/js/components/rooms/SearchField.js | abitlog/retube | import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import { fadeAnimation } from '../../utils/animationSettings';
class SearchField extends React.Component {
static propTypes = {
searchFieldOnChange: React.PropTypes.func.isRequired,
delay: React.PropTypes.num... |
examples/official-storybook/components/FlowTypeButton.js | storybooks/react-storybook | // @flow
import React from 'react';
const Message = {};
interface PropsType {
/** A multi-type prop to be rendered in the button */
label: string;
/** Function to be called when the button is clicked */
onClick?: Function;
/** Boolean representing whether the button is disabled */
disabled?: boolean;
/*... |
src/scenes/influences/search/index.js | PowerlineApp/powerline-rn | //GH36 User should be able to search for other users. Tapping on a user avatar or name loads the user profile
//Each search result should include easy ability to request to follow user
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Actions } from 'react-native-router-flux';
i... |
src/svg-icons/communication/textsms.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationTextsms = (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-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/>
</SvgIcon>
);
Communica... |
src/index.js | razorpay/react-native-razorpay | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableHighlight,
NativeModules,
NativeEventEmitter
} from 'react-native';
import RazorpayCheckout from 'react-native-razorpay';
... |
src/containers/article.js | eduardopoleo/blog-fe | import React, { Component } from 'react';
import { connect } from 'react-redux';
class Article extends Component {
render() {
return(
<div>
<div>{this.props.article.title}</div>
<div>{this.props.article.text}</div>
</div>
)
}
}
export default connect(state => state)(Article);
|
src/components/BundleLink.js | akonwi/bundles | import React from 'react'
const style = {
lineHeight: 1.5,
whiteSpace: 'nowrap'
}
export default function({url, title}) {
const openLink = (e) => {
chrome.tabs.create({url})
}
return (
<li style={style}>
<a href='#' onClick={openLink}>{ title }</a>
</li>
)
}
|
web/src/components/inputs/Input.js | doeg/plantly-graphql | import cx from 'classnames'
import React from 'react'
import style from './input.css'
type Props = {
className?: ?string,
errors?: string[],
isPristine?: boolean,
}
const Input = (props: Props) => {
const { className, errors, isPristine, ...rest } = props
const hasErrors = !isPristine && !!errors && !!error... |
src/components/demo/side_menu.js | VictorQD/react-pdf-viewer | import React from 'react';
import Toggle from 'material-ui/Toggle';
import SidebarSection from './sidebar_section';
import Form from '../helpers/form';
import Input from '../helpers/input';
import DropZone from './drop_zone';
// convert image.pdf[0] image.jpg
const SideMenu = ({ renderToggleHandler, renderToSvg, se... |
src/components/common/icons/ArrowGo.js | chejen/GoodJobShare | import React from 'react';
/* eslint-disable */
const ArrowGo = (props) => (
<svg {...props} width="148" height="148" viewBox="0 0 148 148">
<path fillRule="evenodd" d="M104.7581,108.714073 C103.3114,110.153697 103.3114,112.480659 104.7581,113.920282 C106.2048,115.359906 108.5432,115.359906 109.9899,113.920282 L... |
app/javascript/mastodon/features/compose/components/text_icon_button.js | mosaxiv/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class TextIconButton extends React.PureComponent {
static propTypes = {
label: PropTypes.string.isRequired,
title: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func.isRequired,
ariaControls: PropTypes.s... |
src/Image.js | mmarcant/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import { bsClass, prefix, splitBsProps } from './utils/bootstrapUtils';
const propTypes = {
/**
* Sets image as responsive image
*/
responsive: React.PropTypes.bool,
/**
* Sets image shape as rounded
*/
rounded: React.PropTypes.bool,... |
src/components/LoginPage/LoginPage.js | dirkliu/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react'; // eslint-disable-line no-unused-vars
import './LoginPage.less';
class LoginPage {
static title = 'Log In';
render() {
return (
<div className="LoginPage">
<div className="LoginPage-container">
... |
components/Panel/stories.js | insane-ux/rebulma | // @flow
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { withState } from 'recompose'
import Input from 'components/Input'
import {
Panel,
PanelHeading,
PanelBlock,
PanelTabs,
} from './'
const items = [
'All',
'Success',
'Fail',
]
const MyPanel = withState('selectedTab... |
src/applications/static-pages/facilities/createFacilityPage.js | department-of-veterans-affairs/vets-website | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { fetchFacility } from './actions';
import widgetTypes from '../widgetTypes';
export default async function createFacilityPage(store) {
let facilityID = '';
const detailWidget = document.querySelector(
`... |
src/catalog.js | henyouqian/sale | import React, { Component } from 'react';
import { render } from 'react-dom';
import { SideMenu } from './sideMenu';
import FastClick from "fastclick";
import * as lwUtil from "./lwUtil"
import $ from "jquery"
import "velocity-animate"
import { Dlg, DlgAlert } from"./dlg"
// require("./cardPage.css");
let _rootEl = d... |
utils/typography.js | inthegully/reactPortfolio | import ReactDOM from 'react-dom/server'
import React from 'react'
import Typography from 'typography'
import CodePlugin from 'typography-plugin-code'
import { MOBILE_MEDIA_QUERY } from 'typography-breakpoint-constants'
const options = {
baseFontSize: '18px',
baseLineHeight: 1.45,
scaleRatio: 2.25,
plugins: [ne... |
src/components/common/svg-icons/av/surround-sound.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSurroundSound = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.76 16.24l-1.41 1.41C4.78 16.1 4 14.05 4 12c0-2.05.78-4.1 2.34-5.66l1.4... |
blueocean-material-icons/src/js/components/svg-icons/action/swap-horiz.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSwapHoriz = (props) => (
<SvgIcon {...props}>
<path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"/>
</SvgIcon>
);
ActionSwapHoriz.displayName = 'ActionSwapHoriz';
ActionSwapHoriz.muiName = 'SvgIcon';
expo... |
client/admin/import/NewImportPage.stories.js | subesokun/Rocket.Chat | import React from 'react';
import NewImportPage from './NewImportPage';
export default {
title: 'admin/import/NewImportPage',
component: NewImportPage,
};
export const _default = () => <NewImportPage />;
|
apps/customer/assets/static/js/containers/AuthenticationContainer/index.js | tsurupin/job_search | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as AuthenticationActionCreators from './action';
export default function(ComposedComponent) {
function mapStateToProps({authentication}) {
con... |
fall-colors/components/default/aside.js | mathisonian/idyll | import React from 'react';
class Aside extends React.PureComponent {
render() {
return (
<div className={'aside-container'}>
<div className={'aside'}>
{this.props.children}
</div>
</div>
);
}
}
export default Aside;
|
src/index.js | Mathannus/porvoonkuntoajot | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import InstructionsPage from './InstructionsPage'
import MainPage from './MainPage'
import RouteMapPage from './RouteMapPage'
import Tulokset2016 from './Tulokset2016'
import Tulokset2017 from './Tulokset2017'
import Tulokset2018 from '.... |
src/components/ChoiceView.js | KtuluTeam/Ktulu | import React from 'react'
import {
Text,
View
} from 'react-native'
import { ReadLoud, ManitouInfo } from './TextViews'
import { ChoiceFooter } from './Buttons'
export const ChoiceView = ({onMenu, statueHolder, onYes, onNo, text}) => {
return (
<View>
<ReadLoud text={text} />
<ChoiceFooter onYes=... |
slide/index.js | c0ncept/swipe3d-samples | import 'index.html'
import 'style.sass'
import React from 'react'
import ReactDOM from 'react-dom'
import Application from 'components/Application'
ReactDOM.render(
<Application />,
document.getElementById('application')
)
|
fields/types/localfile/LocalFileField.js | suryagh/keystone | import Field from '../Field';
import React from 'react';
import ReactDOM from 'react-dom';
import { Button, FormField, FormInput, FormNote } from 'elemental';
module.exports = Field.create({
shouldCollapse () {
return this.props.collapse && !this.hasExisting();
},
fileFieldNode () {
return ReactDOM.findDOMNod... |
src/svg-icons/editor/linear-scale.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorLinearScale = (props) => (
<SvgIcon {...props}>
<path d="M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5C3.12 9.5 2 10.62 2 12s1.12 2.5 ... |
src/ModalDialog.js | nickuraltsev/react-bootstrap | /* eslint-disable react/prop-types */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ModalDialog = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* A Callback fired when the header closeButton or non-static backdrop is ... |
src/components/PasswordField/PasswordFeedbackElement.js | djesmond/agileField | import React from 'react';
import PropTypes from 'prop-types';
const styles = {
passIndicator: {
base: {
backgroundColor: '#ff0909',
borderRadius: '3px 0px 0px 3px',
width: '5%',
height: '15px',
},
weak: {
backgroundColor: '#ff0909',
width: '15%',
},
passable: ... |
src/Parser/Monk/Brewmaster/Modules/Spells/BreathOfFire.js | enragednuke/WoWAnalyzer | import React from 'react';
import Wrapper from 'common/Wrapper';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import Enemies from 'Par... |
src/index.js | johncpatterson/Learning-React | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import _ from 'lodash';
import YTSearch from 'youtube-api-search';
import SearchBar from './components/search_bar';
import VideoList from './components/video_list';
import VideoDetail from './components/video_detail';
const API_KEY = 'AIzaSyDDy... |
src/containers/MoneyRequestScreen.js | atixlabs/atm-mobileapp | import React from 'react';
import {
Text,
View,
Image,
StyleSheet,
TextInput,
TouchableNativeFeedback,
} from 'react-native';
import {
Button,
} from 'native-base';
import Loading from '../components/Loading';
import API from '../services/API/API';
import SessionUser from '../state/SessionUser';
import C... |
admin/client/App/elemental/DropdownButton/index.js | benkroeger/keystone | /* eslint quote-props: ["error", "as-needed"] */
import React from 'react';
import { css } from 'glamor';
import Button from '../Button';
function DropdownButton ({ children, ...props }) {
return (
<Button {...props}>
{children}
<span className={css(classes.arrow)} />
</Button>
);
};
// NOTE
// 1: take a... |
js/setup.js | amandamfielding/Coffee-Shop-Mobile | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import App from './App';
import configureStore from './configureStore';
export default class Root extends Component {
constructor() {
super();
this.state = {
isLoading: false,
store: configure... |
src/views/Posters.js | randyf99/resource-center | import React, { Component } from 'react';
class Posters extends Component {
render() {
return <h1>Posters View</h1>;
}
}
export default Posters;
|
node_modules/@material-ui/core/esm/MenuList/MenuList.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import ownerDocument from '../utils/ownerDocument';
import List from '../List';
i... |
src/components/logo.js | SachaG/sg2017 | import React from 'react'
import { LogoBlock, LogoImage } from './styled-components.js';
import { Link } from 'gatsby'
import icons from '../data/icons.yaml'
const Logo = () =>
<LogoBlock>
<Link to={'/'}>
<LogoImage dangerouslySetInnerHTML={{__html: icons.sg}}/>
<span>Sacha Greif</span>
</... |
techCurriculum/ui/solutions/4.6/src/components/CardForm.js | jennybkim/engineeringessentials | /**
* Copyright 2017 Goldman Sachs.
* 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... |
examples/composable-components/redux/src/example-app/index.js | Mercateo/component-check | import React, { Component } from 'react';
import ComposableComponent from '../composable-component';
class ExampleApp extends Component {
render() {
return (
<ComposableComponent />
);
}
}
export default ExampleApp;
|
src/SlickScroll.js | Extensis/slick-scroll | import React, { Component } from 'react';
const { number, func, object } = React.PropTypes;
export default class SlickScroll extends Component {
static propTypes = {
itemCount: number, // How many in your list
rowHeight: number.isRequired,
renderRow: func.isRequired, // Function to render your rows
... |
js/app/currencies/store.js | monetario/web |
'use strict';
import React from 'react';
import Reflux from 'reflux';
import API from '../../api';
import Actions from './actions';
import DEFAULT_PAGE_SIZE from '../../constants';
var Store = Reflux.createStore({
listenables: [
Actions
],
init() {
this.currencies = [];
this.meta = {
"fir... |
app/components/FunctionLogForm/index.js | fission/fission-ui | /**
*
* FunctionLogForm
*
*/
import React from 'react';
import Influx from 'influx';
import FunctionLogItem from 'components/FunctionLogItem';
// import { FormattedMessage } from 'react-intl';
// import commonMessages from 'messages';
const INFLUXDB_DATABASE = 'fissionFunctionLog';
const INFLUXDB_NODEPORT = '3131... |
client/app/containers/AbstractionList/components/root.js | bryanph/Geist | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import TreeNode from './node';
import defaultAnimations from '../themes/animations';
import './styles.scss'
class TreeBeard extends React.Component {
render() {
const { animations, data: propsData, onFocusClick, onToggleExpand ... |
docs/app/index.js | ben174/Semantic-UI-React | import React from 'react'
import { render } from 'react-dom'
import App from './App'
const mountNode = document.createElement('div')
document.body.appendChild(mountNode)
render(<App />, mountNode)
|
lib/Icon/stories/Icon.stories.js | folio-org/stripes-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import withReadme from 'storybook-readme/with-readme';
import readme from '../readme.md';
import AvailableIcons from './AvailableIcons';
import Contexts from './Contexts';
import CustomIcon from './CustomIcon';
import Styles from './Styles';
impor... |
example/src/main.js | DJCordhose/redux-title | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import store from './store'
import HelloMessage from './HelloMessage'
var mountNode = document.getElementById('mount');
ReactDOM.render(
<Provider store={store}>
<HelloMessage />
</Provider>,
mountNod... |
actor-apps/app-web/src/app/components/modals/AddContact.react.js | sfshine/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import addons from 'react/addons';
import ReactMixin from 'react-mixin';
import { Styles, TextField, FlatButton } from 'material-ui';
import AddContactStore from 'stores/AddContactStore';
import AddContactActionCreators from 'actions... |
src/renderer/components/Library/Library.react.js | MrBlenny/museeks | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import FullViewMessage from '../Shared/FullViewMessage.react';
import TracksList from '../Shared/TracksList.react';
import lib from '../../lib';
class Library extends Component {
static propType... |
app/javascript/mastodon/containers/timeline_container.js | esetomo/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { hydrateStore } from '../actions/store';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import PublicTim... |
apps/marketplace/components/BuyerBriefFlow/Overview/OverviewHeaderPublishedActionsList.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
import ClosedDate from 'shared/ClosedDate'
import { rootPath } from 'marketplace/routes'
import { hasPermission } from 'marketplace/components/helpers'
import mainStyles from '../../../main.scss'
import styles from '../Overview.scss'
const OverviewHeaderPu... |
stories/widgets/Navigation.js | Bandwidth/shared-components | import React from 'react';
import { Navigation, Link } from 'components';
export default () => (
<Navigation>
<Link.Wrap to="/">
<Navigation.Title>Bandwidth App</Navigation.Title>
</Link.Wrap>
<Navigation.ItemListStack>
<Navigation.ItemList.Small>
<Link.Wrap newTab to="https://bandwid... |
src/containers/shared-assets/class-selection-wrapper/class-selection-snippet/mobile/import/import-deck.js | vFujin/HearthLounge | import React from 'react';
import DeckImport from '../../../deck-import/deck-import';
const ImportDeckMobile = () => {
return (
<div className="content container__selection">
<DeckImport />
</div>
)
};
ImportDeckMobile.propTypes = {};
ImportDeckMobile.defaultProps = {};
export default ImportDeckMob... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.