path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/routes/common/components/RadiumContainer.js | luandro/uor-web | import React from 'react';
import Radium from 'radium';
const RadiumContainer = ({children}) => children
export default Radium(RadiumContainer)
|
stories/components/pages/cluster/index.js | one-love/storybook | import React from 'react';
import cssModules from 'react-css-modules';
import styles from './cluster.scss';
import Layout from '../../layouts/layout';
function Cluster() {
return (
<Layout cluster="active">
<div>
<div styleName="label">
username:
</div>
<div styleName="ite... |
app/containers/LocaleToggle/index.js | sasidharkanumuri/Lambda | /*
*
* LanguageToggle
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import Toggle from 'components/Toggle';
import Wrapper from './Wrapper';
import messages from './messages';
import { appLocales } from '../../i18n';
import { changeLocale } from ... |
app/index.js | lanjingling0510/react-template | import './main.css';
import 'babel-polyfill';
import config from '../config.json';
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {Router, Route, IndexRoute} from 'react-router';
import {syncReduxAndRouter} from 'redux-simple-router';
import createBrowserHistor... |
hub-ui/src/app/DevTools.js | lchase/hub | import React from 'react';
// Exported from redux-devtools
import { createDevTools } from 'redux-devtools';
// Monitors are separate packages, and you can make a custom one
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
// createDevTools takes a monitor an... |
src/components/PhotoCredit.js | duongdev/unsplash-web-screensaver | import React from 'react';
import PropTypes from 'prop-types';
import FA from 'react-fontawesome';
const PhotoCredit = ({
photo, style, onRefreshPhoto, loading, limit, remaining
}) => (
<div style={{
color: '#FFF',
fontSize: 12,
textShadow: '#000 0 0 12px',
position: 'fixed',
top: 10, left: 10... |
fields/types/cloudinaryimage/CloudinaryImageField.js | wmertens/keystone | import xhr from 'xhr';
import React from 'react';
import ReactDOM from 'react-dom';
import Field from '../Field';
import Select from 'react-select';
import { Button, FormField, FormInput, FormNote } from 'elemental';
import Lightbox from '../../../admin/client/components/Lightbox';
import classnames from 'classnames';
... |
src/pages/04-fr-unit.js | MozillaDevelopers/playground | import React from 'react';
import Redirect from '../components/Redirect';
export default () => {
return (
<Redirect url="/css-grid/04-fr-unit" />
);
};
|
src/svg-icons/editor/format-size.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatSize = (props) => (
<SvgIcon {...props}>
<path d="M9 4v3h5v12h3V7h5V4H9zm-6 8h3v7h3v-7h3V9H3v3z"/>
</SvgIcon>
);
EditorFormatSize = pure(EditorFormatSize);
EditorFormatSize.displayName = 'EditorFo... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js | PanJ/SimplerCityGlide | 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... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js | RobzDoom/frame_trap | /**
* 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... |
src/views/Blocks/Link.js | abachman/my-new-tab | import React from 'react'
import PropTypes from 'prop-types'
import ReactDOM from 'react-dom'
import { setImageOnCanvas } from '../../lib/images'
import { GridBlockWrapper } from './Base'
class LinkImage extends React.Component {
componentDidUpdate() {
this.renderImage()
}
renderImage() {
const canvas... |
src/routes/login/Login.js | kevinchau321/TReactr | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
src/client/js/admin/AddMatch.js | GoodBoy123/crendorianinvitational | import React from 'react';
import TeamSelector from './match/TeamSelector';
import Kics from './match/Kics';
import KickEvents from './match/KickEvents';
import Turns from './match/Turns';
class AddMatch extends React.Component {
constructor(props) {
super(props);
this.state = {
team: 'Passing Pipedre... |
src/entry.js | phil-linnell/tulipbookshop | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
ReactDOM.render(<App />, document.querySelector('.wrapper'));
|
js/components/sideBar/index.js | kwoumn3/khemet |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Image } from 'react-native';
import { Container, Content, Text, Icon, List, ListItem } from 'native-base';
import navigateTo from '../../actions/sideBarNav';
import styles from './style';
const singUp = require('../../../images... |
analysis/warlockdestruction/src/modules/talents/Flashover.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
import SPELLS from 'common/SPELLS';
import { formatThousands, formatNumber, formatPercentage } from 'common... |
dva/wd/src/routes/CartPage.js | imuntil/React | import React from 'react';
import { connect } from 'dva';
import { WhiteSpace, SwipeAction } from 'antd-mobile'
import QueueAnim from 'rc-queue-anim'
import _ from 'lodash'
import Like from '../components/Like/Like.js'
import styles from './CartPage.css';
import { IMGURL } from '../constant'
import PageLoading from '..... |
React Native/Demos/douApp/iOS_views/common/webview.js | AngryLi/ResourceSummary | /**
* Created by fulihui2 on 16/9/8.
*/
import React from 'react';
import Util from './../common/util';
import Header from './header';
import {
WebView,
View
} from 'react-native';
export default class MyWebView extends React.Component {
render() {
return (
<View {...this.props}>
... |
src/svg-icons/action/visibility.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionVisibility = (props) => (
<SvgIcon {...props}>
<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-... |
lib/client/components/TorrentApp.react.js | imsnif/wtorrent | "use strict";
import React from 'react';
import MagnetSection from './MagnetSection.react.js';
import ClientSection from './ClientSection.react.js';
import TorrentSection from './TorrentSection.react.js';
Object.values = function (obj) { return Object.keys(obj).map( function (key) { return obj[key] }) }
export de... |
app/javascript/mastodon/features/ui/components/image_loader.js | haleyashleypraesent/ProjectPrionosuchus | import React from 'react';
import PropTypes from 'prop-types';
class ImageLoader extends React.PureComponent {
static propTypes = {
alt: PropTypes.string,
src: PropTypes.string.isRequired,
previewSrc: PropTypes.string.isRequired,
width: PropTypes.number.isRequired,
height: PropTypes.number.isReq... |
map/src/components/Dashboard/DashSummary.js | Vizzuality/care_usa | 'use strict';
import './dash-summary-styles.postcss';
import DashSummaryModel from './DashSummaryModel';
import FiltersModel from '../../scripts/models/filtersModel';
import React from 'react';
import _ from 'underscore';
import moment from 'moment';
import utils from '../../scripts/helpers/utils';
class DashSummary... |
src/components/common/svg-icons/action/toll.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToll = (props) => (
<SvgIcon {...props}>
<path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.5... |
packages/react-static-plugin-evergreen/src/node.api.js | nozzle/react-static | import React from 'react'
import { extractStyles } from 'evergreen-ui'
export default () => ({
headElements: elements => {
const { css, hydrationScript } = extractStyles()
return [
...elements,
<style id="evergreen-css" dangerouslySetInnerHTML={{ __html: css }} />,
hydrationScript,
]
... |
webapp/src/components/Header.js | jensraaby/restbucks-finatra | import React, { Component } from 'react';
import { Navbar, MenuItem, NavDropdown, Nav, NavItem } from 'react-bootstrap';
export default class Header extends Component {
render() {
return (
<Navbar>
<Navbar.Header>
<Navbar.Brand>
<a href="#">Welcome to RestBucks</a>
</Navbar.Brand>... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/ModalHeader.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
tag: tagPropType,
wrapTag: tagPropType,
toggle: PropTypes.func,
className: PropTypes.string,
cssModule: PropTypes.object,
children:... |
cuttlebelle/code/header.js | staystatic/staystatic | import PropTypes from 'prop-types';
import Slugify from 'slugify';
import React from 'react';
/**
* The header component
*/
const Header = ({ left, right, _relativeURL, _ID }) => (
<div id="header">
<table width="100%">
<td>
<a href={ _relativeURL( left.url, _ID ) }>{ left.title }</a>
</td>
<td styl... |
examples/todomvc/containers/Root.js | eraviart/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import rootReducer from '../reducers';
const store = createStore(rootReducer);
export default class Root extends Component {
render() {
return (
<Provider... |
src/elements/BootButton/BootButton.js | shengnian/shengnian-ui-react | import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import { mapToCssModules } from '../../lib'
const propTypes = {
active: PropTypes.bool,
block: PropTypes.bool,
color: PropTypes.string,
disabled: PropTypes.bool,
outline: PropTypes.bool,
tag: PropTypes.oneOfType([PropT... |
src/stores.js | pearofducks/foodProcessor | import React from 'react';
import { observable, computed, autorun, action } from 'mobx';
import 'whatwg-fetch';
import marked from 'marked';
class Recipe {
name;
what;
how;
constructor(name, what, how) {
this.name = name;
this.what = what;
this.how = marked(how.join("\n\n"));
}
slug() {
re... |
imports/ui/components/index.js | jiyuu-jin/openlens | import React from 'react'
import {Link} from 'react-router-dom';
const IndexPage = () =>({
render(){
return (
<div>
<br/>
<br/>
<br/>
<div className="home-banner z-depth-5">
<center><h1 className="grey-text text-li... |
src/routes.js | fallrisk/Tally | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
client/src/app/slot-fill/FillContext.js | camunda/bpmn-io-modeler | /**
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership.
*
* Camunda licenses this file to you under the MIT; you may not use this ... |
client/src/components/landing/artistLand.js | kat09kat09/GigRTC | import React from 'react';
import { Component } from 'react';
import RaisedButton from 'material-ui/lib/raised-button';
let signup = {
}
let viewActive = {
}
export default class ArtistLand extends Component{
render(){
return(
<div>
<div className="art-land-wrap">
<div className='left'>... |
examples/basic/simple_usage/modal.js | springload/react-modal | import React from 'react';
import Modal from 'react-modal';
export default props => {
const {
title, isOpen, askToClose,
onAfterOpen, onRequestClose, onChangeInput
} = props;
return (
<Modal
id="test"
contentLabel="modalA"
closeTimeoutMS={150}
isOpen={isOpen}
onAfterOpe... |
src/svg-icons/maps/traffic.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTraffic = (props) => (
<SvgIcon {...props}>
<path d="M20 10h-3V8.86c1.72-.45 3-2 3-3.86h-3V4c0-.55-.45-1-1-1H8c-.55 0-1 .45-1 1v1H4c0 1.86 1.28 3.41 3 3.86V10H4c0 1.86 1.28 3.41 3 3.86V15H4c0 1.86 1.28 3.41... |
src/Navigation.js | bwasilewski/react-playground | import React from 'react'
import './Navigation.css'
class Navigation extends React.Component {
render() {
return(
<div className="navigation tabs">
<nav className="tabs-nav">
<a href="/" className={this.props.path === '/' || this.props.path === '/home' ? 'act... |
example/components/PageHeader.react.js | Neophy7e/react-bootstrap-typeahead | import React from 'react';
import {Nav, NavItem, Navbar} from 'react-bootstrap';
const PageHeader = () => (
<Navbar className="bs-docs-nav" inverse staticTop>
<Navbar.Header>
<Navbar.Brand>
React Bootstrap Typeahead
</Navbar.Brand>
<Navbar.Toggle />
</Navbar.Header>
<Navbar.Coll... |
src/App.js | dmed256/site | import React from 'react';
import { Divider, withStyles } from 'material-ui';
import { Router, Route, Switch } from 'react-router-dom';
import Header from './Header';
import { About, Contact, Home, Projects } from './pages';
import { getHistory } from './utils';
const App = ({ classes }) => (
<Router history={getHi... |
spec/root.js | rahultaglr/taglr-toolbox | /* global VERSION */
import '../components/commons.scss';
import React from 'react';
import AppBar from '../components/app_bar';
import Autocomplete from './components/autocomplete';
import AppBarTest from './components/app_bar';
import Avatar from './components/avatar';
import FontIcon from './components/font_icon';
i... |
examples/FacebookTabsExample/DynamicExample.js | franvera/react-native-scrollable-tab-view | import React from 'react';
import {
Text,
TouchableHighlight,
} from 'react-native';
import TimerMixin from 'react-timer-mixin';
import ScrollableTabView, { ScrollableTabBar, } from 'react-native-scrollable-tab-view';
const Child = React.createClass({
onEnter() {
console.log('enter: ' + this.props.i); // esl... |
analysis/demonhunterhavoc/src/modules/features/Checklist/Component.js | anom0ly/WoWAnalyzer | import SPELLS from 'common/SPELLS';
import { SpellLink } from 'interface';
import Checklist from 'parser/shared/modules/features/Checklist';
import GenericCastEfficiencyRequirement from 'parser/shared/modules/features/Checklist/GenericCastEfficiencyRequirement';
import PreparationRule from 'parser/shared/modules/featur... |
components/admin/scorecontrol/ScoreControl.js | nvbf/pepper | import React from 'react';
import styled from 'styled-components';
import { transparentize } from 'polished';
import type { Team } from '../../../types/types';
import color from '../../../libs/color';
import { getLastSet, isSetFinished } from '../../../libs/setUtils';
import SetRow from './SetRow';
import CurrentSetRow... |
app/client/src/components/Layout/components/Footer/Footer.js | uprisecampaigns/uprise-app | import React from 'react';
import Link from 'components/Link';
import upriseLogo from 'img/uprise-logo.png';
import s from 'styles/Footer.scss';
function Footer(props) {
return (
<div className={s.outerFooterContainer}>
<div className={s.footer}>
<div className={s.footerRow}>
<div clas... |
example/src/drawer/playground.js | kosiakMD/react-native-elements | import Expo from 'expo';
import React from 'react';
import { StackNavigator } from 'react-navigation';
import { Icon } from 'react-native-elements';
import Playground from '../views/playground';
const PlaygroundDrawerItem = StackNavigator({
Playground: {
screen: Playground,
navigationOptions: ({ navigation ... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | liamhawkes/ukvi_services_govuk | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/Nav.js | babizhu/webApp | /**
* Created by liu_k on 2015/11/16.
*/
import React from 'react';
import {Row, Col,Icon,Tree } from 'antd';
import IconButton from './IconButton';
import ReactDom from 'react-dom'
const TreeNode = Tree.TreeNode;
import {Router,Route,Link} from 'react-router'
import App from './App';
class Nav extends React.Compo... |
stories/dashboard.js | bodiddlie/npk-ui | import React from 'react'
import { BrowserRouter, Link } from 'react-router-dom'
import { ThemeProvider } from 'styled-components'
import 'font-awesome/css/font-awesome.css'
import { Dashboard } from '../src'
import logo from './cog_logo.png'
export function Basic() {
return (
<BrowserRouter>
<Dashboard
... |
examples/dynamic-fields/index.js | theadam/react-inform | import './index.css';
import '../foundation.css';
import React, { Component } from 'react';
import { render } from 'react-dom';
import alertify from 'alertify.js';
import {
form,
DisabledFormSubmit,
FeedbackFormSubmit,
ResetFormButton,
} from 'react-inform';
alertify.logPosition('top right');
function Labele... |
node_modules/react-bootstrap/es/CarouselCaption.js | vitorgomateus/NotifyMe | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
react-youtube-adaptive-loading/src/components/VideoInfoBox/VideoInfoBox.js | GoogleChromeLabs/adaptive-loading | import React from 'react';
import './VideoInfoBox.scss';
import {Image, Button, Divider} from 'semantic-ui-react';
import Linkify from 'react-linkify';
import {getPublishedAtDateString} from '../../services/date/date-format';
import {getShortNumberString} from '../../services/number/number-format';
export class VideoI... |
frontend/js/pages/Profile.js | antoniovj1/infraestructura_virtual_ugr | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Grid from 'material-ui/Grid';
import UserLeft from '../components/profile/UserLeft';
import Total from '../components/profile/Total';
import LastMuscleStats from ... |
src/js/components/icons/base/SocialLinkedinOption.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/components/author-page/author-data.js | twreporter/twreporter-react | import mq from '../../utils/media-query'
import PropTypes from 'prop-types'
import React from 'react'
import Sizing from '../sizing'
import styled from 'styled-components'
// @twreporter
import Image from '@twreporter/react-article-components/lib/components/img-with-placeholder'
const Container = styled.div`
margin:... |
components/Page.js | jordancappy/jorder | import React from 'react';
import update from 'react/lib/update';
import QuestionList from './QuestionList';
import Question from './Question';
import { connect } from 'react-redux'
import { createQuestion, moveQuestion, updateQuestion } from '../actions'
class Page extends React.Component {
constructor(props) {
... |
src/svg-icons/notification/phone-locked.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhoneLocked = (props) => (
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5... |
packages/@lyra/state-router/demo-server/components/ProductCounter.js | VegaPublish/vega-studio | // @flow
import type {Router} from '../../src/components/types'
import React from 'react'
import withRouterHOC from '../../src/components/withRouterHOC'
type Props = {
router: Router
}
export default withRouterHOC((props: Props) => {
const {router} = props
return (
<div>
<h1>My parent never updates. S... |
frontend/src/components/profile/root.js | 1905410/Misago | import React from 'react'; // jshint ignore:line
import { connect } from 'react-redux';
import BanDetails from './ban-details'; // jshint ignore:line
import { Posts, Threads } from './feed'; // jshint ignore:line
import Followers from './followers'; // jshint ignore:line
import Follows from './follows'; // jshint ignor... |
public/javascript/components/subPictureHeader.js | fireaxil/anglican-wny | import React from 'react'
import { withStyles } from 'material-ui/styles'
import PropTypes from 'prop-types'
import Typography from 'material-ui/Typography'
import Divider from 'material-ui/Divider'
const styles = theme => ({
root: theme.textContent.root,
text: theme.textContent.text,
centerText: theme.textConte... |
src/containers/Interfaces/CategoricalBin.js | codaco/Network-Canvas | import React from 'react';
import { compose } from 'redux';
import { connect } from 'react-redux';
import { withStateHandlers } from 'recompose';
import PropTypes from 'prop-types';
import withPrompt from '../../behaviours/withPrompt';
import PromptSwiper from '../PromptSwiper';
import CategoricalList from '../Categori... |
client/modules/User/components/UserNavBar/UserNavBar.js | lordknight1904/bigvnadmin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Navbar, Nav, NavItem, MenuItem, Pagination, FormControl, Button } from 'react-bootstrap';
import { setSearch, setMaxPage, setCurrentPage, fetchUserSearch } from '../../UserActions';
import { get... |
packages/material-ui-icons/src/Radio.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2H8.3l8.26-3.34L15.88 1 3.24 6.15zM7 20c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm13-8h-2v-2h-2v2H4V... |
www/src/components/navigation/header/UserHeaderButtons.js | cygwin255/SimpleSurvey | import React from 'react'
import AuthorizedButtonsContainer from 'containers/navigation/header/AuthorizedButtonsContainer'
import { NavLink } from 'react-router-dom'
const UserHeaderButtons = () => (
<div className='collapse navbar-collapse d-flex justify-content-between' id='navbarNavDropdown'>
<ul className='n... |
app/app.js | sirodoht/contacts-crud | import React from 'react';
import ReactDOM from 'react-dom';
import './global.css';
import Contacts from './components/Contacts';
const people = [
{
first: 'Roy',
last: 'Fielding',
email: 'roy@fielding.com',
country: 'United States',
},
{
first: 'Ken',
last: 'Thomson',
email: 'kmr@u... |
test/fixtures/basic/src/app/index.js | cameronjroe/kosmos | import React from 'react'
export default () => <div>App</div> |
src/svg-icons/image/photo-size-select-actual.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoSizeSelectActual = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3C2 3 1 4 1 5v14c0 1.1.9 2 2 2h18c1 0 2-1 2-2V5c0-1-1-2-2-2zM5 17l3.5-4.5 2.5 3.01L14.5 11l4.5 6H5z"/>
</SvgIcon>
);
ImagePhotoSiz... |
src/js/components/Email/partial/EmailForm.js | ajainsyn/project | import React from 'react';
import LoadingButton from '../../../shared/LoadingButton';
const EmailForm = ({...props}) => (
<form className="form-default" onSubmit={props.sendEmail}>
<div className="form-box">
<label htmlFor="serivceUrl" className="form-label">Service URL</label>
<input id="seri... |
client/react/MacCon.js | ed1d1a8d/macweb | import React, { Component } from 'react';
import TrackerReact from 'meteor/ultimatejs:tracker-react';
import Navbar from './Navbar.js';
const HARDCODED = true;
const HARDCODERETURN = 'THE END IS NIGH';
const OFFSET = 4 // Eastern time accounting for DST
const OPEN = 'open'
const CLOSED = 'closed'
const HOURS = [
... |
app/components/SuggestList/index.js | bbonny/teameat | /**
*
* SuggestList
*
*/
import React from 'react';
import classnames from 'classnames';
import shallowCompare from 'react-addons-shallow-compare';
import SuggestItem from 'components/SuggestItem';
import styles from './styles.css';
class SuggestList extends React.Component { // eslint-disable-line react/prefer-st... |
src/components/dialog/stories.js | LiskHQ/lisk-nano | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import Dialog from './dialog';
import Alert from './alert';
const dialogContent = () => (<div>Hello</div>);
storiesOf('Dialog', module)
.add('default', () => (
<Dialog
dialog={{
... |
pootle/static/js/welcome/components/Hero.js | evernote/zing | /*
* Copyright (C) Zing contributors.
*
* This file is a part of the Zing project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { t } from 'utils/i18n';
i... |
src/client/components/root/layout.js | caseywebdev/bruteball | import {BrowserRouter, Route, Switch} from 'react-router-dom';
import {withPave} from 'pave-react';
import MainLayout from '../main/layout';
import Meta from '../meta';
import React from 'react';
import store from '../../utils/store';
const render = () =>
<BrowserRouter>
<Meta title='Bruteball'>
<Switch>
... |
node_modules/react-icons/go/diff-added.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const GoDiffAdded = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m22.5 12.5h-5v5h-5v5h5v5h5v-5h5v-5h-5v-5z m12.5-10h-30s-2.5 1.3-2.5 2.5v30s1.3 2.5 2.5 2.5h30s2.5-1.2 2.5-2.5v-30s-1.2-2.5-2.5-2.5z m-2.5 28.8c0 0.6-0.7 1.2-1.2 1.2... |
src/routes/request/index.js | shaohuawang2015/goldbeans-admin | import React from 'react'
import styles from './index.less'
import Mock from 'mockjs'
import { request, config } from 'utils'
import {
Row,
Col,
Card,
Select,
Input,
Button,
} from 'antd'
const { api } = config
const { dashboard, users, userLogin, user, v1test, v2test, categoryQuery } = api
const requestOp... |
packages/icons/src/md/places/FitnessCenter.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdFitnessCenter(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<polygon points="41.14 29.71 44 26.86 41.14 24 34 31.14 16.86 14 24 6.86 21.14 4 18.29 6.86 15.43 4 11.14 8.29 8.29 5.43 5.43 8.29 8.29 11.14 4 15.43 6.... |
client/src/views/MainLayout.js | MissUchiha/CANX | import React from 'react'
import Header from './Header'
import {bindActionCreators} from 'redux'
import { connect } from 'react-redux'
import * as userActions from '../actions/userActions'
import * as categoriesActions from '../actions/categoriesActions'
import auth from '../auth/authentication'
class MainLayout exten... |
src/js/components/icons/base/PlatformWindows.js | odedre/grommet-final | /**
* @description PlatformWindows SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor... |
packages/material-ui-icons/src/ArrowDropUp.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M7 14l5-5 5 5z" /></g>
, 'ArrowDropUp');
|
app/containers/MeetingCalculatorPage/index.js | nadzweb/react-simple-apps | import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage, FormattedNumber } from 'react-intl';
import {each} from 'lodash';
import H2 from 'components/H2';
import messages from './messages';
import {AttendeeRow, Big, Div, Form} from './Style';
export default class MeetingCalculatorPage... |
lib/components/CoinbaseView/index.js | gmtDevs/atom-ethereum-interface | 'use babel'
// Copyright 2018 Etheratom Authors
// This file is part of Etheratom.
// Etheratom is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any la... |
app/javascript/mastodon/features/ui/components/column_header.js | RobertRence/Mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func,
columnHeaderId: PropTypes.string,
};
handleCli... |
modules/RoutingContext.js | natorojr/react-router | import React from 'react'
import invariant from 'invariant'
import getRouteParams from './getRouteParams'
var { array, func, object } = React.PropTypes
/**
* A <RoutingContext> renders the component tree for a given router state
* and sets the history object and the current location in context.
*/
var RoutingConte... |
src/example/containers/dev-tools.js | get-focus/focus-redux | import React from 'react';
// Exported from redux-devtools
import { createDevTools } from 'redux-devtools';
// Monitors are separate packages, and you can make a custom one
import DockMonitor from 'redux-devtools-dock-monitor';
import MultipleMonitors from 'redux-devtools-multiple-monitors';
import Inspector from 're... |
js/src/dapps/console/Snippets/snippets.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
src/components/Main.js | bathpp/gallery_react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
// url loader, return MD5 hash of the file content
// let yeomanImage = require('../images/yeoman.png');
let imageData = require('../data/imageData.json');
// json object can use map?
image... |
navigation/RootNavigation.js | kalle-manninen/veikkaaja | import { Notifications } from 'expo';
import React from 'react';
import { StackNavigator } from 'react-navigation';
import MainTabNavigator from './MainTabNavigator';
import registerForPushNotificationsAsync from '../api/registerForPushNotificationsAsync';
const RootStackNavigator = StackNavigator(
{
Main: {
... |
client/src/pages/activeRelease/artwork/index.js | csleary/nemp3 | import 'lazysizes';
import 'lazysizes/plugins/attrchange/ls.attrchange';
import { faPause, faPlay } from '@fortawesome/free-solid-svg-icons';
import { playTrack, playerPause, playerPlay } from 'features/player';
import { shallowEqual, useDispatch, useSelector } from 'react-redux';
import { CLOUD_URL } from 'index';
imp... |
src/instructions/steps/Step3.react.js | codeforamerica/citybook | import React, { Component } from 'react';
import Row from 'react-bootstrap/lib/Row';
import Col from 'react-bootstrap/lib/Col';
import Button from 'react-bootstrap/lib/Button';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import FormControl from 'react-bootstrap/lib/FormControl';
import ControlLabel from 're... |
app/containers/ContactsPage.js | thirdicrypto/darkwallet-electron-ui | import React, { Component } from 'react';
import { Link } from 'react-router';
import ContactsList from '../components/ContactsList';
export default class SendPage extends Component {
render() {
return (
<div className="scroller off-canvas-wrap">
<div className="inner-wrap">
<ContactsList... |
src/components/RecipesGrid.js | anjren/UncleChenWebsite | import React from 'react';
import { render } from 'react-dom';
export class RecipesGrid extends React.Component {
render() {
return (
<div>
<Recipe />
<Recipe />
<Recipe />
<Recipe />
<Recipe />
</div>
);
}
}
export class Recipe extends React.Component {... |
src/components/FormHint/FormHint.js | wfp/ui | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { iconInfoSolid } from '@wfp/icons';
import Icon from '../Icon';
import classNames from 'classnames';
import settings from '../../globals/js/settings';
import Tooltip from '../Tooltip/Tooltip';
const { prefix } = settings;
/** FormHi... |
examples/flux-utils-todomvc/js/app.js | cold-brew-coding/flux | /**
* Copyright (c) 2014, 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.
*
* @flow
*/
'use s... |
src/common/containers/with-repository.js | canonical-websites/build.snapcraft.io | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { setGitHubRepository } from '../actions/create-snap';
function withRepository(WrappedComponent) {
class WithRepository extends Component {
componentDidMount() {
if ((!this.props.r... |
src/routes/UIElement/iconfont/index.js | janeluck/red | import React from 'react'
import { Iconfont } from '../../../components'
import { Table, Row, Col } from 'antd'
import styles from './index.less'
const iconlist = ['Cherry', 'Cheese', 'Bread', 'Beer', 'Beet', 'Bacon', 'Banana', 'Asparagus', 'Apple']
const IcoPage = () => <div className="content-inner">
<ul classNam... |
libraries/react.js | vanHeemstraSystems/kick | import React from 'react';
export default new React(); |
src/svg-icons/device/wifi-tethering.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceWifiTethering = (props) => (
<SvgIcon {...props}>
<path d="M12 11c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 2c0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19l1-1.74c-1.19-.7-2-1.97-2-3.45 0-2.21... |
src/components/tracker_content_start.js | joakimremler/horse-project | import React, { Component } from 'react';
export default class TrackerContentStart extends Component {
render() {
return (
<div className="row-fluid">
<div className="text-center tracker-title">
Equilab
</div>
<div className="text-center">
<div className="row justify-con... |
examples/IconSimple.js | chris-gooley/react-materialize | import React from 'react';
import Icon from '../src/Icon';
export default
<Icon>insert_chart</Icon>;
|
jenkins-design-language/src/js/components/material-ui/svg-icons/action/donut-large.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionDonutLarge = (props) => (
<SvgIcon {...props}>
<path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.